Scrap Mechanic

Scrap Mechanic

thatguy472 Feb 2, 2021 @ 9:35am
Logic/Timers reset when Loading the world?
This may end up being a two part question as I am somewhat new to the game compared to most who have played for a year(s). I am still learning slowly how to do things with logic and such.
Recently I created a timing system on my automatic watering farm. Essentially I lined up 24 timers all set to 60 seconds and I press start exactly at midnight. It works great. at 2300 my automatic watering goes off and is ready to plant at midnight. However, I left the game and came back the next day to play again, but it appears the timers started again at the beginning even though it was in the middle of the process already. So i have (for example) the 10th timer counting up and the first timer started counting back down already.
Anyone know of a way to prevent this from happening everytime I log in? i dont want to have to wait until midnight to leave the game everytime nor do I want to reset 24 timers everytime I log in just to have it working properly.
Also, is there a better way to setup a timing/clock system in game for automatically turning on/off systems? If I can perfect this I would like to connect it to lights around the base and such as well.
< >
Showing 1-4 of 4 comments
DC-GS Feb 2, 2021 @ 11:33am 
your observation is correct. The state of logic gates and timer isnt saved. As soon your construction unloads and load again, the old state is gone.

Your construction is unloaded if you travel far away too! Even if the state persist, your clock will be off if you return, since the time stopped for your constrcution (unloaded) but not the world.

Best advice I can offer is to design something not to rely on daytime. In my case I build an autofarm which just runs endlessly. It has sensor to detect if it can plant again, so no seeds are wasted.
For lights, I set them to be on all the time.
Jigglepin Feb 2, 2021 @ 1:13pm 
did you leave tiles in that time aswell?? when you leave tiles, everything at a certain distance will despawn. which will stop it from working, and will freeze it at that moment until you return. it makes it so there is less for the game to calculate, which is a good thing, but not, at the same time lol

so yes, it will drastically affect your timer circuit. and anything else like crafting on a loop autofarming etc.

i also wanted to make some sort of clock with an alarm etc, but this 'feature' of the game prevents stuff from working when youre not in the vicinity
thatguy472 Feb 2, 2021 @ 6:39pm 
Originally posted by DC-GS:
your observation is correct. The state of logic gates and timer isnt saved. As soon your construction unloads and load again, the old state is gone.

Your construction is unloaded if you travel far away too! Even if the state persist, your clock will be off if you return, since the time stopped for your constrcution (unloaded) but not the world.

Best advice I can offer is to design something not to rely on daytime. In my case I build an autofarm which just runs endlessly. It has sensor to detect if it can plant again, so no seeds are wasted.
For lights, I set them to be on all the time.


Originally posted by Jigglepin:
did you leave tiles in that time aswell?? when you leave tiles, everything at a certain distance will despawn. which will stop it from working, and will freeze it at that moment until you return. it makes it so there is less for the game to calculate, which is a good thing, but not, at the same time lol

so yes, it will drastically affect your timer circuit. and anything else like crafting on a loop autofarming etc.

i also wanted to make some sort of clock with an alarm etc, but this 'feature' of the game prevents stuff from working when youre not in the vicinity


Thank you both for the reply. I hope they fix this at some point, until then I guess I will figure out another way to do it.
DC-GS Feb 2, 2021 @ 11:36pm 
I dont really see a fix for that.

Even with the state saved, the time will be off if you travel away.
The antique gameengine cant handke the whole world at once, it needs to unload and freeze chunks to run smother.

Best solution would be an additional block giving signals at predefined times. Like a daylight sensor turning off if its getting dark or a block giving impulse at midnight.

Maybe a mod has that already covered.
< >
Showing 1-4 of 4 comments
Per page: 1530 50

Date Posted: Feb 2, 2021 @ 9:35am
Posts: 4