Difference between revisions of "Private Server Common Tasks"

From Screeps Wiki
Jump to navigation Jump to search
(Created page with "Category:Private Server = Server CLI = == Setting GCL == In server CLI <nowiki> storage.db['users'].update({ username: 'username' },{ $set: { gcl: 65000000000 }})</nowi...")
 
(changed nowiki tags to code tags)
Line 5: Line 5:
   
 
In server CLI
 
In server CLI
<nowiki>
+
<code>
storage.db['users'].update({ username: 'username' },{ $set: { gcl: 65000000000 }})</nowiki>
+
storage.db['users'].update({ username: 'username' },{ $set: { gcl: 65000000000 }})</code>
   
 
== Setting RCL ==
 
== Setting RCL ==
   
 
In server CLI
 
In server CLI
<nowiki>
+
<code>
storage.db['rooms.objects'].update({ _id: 'idOfController' },{ $set: { level: 8 }})</nowiki>
+
storage.db['rooms.objects'].update({ _id: 'idOfController' },{ $set: { level: 8 }})</code>
   
 
== Setting User CPU Limit ==
 
== Setting User CPU Limit ==
   
 
In server CLI
 
In server CLI
<nowiki>
+
<code>
storage.db['users'].update({ username: 'username' },{ $set: { cpu: 500 }})</nowiki>
+
storage.db['users'].update({ username: 'username' },{ $set: { cpu: 500 }})</code>
   
 
== Adding NPC Terminals ==
 
== Adding NPC Terminals ==
   
 
In server CLI
 
In server CLI
<nowiki>
+
<code>
storage.db['rooms.objects'].insert({ type: 'terminal', room: 'W0N0', x: 0, y:0 })</nowiki>
+
storage.db['rooms.objects'].insert({ type: 'terminal', room: 'W0N0', x: 0, y:0 })</code>
   
 
Repeat as many times as desired changing rooms (Use highway rooms or SK rooms)
 
Repeat as many times as desired changing rooms (Use highway rooms or SK rooms)

Revision as of 05:09, 2 December 2016

Server CLI

Setting GCL

In server CLI


storage.db['users'].update({ username: 'username' },{ $set: { gcl: 65000000000 }})

Setting RCL

In server CLI


storage.db['rooms.objects'].update({ _id: 'idOfController' },{ $set: { level: 8 }})

Setting User CPU Limit

In server CLI


storage.db['users'].update({ username: 'username' },{ $set: { cpu: 500 }})

Adding NPC Terminals

In server CLI


storage.db['rooms.objects'].insert({ type: 'terminal', room: 'W0N0', x: 0, y:0 })

Repeat as many times as desired changing rooms (Use highway rooms or SK rooms) NPC orders should appear on the market automatically after a little while