You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This bug annoys people who want to do a newmap using a specific seed.
Case A: Set seed from console then newmap from ingame
Set the seed via console (set generation_seed N)
Start newmap from ingame.
-> Seed is overwritten with random value
Case B: Set seed from console then newmap from console, all while in the intro
Abandon any game you may have running
Set the seed in the console
Start new map from console
-> Seed is overwritten with random value
Case C: Same thing as above but while the map settings window is open
Abandon any game you may have running
Open the map settings window by clicking on the New Game button.
Set the seed in the console
Start new map from console
-> Seed is overwritten with random value
Case D: While in intro, set seed in console then click Generate in Map settings
Abandon any game you may have running
Open the map settings window by clicking on the New Game button.
Set the seed in the console
Start new map via the map settings window
-> Seed is not overwritten with random value
Case E: Same thing as above but Control-click on new game button instead
Abandon any game you may have running
Set the seed in the console
Start new map via ctrl-clicking on the new game button
-> Seed is overwritten with random value
Out of the five cases there is only one way to set the seed before starting the game and not have it overwritten with a random value, and that is case / method D. I would like all five cases to not overwrite the seed with a random value each.
I found why it does this and I'm working on it.
Also I'll discuss with devs about the reintroduction of the seed box removed 3 years ago.
EDIT: attached patch, needs to be reviewed
Had a talk with devs, the map seed must be set with "newgame [seed]" and not with "set generation_seed [seed]", so even if my incomplete patch solved the "set generation_seed" problem, it's not the right way to do it, by design.
Flyspray clean up: not obvious what else should be done with this, so closing now. If this offends, discuss with Wolf01 in irc. Thanks for the report :)
To clarify:
* The settings commands are easier to understand when inside a game. The intro GUI stretches the terms.
* The "setting" command changes settings of the current game. "setting_newgame" does the same for new games. In the intro GUI they are the same.
* The "generation_seed" setting is supposed to be the seed of the current game. Changing it inside a game is pointless.
* The "newgame" command starts a new game with a new seed. In particular executing it multiple times in succession within a game always gives you a new map.
* The "restart" command starts a new game with the same settings and same seed as the current one.
This task has two misconceptions:
* You are not supposed to change the "generation_seed" setting since it refers to the current game.
* You try to make "newgame" and "restart" the same thing, which essentially completely breaks the purpose of "newgame". You run "newgame" when you want to keep the settings but did not like the result of the seed.
I did not try whether "restart" works in the intro GUI or what it does.
james1101 opened the ticket and wrote:
Reported version: 1.7.1
Operating system: Windows
This issue was imported from FlySpray: https://bugs.openttd.org/task/6604
The text was updated successfully, but these errors were encountered: