Let me change GRFs in game!

Got an idea for OpenTTD? Post it here!

Moderator: OpenTTD Developers

User avatar
YNM
Tycoon
Tycoon
Posts: 3574
Joined: 22 Mar 2012 11:10
Location: West Java

Re: Let me change GRFs in game!

Post by YNM »

Eddi wrote:no, it will not load a different file, it will only reload the same file that it already opened before. so unless you have overwritten the file, nothing will change. (it will, however, reset any changes you have done in the ingame sprite aligner)
Would it also reset parameters ? If yes, then this feature shouldn't be removed,



but must be "hidden away" from any people who don't understand. cfg files :o

Well, at least we also can remove all trace that this is enabled... also dissalow people to publish it, probably. (yes, in that case, this thread should be removed fully from the server)

Just crazy thougt, trough.
YNM = yoursNotMine - Don't get it ?
「ヨーッスノットマイン」もと申します。
bjgttd
Engineer
Engineer
Posts: 86
Joined: 13 Aug 2012 22:04

Re: Let me change GRFs in game!

Post by bjgttd »

belugas wrote:if we simply moved it under the rug, ti would meant we are a lazy bunch. But since i can still remember the long evenings/nights we've all done in order to develop and/or debug the game, I would not say we were/are lazy at any points.
It's totally OK to hide things under the rug from time to time - called "prioritizing". But it's not OK to pretend it's not there, like some people suggesting. Windows updating it's components all the time, Linux has rpm with the dependency check.
Just a wild idea - new GRF versions could be checked for a backward compatibility on a compilation stage since everything is done (and stored) on your "build factory" anyway. Than you just allow updating (not adding/removing yet) GRFs signed "safe".
User avatar
FooBar
Tycoon
Tycoon
Posts: 6553
Joined: 21 May 2007 11:47
Location: The Netherlands
Contact:

Re: Let me change GRFs in game!

Post by FooBar »

