Simulation and Survival mode not equal?

Simulation and Survival mode not equal? - Green Leafed Plant on Sand

I created a script in Simulation mode which runs great. Then when I want to execute it in survival mode it doesn't work anymore. It seems to have problems with the Memory hash in survival mode.



Best Answer

I haven't tested this, since I've been too busy to fiddle with Screeps since before Survival launched, but you should be able to initialize your memory on the first tick.

As in, create a module that explicitly sets every memory object you use to blank, then in your main loop, call that module if Game.time == 1.




Pictures about "Simulation and Survival mode not equal?"

Simulation and Survival mode not equal? - Female Engineer Controlling Flight Simulator
Simulation and Survival mode not equal? - Person in Brown Coat and Black Pants Standing on Gray Concrete Floor
Simulation and Survival mode not equal? - Person Controlling Flight Simulator





Survival analysis 2: Parametric Exponential Models




Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.

Images: Engin Akyurt, ThisIsEngineering, cottonbro, ThisIsEngineering