Memory from previous lives not clearing
-
Noticed this on the server each time the server is reset while I get despawned the stuff I placed be it flags or otherwise still lurks in memory. Didn't think much of it at first but since I was focused on other things but it'll cause some headaches down the road.
Easy way to recreate this is to load up a long lists of something into memory and hang around for the server reset. Not sure if dying and respawning also causes it but well check.
-
There should be part of the tutorial code that handles memory clean ups. Unless you are saying that this is not functioning properly. Normally you have to clean out your own memory, the game doesn't do it for you.
-
@kyralee Don't think I saw that part, saw the parts about clearing memory while active but nothing about between respawns.
-
@stormwing0 https://github.com/screeps/tutorial-scripts/blob/master/section4/main.js
You sure you have done the tutorial? Anyhow, this can be easily modified to what you need