bjgttd wrote:In a few days (20 or 30 years in the game) the new and improved release of "Sailing Ships" comes out (the old one is already started with), but I can't use it: I'm not a developer to activate the mode (specially because it has no fail-safe), and I don't want to start over.
Upgrading a grf in an existing game (provided it's compatible) is as easy as removing the old version from your system after downloading the new one. The game will automatically pick up the new version as compatible version. No need to activate the developer tools for that.

@Yoursnotmine: It does not reset parameters. It will apply the previously set parameters to the new file. If the meaning of parameters changed between versions, you'll possibly end up with a game crash.
oberhümer
Tycoon
Tycoon
Posts: 1283
Joined: 23 Oct 2009 19:35
Location: Here and there, sometime or another

Re: Let me change GRFs in game!

Post by oberhümer »

What about scenarios?
--- Licenses: GNU LGPL, version 2 or newer, code and graphics. CC-By-SA, graphics, alternatively. If you're using any, I'd like to hear about it --- Call them "track types" ---
--- Mostly inactive developer for: NuTracks - Central European Train Set --- Running/compiling for: Linux (x86) - Android - Windows (32/64 bit) ---

--- Need a file packer? 7-Zip --- BOINC - use your computing power to benefit science --- Block trackers, not ads --- Unix in dispersible pellets, the formula for the future. ---
bjgttd
Engineer
Engineer
Posts: 86
Joined: 13 Aug 2012 22:04

Re: Let me change GRFs in game!

Post by bjgttd »

FooBar wrote:
bjgttd wrote:In a few days (20 or 30 years in the game) the new and improved release of "Sailing Ships" comes out (the old one is already started with), but I can't use it: I'm not a developer to activate the mode (specially because it has no fail-safe), and I don't want to start over.
Upgrading a grf in an existing game (provided it's compatible) is as easy as removing the old version from your system after downloading the new one. The game will automatically pick up the new version as compatible version. No need to activate the developer tools for that.
It didn't do it. I've downloaded the new one, removed the old one (all from the game's start screen), than loaded the game - oops, the game has loaded the old version. Had I missed some step?
User avatar
Andrew350
Chairman
Chairman
Posts: 768
Joined: 19 Dec 2011 07:54
Location: Washington State, USA
Contact:

Re: Let me change GRFs in game!

Post by Andrew350 »

You have to actually remove the old file from your computer for it to work on an existing savegame. Just downloading the new file doesn't erase the old one, you have to remove it manually.
Last edited by Andrew350 on 28 Aug 2012 19:13, edited 1 time in total.
michael blunck
Tycoon
Tycoon
Posts: 5948
Joined: 27 Apr 2005 07:09
Contact:

Re: Let me change GRFs in game!

Post by michael blunck »

andythenorth wrote: Is it time to consider removing newgrf entirely?
oberhümer wrote: What about scenarios?
Yep. And everything else, in an attempt to achieve something like "vanilla TTD" in 2 years or so?

regards
Michael
Image
bjgttd
Engineer
Engineer
Posts: 86
Joined: 13 Aug 2012 22:04

Re: Let me change GRFs in game!

Post by bjgttd »

Andrew350 wrote:You have to actually remove the old file from your computer for it to work on an existing savegame. Just downloading the new file doesn't erase the old one, you have to remove it manually.
But how do I know it's really compatible? Isn't this exactly what developers asking gamers not to do?
User avatar
lawton27
Tycoon
Tycoon
Posts: 1418
Joined: 03 Aug 2009 14:29
Location: Manchester

Re: Let me change GRFs in game!

Post by lawton27 »

michael blunck wrote:Yep. And everything else, in an attempt to achieve something like "vanilla TTD" in 2 years or so?
Sounds great to me, almost wish I could play a game like that now!
User avatar
FooBar
Tycoon
Tycoon
Posts: 6553
Joined: 21 May 2007 11:47
Location: The Netherlands
Contact:

Re: Let me change GRFs in game!

Post by FooBar »

bjgttd wrote:But how do I know it's really compatible? Isn't this exactly what developers asking gamers not to do?
The game will tell you that the grf is missing if it isn't compatible. Then you have to place the old version back. It is therefore best to move it outside of the newgrf folder instead of directly deleting the old version.

This will hold if the newgrf actually provides version information. You can check that in the newgrf window. If the grf has compatibility information a "version" and "min compatible version" will be listed with the newgrf description. If the version number of the old file is equal or higher than the min compatible version number of the new file, they're (forward) compatible. Only then the game will allow the upgrade. If no version information is available, the game will always allow the upgrade, even if it's a downgrade or if it's incompatible (as the game has no way of knowing what's really the case).
Terkhen
OpenTTD Developer
OpenTTD Developer
Posts: 1034
Joined: 11 Sep 2008 07:32
Location: Spain

Re: Let me change GRFs in game!

Post by Terkhen »

With regard to scenarios, as Foobar already mentioned: http://www.tt-forums.net/viewtopic.php?f=32&t=61140
bjgttd
Engineer
Engineer
Posts: 86
Joined: 13 Aug 2012 22:04

Re: Let me change GRFs in game!

Post by bjgttd »

FooBar wrote:
bjgttd wrote:But how do I know it's really compatible? Isn't this exactly what developers asking gamers not to do?
The game will tell you that the grf is missing if it isn't compatible. Then you have to place the old version back. It is therefore best to move it outside of the newgrf folder instead of directly deleting the old version.

This will hold if the newgrf actually provides version information. You can check that in the newgrf window. If the grf has compatibility information a "version" and "min compatible version" will be listed with the newgrf description. If the version number of the old file is equal or higher than the min compatible version number of the new file, they're (forward) compatible. Only then the game will allow the upgrade. If no version information is available, the game will always allow the upgrade, even if it's a downgrade or if it's incompatible (as the game has no way of knowing what's really the case).
I have 11 GRFs, including NuTracks, 2CC Trainset, Aviators Aircraft, eGRVTS, FISH - none of them has that information in the NewGRF Settings window. It sounds like we are talking about different games (or at least mods/forks).
User avatar
FooBar
Tycoon
Tycoon
Posts: 6553
Joined: 21 May 2007 11:47
Location: The Netherlands
Contact:

Re: Let me change GRFs in game!

Post by FooBar »

I can't post a screenshot now, as I'm on my phone, but you might just be unlucky that all grfs you use don't provide this information. In the end it must be specifically supplied by the author of the grf.
Supercheese
Tycoon
Tycoon
Posts: 1660
Joined: 16 Dec 2007 22:24
Location: Idaho, USA

Re: Let me change GRFs in game!

Post by Supercheese »

FooBar wrote:I can't post a screenshot now, as I'm on my phone, but you might just be unlucky that all grfs you use don't provide this information. In the end it must be specifically supplied by the author of the grf.
Or it might be that the in-game non-developer NewGRF window doesn't display that information. Perhaps you have to back out to the main menu newgrf window.
Eyecandy Road Vehicles | Fake Subways | Supercheese's NewObjects

"Fashions and cultures change, but steam trains shall always be majestic."
-Professor Hershel Layton
User avatar
FooBar
Tycoon
Tycoon
Posts: 6553
Joined: 21 May 2007 11:47
Location: The Netherlands
Contact:

Re: Let me change GRFs in game!

Post by FooBar »

Argh, you're right. Who would've expected that? Also for non-developers it's interesting information in case of problems with a grf.

"I have problems with a grf"
"What version do you have"
"I don't know, it isn't listed"

Well, that leaves moving the old grf outside the newgrf folder and trying to load the game. If it loads the compatible version you're good to go, otherwise you'll have to place the old grf back.
User avatar
PikkaBird
Graphics Moderator
Graphics Moderator
Posts: 5602
Joined: 13 Sep 2004 13:21
Location: The Moon

Re: Let me change GRFs in game!

Post by PikkaBird »

FooBar wrote:
bjgttd wrote:In a few days (20 or 30 years in the game) the new and improved release of "Sailing Ships" comes out (the old one is already started with), but I can't use it: I'm not a developer to activate the mode (specially because it has no fail-safe), and I don't want to start over.
Upgrading a grf in an existing game (provided it's compatible) is as easy as removing the old version from your system after downloading the new one. The game will automatically pick up the new version as compatible version. No need to activate the developer tools for that.
Wat.

Surely if the upgraded version really is compatible, it will load it in regardless. No removing files, no developer settings.
User avatar
planetmaker
OpenTTD Developer
OpenTTD Developer
Posts: 9432
Joined: 07 Nov 2007 22:44
Location: Sol d

Re: Let me change GRFs in game!

Post by planetmaker »

PikkaBird wrote:Surely if the upgraded version really is compatible, it will load it in regardless. No removing files, no developer settings.
If OpenTTD can find the exact version it needs for a savegame it will use that - even if there's a compatible but newer version around.
bjgttd
Engineer
Engineer
Posts: 86
Joined: 13 Aug 2012 22:04

Re: Let me change GRFs in game!

Post by bjgttd »

planetmaker wrote:
PikkaBird wrote:Surely if the upgraded version really is compatible, it will load it in regardless. No removing files, no developer settings.
If OpenTTD can find the exact version it needs for a savegame it will use that - even if there's a compatible but newer version around.
And if it can't it grays out the "load" button. Looks for an exact path (and may be MD5), ignores file with the same name and ID in a different tar.
Seems like the issue is really hidden very dip under the rug and almost forgotten. No suggestions given in this topic (by people who has developed for OpenTTD a lot and know high above average about it) survived a "reality check".
User avatar
planetmaker
OpenTTD Developer
OpenTTD Developer
Posts: 9432
Joined: 07 Nov 2007 22:44
Location: Sol d

Re: Let me change GRFs in game!

Post by planetmaker »

bjgttd wrote:
planetmaker wrote:
PikkaBird wrote:Surely if the upgraded version really is compatible, it will load it in regardless. No removing files, no developer settings.
If OpenTTD can find the exact version it needs for a savegame it will use that - even if there's a compatible but newer version around.
And if it can't it grays out the "load" button. Looks for an exact path (and may be MD5), ignores file with the same name and ID in a different tar.
If you think that matching name and GRFID automatically mean and should mean the same as compatible, you're wrong. There's also the NewGRF's version and minimally compatible version taken into account. Thus a downgrade in the version will never work. An upgrade will only work, if the previously used version of that NewGRF is higher than the minimally compatible version of the newer version of that NewGRF.
Post Reply

Return to “OpenTTD Suggestions”

Who is online

Users browsing this forum: No registered users and 17 guests