Page 1 of 1

NML change game settings

Posted: 17 Jan 2024 19:36
by AlphaCentauriBear
Any way to change game settings in NewGRF?
I understand this is redundant since there are all there but I may want to publish a preset.

Re: NML change game settings

Posted: 18 Jan 2024 23:38
by Eddi
maybe you should rephrase that question more specifically what you ACTUALLY want to do, before you pick up a tool that might not be designed for what you're trying to achieve.

Re: NML change game settings

Posted: 19 Jan 2024 11:28
by jfs
No. NewGRF must work under the game setting chosen by the player. They can affect some rules of the game, and some things may override some defaults given by some game settings, but they can not change the value of settings as such. (For example, you have the game setting for how industry production changes happen: Either in large, infrequent steps, or in small, more frequent steps. Here a NewGRF industry can implement the various callbacks and make its own rules for how much cargo it produces and when it announces production changes, regardless of the game setting. But those rule changes are for that single industry type, not industries in general.)

Re: NML change game settings

Posted: 23 Feb 2024 20:19
by dol422
This thread explains how, but also why you shouldn't and what can happen if you do:
viewtopic.php?t=90609

Changing NewGRFs before a game will have no effect.

Re: NML change game settings

Posted: 24 Feb 2024 00:32
by skc
dol422 wrote: 23 Feb 2024 20:19 This thread explains how, but also why you shouldn't and what can happen if you do:
viewtopic.php?t=90609

Changing NewGRFs before a game will have no effect.
That's irrelevant to what this thread is about.
AlphaCentauriBear is wanting to know if it's possible to create a GRF that can change game settings, not changing GRF's during a game.

Re: NML change game settings

Posted: 24 Feb 2024 11:39
by dol422
skc wrote: 24 Feb 2024 00:32
dol422 wrote: 23 Feb 2024 20:19 This thread explains how, but also why you shouldn't and what can happen if you do:
viewtopic.php?t=90609

Changing NewGRFs before a game will have no effect.
That's irrelevant to what this thread is about.
AlphaCentauriBear is wanting to know if it's possible to create a GRF that can change game settings, not changing GRF's during a game.
Not really as the question he asked wasn't exactly specific.

I gave the answer that best suited the way I interpreted the question.