Save-able game parameters

Got an idea for OpenTTD? Post it here!

Moderator: OpenTTD Developers

Post Reply
Oncle Boris
Engineer
Engineer
Posts: 9
Joined: 24 Oct 2011 14:55

Save-able game parameters

Post by Oncle Boris »

While it's easy to make custom, recallable lists of NewGRF settings, the same can't be said of game parameters.

For instance, rather than setting all parameters manually when I start a new game, I'd like to be able to save and recall parameters for my most common types of games.

Any chance this may happen?
User avatar
jfs
Tycoon
Tycoon
Posts: 1750
Joined: 08 Jan 2003 23:09
Location: Denmark

Re: Save-able game parameters

Post by jfs »

It will be difficult to make a good GUI for, I think.

You can sort of do this by making console scripts that can then be executed, they can change game settings via a command, but it does require a bunch of fiddling.
rowdog
Engineer
Engineer
Posts: 67
Joined: 24 May 2017 12:51
Location: East Texas

Re: Save-able game parameters

Post by rowdog »

The settings are stored in openttd.cfg so you can copy that to another file with a name of your choice (e.g. openttd-pax.cfg) and then start the game with a command line option:

Code: Select all

openttd -c openttd-pax.cfg
From there, it wouldn't be too hard to write a GUI launcher to select the config file and execute openttd with the proper command line.
Oncle Boris
Engineer
Engineer
Posts: 9
Joined: 24 Oct 2011 14:55

Re: Save-able game parameters

Post by Oncle Boris »

Thank you @rowdog nice hint!
User avatar
kamnet
Moderator
Moderator
Posts: 8548
Joined: 28 Sep 2009 17:15
Location: Eastern KY
Contact:

Re: Save-able game parameters

Post by kamnet »

jfs wrote: 17 Jan 2020 18:19 It will be difficult to make a good GUI for, I think.

You can sort of do this by making console scripts that can then be executed, they can change game settings via a command, but it does require a bunch of fiddling.
Could you not just have a simple select menu like with the NewGRF window, one button where you can click to save the configuration, one to open a window to select a configuration?
User avatar
jfs
Tycoon
Tycoon
Posts: 1750
Joined: 08 Jan 2003 23:09
Location: Denmark

Re: Save-able game parameters

Post by jfs »

kamnet wrote: 18 Jan 2020 21:55 Could you not just have a simple select menu like with the NewGRF window, one button where you can click to save the configuration, one to open a window to select a configuration?
Which parts of the configuration?
Do you include the Localisation things (display units etc.)? The Sound settings? Music volume? Newspaper settings? Various default settings for vehicles? Vehicle and economy game settings? Disaster settings? And so on and so on.
There's hundreds of settings in many categories, and you typically don't want to store the complete set.
User avatar
kamnet
Moderator
Moderator
Posts: 8548
Joined: 28 Sep 2009 17:15
Location: Eastern KY
Contact:

Re: Save-able game parameters

Post by kamnet »

Why not? We store the complete set when we save all the NewGRF settings, don't we? Why would you only save part of a configuration?
LaChupacabra
Route Supervisor
Route Supervisor
Posts: 385
Joined: 08 Nov 2019 23:54

Re: Save-able game parameters

Post by LaChupacabra »

I think that creating a good GUI, at least logically or visually, would not be that difficult. Certainly it would be worse in terms of coding and it could be quite or very laborious to do it well and not go back to it for a long time.
I have some ideas about what and how it could be done, but unfortunately I don't have enough time to describe it fully yet.
For now, I will post one of the graphics from this idea ...
Setting window - big improvement v1.0.png
Setting window - big improvement v1.0.png (19.46 KiB) Viewed 2282 times
Generally, the purpose of the changes I wanted to propose was to make all settings from the configuration file available in the settings window. In order not to increase chaos on the setting list, this would propably require rebuilding the entire layout.
In the presented case, all gameplay settings would have a separate tab and there it would be possible to choose a set of settings, as in the case of newGRF.
I am sorry for may English. I know is bed.
Post Reply

Return to “OpenTTD Suggestions”

Who is online

Users browsing this forum: peter1138 and 4 guests