Page 1 of 1
game.speed is inconsistant
Posted: Sun Mar 30, 2014 4:51 am
by y.petremann
- game.speed = 0 can't let us accessing the console or the pause menu
- game.speed = -1 (or any negative value) cause this error with crash :
Code: Select all
factorio: src/timernu.c:312: al_set_timer_speed: Assertion `new_speed_secs > 0' failed.
It should only cause an error and ignore the variable definition.
Re: game.speed is inconsistant
Posted: Sun Mar 30, 2014 5:50 am
by FreeER
I wouldn't call it inconsistent so much as that it lacks checks for valid input...
Re: game.speed is inconsistant
Posted: Sun Mar 30, 2014 3:40 pm
by sparr
The behavior at game.speed=0 is annoying. The UI actually slows down at lower game speeds (try using the menus at game.speed=0.1), which is equally annoying.
Re: game.speed is inconsistant
Posted: Sun Mar 30, 2014 6:10 pm
by ssilk
It's just logical, the events are worked every tick. If you have only one tick per second... And for pausing the game is an own mode.
Re: game.speed is inconsistant
Posted: Mon Mar 31, 2014 1:46 pm
by y.petremann
The aim was not to pause the game, but I was trying thing for a turn based gameplay with sandbox like controls with two phase:
- Planning phase : you can collect/put resources from/to any structure and you can build everything you want with the resources that have been produced during the last turn.
- Production phase : You can only watch things doing their jobs, the time is very fast.
Also since a replay of the game is saved, I was thinking about the ability to going back in time ...
Re: game.speed is inconsistant
Posted: Mon Mar 31, 2014 3:19 pm
by ssilk
Look how it is done in the thight-spot campaign?! (scenario-packs)
Re: game.speed is inconsistant
Posted: Mon Mar 31, 2014 3:56 pm
by kovarex
Hello, replays itself will not allow going back in time. (Entropy)
Going back one turn can be solved the same way it is in the tight spot, by inner saves (the save can have other save saved inside).
The 0 speed while having controls and UI working is something we should provide for sure, but not in 0.9.x (0.10 probably).
P.S. The turn-based mode seems to be interesting idea, something like tight spot with more than one turn.
Re: game.speed is inconsistant
Posted: Tue Apr 01, 2014 9:45 am
by kovarex
Limited the input to be higher than 0.1 for now.