[0.15.19] take_screenshot() desyncs at high speed
Posted: Thu Jun 08, 2017 1:59 pm
Steps to reproduce:
1. Load this save: 2. Run this command:
Expected result: The screenshot matches the file name.
Actual result: The screenshot is 129 ticks higher than the file name on my computer.
You can change game.speed to 1, to verify the timer really is in sync. It is a bug in the take_screenshot() function.
I was trying to automate screenshots of very short events far in the future, and this bug messes up my timing.
1. Load this save: 2. Run this command:
Code: Select all
/c game.take_screenshot{path=game.tick..".jpg"}
Actual result: The screenshot is 129 ticks higher than the file name on my computer.
You can change game.speed to 1, to verify the timer really is in sync. It is a bug in the take_screenshot() function.
I was trying to automate screenshots of very short events far in the future, and this bug messes up my timing.