[0.17.76] Different results after advancing 60 x 1 tick vs 1 x 60 ticks
Posted: Sat Nov 09, 2019 10:50 am
The setup:
I loaded the same savegame (currently in editor mode, paused) two times. Once i used the go 60ticks ahead button (first image). Once I manually advanced the game tick by tick for 60 ticks total (second image). As seen, the highlighted combinator (top right in both screenshots) holds the value 255 in the first case and 211 in the second case.
https://imgur.com/Fqh3hOg
http://imgur.com/VZB5E0k
I expected both ways to get me the same result.
Some additional info about the circuits you see in the screenshots (if needed):
In the rectangle of hazard concrete there are 3 contraptions.
Bottom right is just a clock to show me (and you) that both screenshots are taken the same number of ticks after loading the game. (The clock is at 5 at the time i saved the game.)
The other two are a sender (bottom) and receiver (top) for wireless signal trasmission. Right now it should repeatetly send the number 211. As described above, this only works in the "one tick at a time" case.
How does the wireless transmission work:
At the receiver the train is ready to leave station A, but the destination station B is currently disabled. If i keep station B at the sender disabled, the train stays at station A. If I enable it, the train leaves station A. This different behaviour is detected. Then i enable station B at the receiver shortly, so the train can actually get to B, than back to A and reset the situation this way. This process is repeated every 4 ticks.
Concluding thoughts:
This behaviour is consistent through the entire setup, not limited to this special save and/or the advancment of 60 ticks. I think the problem is based on how a train skips stations if they are disabled.
Let me know if you need any more informations.
I loaded the same savegame (currently in editor mode, paused) two times. Once i used the go 60ticks ahead button (first image). Once I manually advanced the game tick by tick for 60 ticks total (second image). As seen, the highlighted combinator (top right in both screenshots) holds the value 255 in the first case and 211 in the second case.
https://imgur.com/Fqh3hOg
http://imgur.com/VZB5E0k
I expected both ways to get me the same result.
Some additional info about the circuits you see in the screenshots (if needed):
In the rectangle of hazard concrete there are 3 contraptions.
Bottom right is just a clock to show me (and you) that both screenshots are taken the same number of ticks after loading the game. (The clock is at 5 at the time i saved the game.)
The other two are a sender (bottom) and receiver (top) for wireless signal trasmission. Right now it should repeatetly send the number 211. As described above, this only works in the "one tick at a time" case.
How does the wireless transmission work:
At the receiver the train is ready to leave station A, but the destination station B is currently disabled. If i keep station B at the sender disabled, the train stays at station A. If I enable it, the train leaves station A. This different behaviour is detected. Then i enable station B at the receiver shortly, so the train can actually get to B, than back to A and reset the situation this way. This process is repeated every 4 ticks.
Concluding thoughts:
This behaviour is consistent through the entire setup, not limited to this special save and/or the advancment of 60 ticks. I think the problem is based on how a train skips stations if they are disabled.
Let me know if you need any more informations.