How to add newgrf to a scenario?

Got a problem with OpenTTD? Find some help here.

Moderator: OpenTTD Developers

Post Reply
P.Val
Engineer
Engineer
Posts: 7
Joined: 13 Oct 2013 15:39

How to add newgrf to a scenario?

Post 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.
moki
Traffic Manager
Traffic Manager
Posts: 131
Joined: 06 Jul 2007 08:48
Location: Wismar, Germany

Re: How to add newgrf to a scenario?

Post 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.
P.Val
Engineer
Engineer
Posts: 7
Joined: 13 Oct 2013 15:39

Re: How to add newgrf to a scenario?

Post 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.
User avatar
kamnet
Moderator
Moderator
Posts: 8589
Joined: 28 Sep 2009 17:15
Location: Eastern KY
Contact:

Re: How to add newgrf to a scenario?

Post 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.
User avatar
planetmaker
OpenTTD Developer
OpenTTD Developer
Posts: 9432
Joined: 07 Nov 2007 22:44
Location: Sol d

Re: How to add newgrf to a scenario?

Post 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.
User avatar
kamnet
Moderator
Moderator
Posts: 8589
Joined: 28 Sep 2009 17:15
Location: Eastern KY
Contact:

Re: How to add newgrf to a scenario?

Post 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.
User avatar
trainman1432
Transport Coordinator
Transport Coordinator
Posts: 316
Joined: 05 Jan 2013 02:34
Location: at home

Re: How to add newgrf to a scenario?

Post 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 :|
Jetrain
YATTC
e453s10
Engineer
Engineer
Posts: 1
Joined: 23 Mar 2024 16:46

Re: How to add newgrf to a scenario?

Post 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.
User avatar
kamnet
Moderator
Moderator
Posts: 8589
Joined: 28 Sep 2009 17:15
Location: Eastern KY
Contact:

Re: How to add newgrf to a scenario?

Post 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.
User avatar
jfs
Tycoon
Tycoon
Posts: 1763
Joined: 08 Jan 2003 23:09
Location: Denmark

Re: How to add newgrf to a scenario?

Post 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.
Post Reply

Return to “OpenTTD Problems”

Who is online

Users browsing this forum: No registered users and 13 guests