Page 1 of 1

How to add newgrf to a scenario?

Posted: 18 Oct 2013 22:14
by P.Val
I spent a lot of time designing my dream scenario, and then I realized I failed to activate some of the newgrfs I wanted, before starting the scenario editor. Now I can only start the scenario with the newgrfs I had active when I started designing it.

I completely understand that it's not allowed to add (and especially remove) newgrfs after a game is started. However, is there a possibility to add newgrfs to a scenario? For example, export the scenario (terrain, towns, etc.), create a new one with the desired newgrfs and import it?

Is my scenario salvageable, or do I have to start again from scratch? I only intend to add vehicle newgrfs.

Re: How to add newgrf to a scenario?

Posted: 18 Oct 2013 22:28
by moki
Hm... I believe, there used to be a sticky thread about this or at least a few older threads...

Very short answer, assuming you use Windows: Go to c:\users\[username]\documents\openttd\, open the openttd.cfg with the text editor of your choice and change "scenario_developer" to "true". If you're not on Windows or the path doesn't exist for some reason, just search for the openttd.cfg and do the same. Now restart the game and you can change the NewGRFs any time you want.

Don't blame me or any of the developers though, if you get corrupted files or crashes or anything else goes wrong - that big red warning's there for a reason.

Re: How to add newgrf to a scenario?

Posted: 18 Oct 2013 23:38
by P.Val
Thank you!

It seems that one upon a time it was part of the normal package, because I now faintly remember that red warning box from many years ago.

Re: How to add newgrf to a scenario?

Posted: 19 Oct 2013 06:17
by kamnet
They eventually removed the option from the cheat menu because too many people ignored the red warning box and then submitted bug reports when things went awry.

Adding a vehicle NewGRF should be okay. Once you add it, though, you shouldn't remove it. As a precaution, I'd suggest creating your scenario without NewGRFs first, save a backup copy, and then add your NewGRFs and save a new copy.

Re: How to add newgrf to a scenario?

Posted: 19 Oct 2013 06:23
by planetmaker
Actually... I don't consider that particularily cautious. I'd first look for the NewGRFs I want to use, test that composition briefly with a random map. And if it's suitable, then use it to create a new scenario.

In any case: make a backup of your savegame before you start to modify the NewGRFs being used with it. You may only discover oddities due to changes many game years after you made the changes to the savegame. And then it's too late to rescue anything if you have no backup.

Re: How to add newgrf to a scenario?

Posted: 19 Oct 2013 06:56
by kamnet
planetmaker wrote:In any case: make a backup of your savegame before you start to modify the NewGRFs being used with it. You may only discover oddities due to changes many game years after you made the changes to the savegame. And then it's too late to rescue anything if you have no backup.
That's why I suggested making a backup of the scenario before adding NewGRFs. Sometimes even with the best of intentions and testing, you find later on a combination of NewGRFs has gone terribly wrong.

Re: How to add newgrf to a scenario?

Posted: 03 Nov 2013 17:35
by trainman1432
P.Val wrote:Thank you!
faintly remember that red warning box
You faintly remember? I VIVIDLY remember a time when i was a noob at OpenTTD, I added NARS to a Monorail map, and then Openttd crashed. It scared me nearly half to death!! :o :o :|

Re: How to add newgrf to a scenario?

Posted: 23 Mar 2024 16:49
by e453s10
I have actualy tried accessing that game file and changing scenario_developer to true, but when I try to access the newgrf menu, I'm still stuck without being able to add any newgrf.

Re: How to add newgrf to a scenario?

Posted: 23 Mar 2024 20:47
by kamnet
e453s10 wrote: 23 Mar 2024 16:49 I have actualy tried accessing that game file and changing scenario_developer to true, but when I try to access the newgrf menu, I'm still stuck without being able to add any newgrf.
Are you editing the file while OpenTTD is open? If so, then close it first. OpenTTD only reads the file once when it starts, then writes to it again when it closes. If you've edited it in-between, then your changes will be overwritten by the game when it saves any changes made in the game itself.

Re: How to add newgrf to a scenario?

Posted: 24 Mar 2024 16:22
by jfs
I would strongly recommend using the console commands to change settings, instead of ever editing the config files. You can change all settings via the console, and they will take effect immediately.