Difference between revisions of "Sim"

From Screeps Wiki
Jump to navigation Jump to search
(Created page with "{{Stub}} The simulator, often called sim, is a simulator of a screeps server that runs in your browser, on the webpage it can be found on this page by clicking survival https...")
 
(categorized)
 
(7 intermediate revisions by one other user not shown)
Line 5: Line 5:
 
The simulator gives you 1 room and the ability to change tickrate and spawn any structure
 
The simulator gives you 1 room and the ability to change tickrate and spawn any structure
   
The following are notes gathered by the screeps community about the differences compared to playing on the official server or on a private server (TODO: insert link to private servers)
+
The following are notes gathered by the screeps community about the differences compared to playing on the official server or on a [[Private Server|private server]]
   
  +
A large part of the community members suggest testing on your own private server or directly on the mmo servers
sim room differences
 
   
Comments from other players
+
=== Comments from other players ===
 
* <code>room.controller.safeMode</code> is not started when the sim starts like when you spawn on official or PS
 
 
* global resets after ~10 seconds
room.controller.safeMode is not started when the sim starts like when you spawn on official or PS
 
  +
** I think it might be exactly every 12 ticks that it global resets, though don't quote me on that unless someone verifies
global resets after ~10 seconds
 
  +
** Left a test running for a bit - every time a global reports it's been running more than 10 seconds in the user loop, the very next tick is always a reset.  Definitely seems to be based just on wall clock.
 
 
* I'm working in sim right now. So far what I've run into is an issue with roomVisuals. I had to turn off room visuals in the graphics interface and turn it back on for it to paint them. Tick speed seems to be dependent on the graphics as well. If I zoom way out, the frame rate goes up, and tick speed seems to improve as well.
 
 
* Yeah. Incidentally, on mmo roomvisuals don't work if you have particular other graphics options turned off. No idea why
I'm working in sim right now. So far what I've run into is an issue with roomVisuals. I had to turn off room visuals in the graphics interface and turn it back on for it to paint them.
 
 
* I've never had any problems with visuals on sim
Tick speed seems to be dependent on the graphics as well. If I zoom way out, the frame rate goes up, and tick speed seems to improve as well.
 
  +
** <code>Game.cpu.getUsed()</code> always returns 0
 
 
** I also had a problem with <code>Game.map.describeExits</code>, because it returns what you would expect from a room completely surrounded by walls, which confused my room planner, since there were exit tiles without walls
Yeah. Incidentally, on mmo roomvisuals don't work if you have particular other graphics options turned off. No idea why
 
 
** Game.cpu.bucket is undefined
 
 
** Well, in sim, you're limited by your browser, so I had to stop using object spread
 
 
* Also the simulation room seems to be messed up with structure limits at level 2 i was able to place like 16 extensions
I've never had any problems with visuals on sim
 
irc, Game.cpu.getUsed() always returns 0
+
* <code>Game.cpu.getHeapStatistics()</code> aint gonna work in sim
  +
* No way to test boosts. You cant buy them and you cant set the resources that a storage/terminal has.
I also had a problem with Game.map.describeExits, because it returns what you would expect from a room completely surrounded by walls, which confused my room planner, since there were exit tiles without walls
 
  +
** needs to be verified
Game.cpu.bucket is undefined
 
  +
* Room positions have name "sim" but their <code>__packedPos</code> representations are for <code>W127N127</code>
Well, in sim, you're limited by your browser, so I had to stop using object spread
 
 
 
beut. Also the simulation room seems to be messed up with structure limits
 
at level 2 i was able to place like 16 extensions
 
   
 
[[Category:Stubs]]
 
[[Category:Stubs]]
  +
[[Category:Game Knowledge]]

Latest revision as of 12:38, 28 October 2020

This article is a stub. You can help Screeps Wiki by editing to add more information.

The simulator, often called sim, is a simulator of a screeps server that runs in your browser, on the webpage it can be found on this page by clicking survival https://screeps.com/a/#!/sim

The simulator gives you 1 room and the ability to change tickrate and spawn any structure

The following are notes gathered by the screeps community about the differences compared to playing on the official server or on a private server

A large part of the community members suggest testing on your own private server or directly on the mmo servers

Comments from other players[edit | edit source]

  • room.controller.safeMode is not started when the sim starts like when you spawn on official or PS
  • global resets after ~10 seconds
    • I think it might be exactly every 12 ticks that it global resets, though don't quote me on that unless someone verifies
    • Left a test running for a bit - every time a global reports it's been running more than 10 seconds in the user loop, the very next tick is always a reset.  Definitely seems to be based just on wall clock.
  • I'm working in sim right now. So far what I've run into is an issue with roomVisuals. I had to turn off room visuals in the graphics interface and turn it back on for it to paint them. Tick speed seems to be dependent on the graphics as well. If I zoom way out, the frame rate goes up, and tick speed seems to improve as well.
  • Yeah. Incidentally, on mmo roomvisuals don't work if you have particular other graphics options turned off. No idea why
  • I've never had any problems with visuals on sim
    • Game.cpu.getUsed() always returns 0
    • I also had a problem with Game.map.describeExits, because it returns what you would expect from a room completely surrounded by walls, which confused my room planner, since there were exit tiles without walls
    • Game.cpu.bucket is undefined
    • Well, in sim, you're limited by your browser, so I had to stop using object spread
  • Also the simulation room seems to be messed up with structure limits at level 2 i was able to place like 16 extensions
  • Game.cpu.getHeapStatistics() aint gonna work in sim
  • No way to test boosts. You cant buy them and you cant set the resources that a storage/terminal has.
    • needs to be verified
  • Room positions have name "sim" but their __packedPos representations are for W127N127