How Can I change GRF´s in Loaded or in Action in OpenTTD 1.1

Got a problem with OpenTTD? Find some help here.

Moderator: OpenTTD Developers

Post Reply
JoaoV
Engineer
Engineer
Posts: 3
Joined: 06 Apr 2011 10:24

How Can I change GRF´s in Loaded or in Action in OpenTTD 1.1

Post by JoaoV »

I Can´t Change in Loaded or Action Game in New OpenTTD 1.1.0
Attachments
Munttown Transport, 8º Ene 3713.png
This Situation
(133.34 KiB) Downloaded 3 times
Yexo
Tycoon
Tycoon
Posts: 3663
Joined: 20 Dec 2007 12:49

Re: How Can I change GRF´s in Loaded or in Action in OpenTTD

Post by Yexo »

Correct, it was never supported and since a lot of bugs were reported that only happened because people ignored the warning it was disabled in 1.1.
User avatar
planetmaker
OpenTTD Developer
OpenTTD Developer
Posts: 9432
Joined: 07 Nov 2007 22:44
Location: Sol d

Re: How Can I change GRF´s in Loaded or in Action in OpenTTD

Post by planetmaker »

A bit on a tangent. For new games you don't need the following grfs, they're obsolete as OpenGFX contains them in a bug-fixed version:

62636F62 96F1F73398050C3159779660BC381310 OpenGFX - Temperate Buildings.grf
52571314 3B65F3403F293CB61E75D731F38A00CE OpenGFX_-_newTowns_v0.2.grf
FBFB0001 6C469F2581D92344A864EA461BFC0DDC OpenGFX - Stations v2.1.grf
62636D66 166C251896369AB9841182D3E4DEB18B medfont.grf
JoaoV
Engineer
Engineer
Posts: 3
Joined: 06 Apr 2011 10:24

Re: How Can I change GRF´s in Loaded or in Action in OpenTTD

Post by JoaoV »

