OpenTTD

Tasklist

FS#3092 - Unexpected "restart" command behaviour with loaded games

Attached to Project: OpenTTD
Opened by Dustin Andrews (Dustin) - Tuesday, 04 August 2009, 18:25 GMT
Last edited by Remko Bijker (Rubidium) - Thursday, 06 August 2009, 22:00 GMT
Type Bug
Category Core
Status Closed
Assigned To No-one
Operating System All
Severity Low
Priority Normal
Reported Version 0.7.2
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

When playing a scenario, it's impossible to restart it with the console command "restart". Instead it restarts your last "new" game.

REPRO STEPS:
* Select "new game" and start a new game.
* Exit the new game to the main menu.
* Enter the scenario editor and make a simple scenario.
* Save the scenario.
* One the main menu pick play scenerio and load that scenario.
* Once the scenario starts, open the console with the ` key.
* type "restart" (no quotes) on the command line and hit enter.

EXPECT: The scenario starts over.
RESULT: The game starts over with another previously played game.

WORK AROUND: Quit the game to the main menu and reload the scenario.
This task depends upon

Closed by  Remko Bijker (Rubidium)
Thursday, 06 August 2009, 22:00 GMT
Reason for closing:  Fixed
Additional comments about closing:  In r17097
Comment by Thijs Marinussen (Yexo) - Tuesday, 04 August 2009, 19:41 GMT
And what is your expected result when you start a scenario, save the game. load the game, then use "restart"? At that point you can't even be sure the original scenario still exists.
Comment by Remko Bijker (Rubidium) - Tuesday, 04 August 2009, 23:33 GMT
I propose 'fixing' the help message to say it's only for restarting games started with 'new game' and then don't restart if it wasn't a 'new game'.

This because the feature was never meant to reload a scenario or savegame.
Comment by Dustin Andrews (Dustin) - Wednesday, 05 August 2009, 00:30 GMT
"And what is your expected result when you start a scenario, save the game. load the game, then use "restart"?"

I "restart" in a saved game, I would expect the game to roll back to the start date, not to the save state. Is there enough data in the save game to reconstruct the "start" from that point?

"I propose 'fixing' the help message to say it's only for restarting games started with 'new game' and then don't restart if it wasn't a 'new game'"
AI testing would be easier with the ability to restart a scenerio. However, the work around steps are useable if clunky.
How different is restarting a scenario/save to restarting a new game? Why is one in memory still and the other not? The workaround is reasonable, but it if the fix isn't too risky then it would make more sense from a user point of view to have "restart" work in saves and scenarios.

disabling the ability to restart in scenerios and saves would at least give a result that makes sense. Right now you just go back to the last game you started new, even if you closed and restarted since then.

Loading...