game.speed is inconsistant

This subforum contains all the issues which we already resolved.
Post Reply
User avatar
y.petremann
Filter Inserter
Filter Inserter
Posts: 410
Joined: Mon Mar 17, 2014 4:24 pm
Contact:

game.speed is inconsistant

Post by y.petremann »

  1. game.speed = 0 can't let us accessing the console or the pause menu
  2. 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.

User avatar
FreeER
Smart Inserter
Smart Inserter
Posts: 1266
Joined: Mon Feb 18, 2013 4:26 am
Contact:

Re: game.speed is inconsistant

Post by FreeER »

I wouldn't call it inconsistent so much as that it lacks checks for valid input...

sparr
Smart Inserter
Smart Inserter
Posts: 1331
Joined: Fri Feb 14, 2014 5:52 pm
Contact:

Re: game.speed is inconsistant

Post 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.

User avatar
ssilk
Global Moderator
Global Moderator
Posts: 12888
Joined: Tue Apr 16, 2013 10:35 pm
Contact:

Re: game.speed is inconsistant

Post 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.
Cool suggestion: Eatable MOUSE-pointers.
Have you used the Advanced Search today?
Need help, question? FAQ - Wiki - Forum help
I still like small signatures...

User avatar
y.petremann
Filter Inserter
Filter Inserter
Posts: 410
Joined: Mon Mar 17, 2014 4:24 pm
Contact:

Re: game.speed is inconsistant

Post 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:
  1. 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.
  2. 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 ...

User avatar
ssilk
Global Moderator
Global Moderator
Posts: 12888
Joined: Tue Apr 16, 2013 10:35 pm
Contact:

Re: game.speed is inconsistant

Post by ssilk »

Look how it is done in the thight-spot campaign?! (scenario-packs)
Cool suggestion: Eatable MOUSE-pointers.
Have you used the Advanced Search today?
Need help, question? FAQ - Wiki - Forum help
I still like small signatures...

kovarex
Factorio Staff
Factorio Staff
Posts: 8078
Joined: Wed Feb 06, 2013 12:00 am
Contact:

Re: game.speed is inconsistant

Post 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.

kovarex
Factorio Staff
Factorio Staff
Posts: 8078
Joined: Wed Feb 06, 2013 12:00 am
Contact:

Re: game.speed is inconsistant

Post by kovarex »

Limited the input to be higher than 0.1 for now.

Post Reply

Return to “Resolved Problems and Bugs”