We´re Against the new disable in 1.1.0, they removed the essence of the game X( :x ¡
Eddi
Tycoon
Tycoon
Posts: 8289
Joined: 17 Jan 2007 00:14

Re: How Can I change GRF´s in Loaded or in Action in OpenTTD

Post by Eddi »

... and here i was sitting thinking the essence of the game was building a transportation network... man i'm stupid. all these years i've been playing the game the wrong way.
User avatar
Lundis
Engineer
Engineer
Posts: 106
Joined: 04 Sep 2003 10:55

Re: How Can I change GRF´s in Loaded or in Action in OpenTTD

Post by Lundis »

It can be difficult to play anything at all if you don't have any vehicles and can't load any grfs.
This happened with a scenario I downloaded from within the game. It had an early start year and two sets of grfs to start with. No trains and not much else.
Transportman
Tycoon
Tycoon
Posts: 2792
Joined: 22 Feb 2011 18:34

Re: How Can I change GRF´s in Loaded or in Action in OpenTTD

Post by Transportman »

Lundis wrote:It can be difficult to play anything at all if you don't have any vehicles and can't load any grfs.
This happened with a scenario I downloaded from within the game. It had an early start year and two sets of grfs to start with. No trains and not much else.
Can't you cheat the year up to 1 or 2 years before the first vehicle gets available? Or modify the start year of the scenario in the scenario editor?

Changing the loaded NewGRF's is still possible, you have to change a setting in the configuration file to re-enable it, but don't complain about weird behaviour if you change the NewGRF's.
Coder of the Dutch Trackset | Development support for the Dutch Trainset | Coder of the 2cc TrainsInNML
Valentijn
Engineer
Engineer
Posts: 118
Joined: 07 Nov 2007 10:04

Re: How Can I change GRF´s in Loaded or in Action in OpenTTD

Post by Valentijn »

I think I just ran into this problem also.

I want to play the scenario "The Netherlands by Purno and MrX" which can be downloaded in-game.

I would like to add the dutch trainset newgrf so I can build dutch trains.

However if I open the scenario in the Scenario Editor, I can't add any newgrfs???

If I create a new/clean scenario, I *can* add newgrfs.

I think for scenarios you should be able to add newgrf (no vehicles/buildings yet), or is it asking for problems also?

Valentijn

EDIT: I read some more posts. Seems the developer tools newgrf setting can help here. Haven't yet been able to find post about why it's acceptable to never be able to add newgrfs to a scenario. This basically makes a scenario limited to the newgrf chosen on scenario creation?
For example, the "The Netherlands Scenario" is 2048x2048 and took many hours to create. If you would like to play that one with Dutch Trainset, you would need to create the scenario from scratch again?
User avatar
Zuu
OpenTTD Developer
OpenTTD Developer
Posts: 4553
Joined: 09 Jun 2003 18:21
Location: /home/sweden

Re: How Can I change GRF´s in Loaded or in Action in OpenTTD

Post by Zuu »

Scenarios and save games are technically the same. Thus, you can face the same problems with changing NewGRFs in scenarios as in save games.
My OpenTTD contributions (AIs, Game Scripts, patches, OpenTTD Auto Updater, and some sprites)
Junctioneer (a traffic intersection simulator)
Rubidium
OpenTTD Developer
OpenTTD Developer
Posts: 3815
Joined: 09 Feb 2006 19:15

Re: How Can I change GRF´s in Loaded or in Action in OpenTTD

Post by Rubidium »

Removing, or more precisely: not loading, a NewGRFs causes lots of trouble due to missing metadata. There are fallbacks, but you'll end up with the same engine multiple times, or wagons not being able to carry a certain cargo, ... Most problems were (or are) with cargos, which are initialised before even the map array for the scenario (or game) has been generated. So yes, the removal problems happen with scenarios as well. Hell, there's even a scenario on bananas that removed vehicle NewGRFs and causes massive amounts of duplicate vehicles.

Adding a NewGRF can influence others, e.g. by causing other NewGRFs to not load. In effect this would be "removing" another NewGRF for which I just explained why it is bad.

Moving a NewGRF in the list can influence others as well, e.g. NewGRFs can base their decision on whether another NewGRF "is loaded" or "is going to be loaded". As such it can cause other NewGRFs to not load.

Changing parameters of a NewGRF can influence others as well, e.g. NewGRFs can read the parameter values of other NewGRFs. As such it can cause other NewGRFs to not load.

Conclusion: any change to the NewGRF settings has the chance to cause "unrelated" NewGRFs to not load. As we were getting a significant amount of bug reports due to changes in NewGRF settings exactly triggering such "not loading" of NewGRFs, even though there were ample warnings, we decided to disable the utterly broken feature of changing NewGRFs mid-game by default.

Consequently we disallow loading of savegames without the right NewGRFs.

From now on we will also close any bug report, without explanation, when we find out they messed with the NewGRF settings of that game.
Valentijn
Engineer
Engineer
Posts: 118
Joined: 07 Nov 2007 10:04

Re: How Can I change GRF´s in Loaded or in Action in OpenTTD

Post by Valentijn »

Thanks for the explanation, I understand that things can go weird.

But do you think it's feasible for scenarios to reenable it in the future?

A scenario can be reinitialized for example (since it has no buildings/verhicles yet)? Or am I taking shortcuts here.
Rubidium
OpenTTD Developer
OpenTTD Developer
Posts: 3815
Joined: 09 Feb 2006 19:15

Re: How Can I change GRF´s in Loaded or in Action in OpenTTD

Post by Rubidium »

Valentijn wrote:Or am I taking shortcuts here.
Yeah, unless you think houses, industries, transmitters, light houses and such are not buildings.

Or do you mean that those should be scrubbed as well during a "reinitialization" of the scenario?
Valentijn
Engineer
Engineer
Posts: 118
Joined: 07 Nov 2007 10:04

Re: How Can I change GRF´s in Loaded or in Action in OpenTTD

Post by Valentijn »

Rubidium wrote:
Valentijn wrote:Or am I taking shortcuts here.
Yeah, unless you think houses, industries, transmitters, light houses and such are not buildings.

Or do you mean that those should be scrubbed as well during a "reinitialization" of the scenario?
So no shortcut then :)
JoaoV
Engineer
Engineer
Posts: 3
Joined: 06 Apr 2011 10:24

Re: How Can I change GRF´s in Loaded or in Action in OpenTTD

Post by JoaoV »

This can only be solved with the birth of NewOpenTTD¡ :twisted: :evil:
User avatar
Zuu
OpenTTD Developer
OpenTTD Developer
Posts: 4553
Joined: 09 Jun 2003 18:21
Location: /home/sweden

Re: How Can I change GRF´s in Loaded or in Action in OpenTTD

Post by Zuu »

JoaoV wrote:This can only be solved with the birth of NewOpenTTD¡ :twisted: :evil:
Looking forward to seeing your proper fix of the issue. :-D
My OpenTTD contributions (AIs, Game Scripts, patches, OpenTTD Auto Updater, and some sprites)
Junctioneer (a traffic intersection simulator)
aantono
Traffic Manager
Traffic Manager
Posts: 211
Joined: 15 Apr 2010 21:01
Location: Midwest, US

Re: How Can I change GRF´s in Loaded or in Action in OpenTTD

Post by aantono »

Do you think that it would be possible to add a feature in Scenario Editor to copy the existing scenario's terrain and towns, so that people, who want to use their own GRFs can take an existing scenario and just clone its terrain and towns and apply the GRF's they want?
User avatar
planetmaker
OpenTTD Developer
OpenTTD Developer
Posts: 9432
Joined: 07 Nov 2007 22:44
Location: Sol d

Re: How Can I change GRF´s in Loaded or in Action in OpenTTD

Post by planetmaker »

aantono wrote:Do you think that it would be possible to add a feature in Scenario Editor to copy the existing scenario's terrain and towns, so that people, who want to use their own GRFs can take an existing scenario and just clone its terrain and towns and apply the GRF's they want?
Yes - it's more a question of actually implementing it.
Post Reply

Return to “OpenTTD Problems”

Who is online

Users browsing this forum: No registered users and 15 guests