Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make it possible to change new game settings in the console #2885

Closed
DorpsGek opened this issue May 7, 2009 · 8 comments
Closed

Make it possible to change new game settings in the console #2885

DorpsGek opened this issue May 7, 2009 · 8 comments
Labels
flyspray This issue is imported from FlySpray (https://bugs.openttd.org/)

Comments

@DorpsGek
Copy link
Member

DorpsGek commented May 7, 2009

muxy opened the ticket and wrote:

When a scenario is made with another openttd.cfg and is loaded on a dedicated server with a different openttd.cfg, the server settings reflect the server openttd.cfg instead of the value from the scenario.

Reported version: 0.7.0
Operating system: All


This issue was imported from FlySpray: https://bugs.openttd.org/task/2885
@DorpsGek
Copy link
Member Author

DorpsGek commented May 8, 2009

Rubidium wrote:

How do you load a scenario on a dedicated server? As far as I am aware that's not quite possible.


This comment was imported from FlySpray: https://bugs.openttd.org/task/2885#comment6037

@DorpsGek
Copy link
Member Author

DorpsGek commented May 8, 2009

muxy wrote:

like this : openttd -D -g scenario_path

But it seems to be BAD.

if it's better to start a scenario as normal game, then perform a save game, then use the savegame in the dedicated server, i will do it this way and check.

Edit 18:38 (GMT+1 DST)
Well, it's the same when using a savegame from the scenario started on local game. The server settings comes from the openttd.cfg file. Strange behavoir for starting_year who is set to 1970. Starting_year in the savegame/scenario has been set to 1955 and also in the server openttd.cfg and the server setting returns 1970. Can be seen server state at http://www.openttd.org/en/server/150


This comment was imported from FlySpray: https://bugs.openttd.org/task/2885#comment6038

@DorpsGek
Copy link
Member Author

Rubidium wrote:

I've just tried to reproduce it. However,
a) starting a scenario works and uses the settings from the scenario; if I change the starting year in the config file the scenario still starts at the old year, starting a new game starts at the new starting year.
b) all (advanced) settings I've changed in the scenario are still like in the scenario; if I change the config file those settings do not change, except the settings that are not stored in the savegame, but those settings do not influence the game only visual things.
c) I wasn't able to reproduce it or you are expecting things to be stored in the scenario that aren't stored in the scenario file (like the server name or the port to listen on).


This comment was imported from FlySpray: https://bugs.openttd.org/task/2885#comment6075

@DorpsGek
Copy link
Member Author

muxy wrote:

Ok, then

a) create a scenario 64x64 with some towns and industries
b) start this scenario on dedicated server with map_x, map_y set to 11
c) from console ask for setting map_x and map_y, it returns 11 for both : value from openttd.cfg

I failed to reproduce with this procedure the problem with starting_year, i got it from another scenario, i will investigate.

This "bug" could be converted in an functionnal request : improve the way settings are functionning :

each setting should have 2 values : the ingame value, and a "next" value. if next value is not set, it will return ingame value.
when requesting setting value, it will return both value : ingame and next.
The next value will be used on the next game restart (automatic or newgame console)

when using saveconfig command without parameter will save ingame value, and with a particular parameter will save next value.


This comment was imported from FlySpray: https://bugs.openttd.org/task/2885#comment6076

@DorpsGek
Copy link
Member Author

muxy wrote:

With this attached scenario, you can check the problem with starting_year.

The starting_year is set in the scenario in 1955.

When you start this scenario in a dedicated server, the year count displays -15 in the server list window.

In that case, if you request the starting_year setting it returns 1970.

Attachments


This comment was imported from FlySpray: https://bugs.openttd.org/task/2885#comment6077

@DorpsGek
Copy link
Member Author

Rubidium wrote:

map_x/map_y aren't saved as settings in the savegame; those settings are never needed anymore. As such they get some stub values loaded. It's at least not wrong.

About the starting year thingy; looks like it doesn't update the starting year setting in the scenario, but only the 'current' year. It doesn't get the starting year from openttd.cfg.


This comment was imported from FlySpray: https://bugs.openttd.org/task/2885#comment6078

@DorpsGek
Copy link
Member Author

Rubidium wrote:

The scenario starting year bug cause has been fixed. You have to (re)set the starting year of the given scenario in the scenario editor via the toolbar.


This comment was imported from FlySpray: https://bugs.openttd.org/task/2885#comment6079

@DorpsGek
Copy link
Member Author

Yexo closed the ticket.

Reason for closing: Implemented

In r18943


This comment was imported from FlySpray: https://bugs.openttd.org/task/2885

@DorpsGek DorpsGek added Core flyspray This issue is imported from FlySpray (https://bugs.openttd.org/) labels Apr 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flyspray This issue is imported from FlySpray (https://bugs.openttd.org/)
Projects
None yet
Development

No branches or pull requests

1 participant