[BaNaNaS] A few version of one NewGRF and saved game

Discussions about the technical aspects of graphics development, including NewGRF tools and utilities.

Moderator: Graphics Moderators

Post Reply
TadeuszD
Transport Coordinator
Transport Coordinator
Posts: 329
Joined: 07 Nov 2011 19:32
Location: PL

[BaNaNaS] A few version of one NewGRF and saved game

Post by TadeuszD »

Let's imagine described below situation:

- I create account on Bananas for new NewGRF set,
- I upload version 1.0 of this set,
- Player #1 downloads this version of my set and creates saved game,
- I update the set on Bananas to version 1.1 which in NOT compatible with 1.0,
- Player #2 downloads newer version of my set,
- Player #1 sends saved game (requires the earlier version of the set) to Player #2
- Player #2 attempts to run saved game

What happens? Does OTTD look for older version of required set and automatically downloads it from Bananas? I know that Bananas stores all uploaded versions... If not, what does Player #2 should do to run saved game? Should I create the new account for newer wersion of set?
I need answers to make right decision about the future of one old set... ;)
Image
User avatar
planetmaker
OpenTTD Developer
OpenTTD Developer
Posts: 9432
Joined: 07 Nov 2007 22:44
Location: Sol d

Re: [BaNaNaS] A few version of one NewGRF and saved game

Post by planetmaker »

TadeuszD wrote:Let's imagine described below situation:

- I create account on Bananas for new NewGRF set,
- I upload version 1.0 of this set,
- Player #1 downloads this version of my set and creates saved game,
- I update the set on Bananas to version 1.1 which in NOT compatible with 1.0,
- Player #2 downloads newer version of my set,
- Player #1 sends saved game (requires the earlier version of the set) to Player #2
- Player #2 attempts to run saved game

Does OTTD look for older version of required set and automatically downloads it from Bananas?
That exactly happens when searching for missing NewGRFs in the savegame load dialogue. The NewGRF needed for a particular savegame is identified by the grfID and the md5sum. OpenTTD will ask bananas whether it has that particular version of the NewGRF as needed by the savegame available and send it.
Players who go to the normal NewGRF dialogue as accessible from the game's main menu will only see your newest uploaded version of the NewGRF

EDIT: IMHO it's not necessary to create a new account for newer versions. Unless you believe that they both serve independent gameplay choices so that a player starting a new map shall be able to choose one or the other from ingame content download. But in that case I'd consider them separate NewGRFs which might want to use different grfIDs as well.
Eddi
Tycoon
Tycoon
Posts: 8289
Joined: 17 Jan 2007 00:14

Re: [BaNaNaS] A few version of one NewGRF and saved game

Post by Eddi »

in other words: yes.
TadeuszD
Transport Coordinator
Transport Coordinator
Posts: 329
Joined: 07 Nov 2011 19:32
Location: PL

Re: [BaNaNaS] A few version of one NewGRF and saved game

Post by TadeuszD »

planetmaker wrote:That exactly happens when searching for missing NewGRFs in the savegame load dialogue. The NewGRF needed for a particular savegame is identified by the grfID and the md5sum.
Thanks! So, the older version (but most matched) of NewGRF file is downloaded even if the GRF property "min_compatible_version" was not changed (only graphics was updated, for example)?
Image
Transportman
Tycoon
Tycoon
Posts: 2792
Joined: 22 Feb 2011 18:34

Re: [BaNaNaS] A few version of one NewGRF and saved game

Post by Transportman »

TadeuszD wrote:
planetmaker wrote:That exactly happens when searching for missing NewGRFs in the savegame load dialogue. The NewGRF needed for a particular savegame is identified by the grfID and the md5sum.
Thanks! So, the older version (but most matched) of NewGRF file is downloaded even if the GRF property "min_compatible_version" was not changed (only graphics was updated, for example)?
It will first go for the same version as the save game. If that is not possible, it tries to load a compatible one (that is already on the computer) with a warning that it is not the same version. If that is also not possible, it might try to load it without the missing NewGRF, but you have to set some settings on a different value for that to be possible.
Last edited by Transportman on 05 Dec 2013 10:34, edited 1 time in total.
Coder of the Dutch Trackset | Development support for the Dutch Trainset | Coder of the 2cc TrainsInNML
User avatar
planetmaker
OpenTTD Developer
OpenTTD Developer
Posts: 9432
Joined: 07 Nov 2007 22:44
Location: Sol d

Re: [BaNaNaS] A few version of one NewGRF and saved game

Post by planetmaker »

TadeuszD wrote:
planetmaker wrote:That exactly happens when searching for missing NewGRFs in the savegame load dialogue. The NewGRF needed for a particular savegame is identified by the grfID and the md5sum.
Thanks! So, the older version (but most matched) of NewGRF file is downloaded even if the GRF property "min_compatible_version" was not changed (only graphics was updated, for example)?
If no *exact* match is found, no download is offered in the load savegame dialogue.
TadeuszD
Transport Coordinator
Transport Coordinator
Posts: 329
Joined: 07 Nov 2011 19:32
Location: PL

Re: [BaNaNaS] A few version of one NewGRF and saved game

Post by TadeuszD »

Thanks all for quick answers! :)
Now I understand the whole process of downloading NewGRFs, I hope.
Image
User avatar
Phreeze
Director
Director
Posts: 514
Joined: 12 Feb 2010 14:30
Location: Luxembourg

Re: [BaNaNaS] A few version of one NewGRF and saved game

Post by Phreeze »

btw:

the "minimal version" in the GRF is related to the openTTD version, not to the GRF version, is that correct ?
Eddi
Tycoon
Tycoon
Posts: 8289
Joined: 17 Jan 2007 00:14

Re: [BaNaNaS] A few version of one NewGRF and saved game

Post by Eddi »

yes. it defines which openttd versions get it offered for downloading
User avatar
planetmaker
OpenTTD Developer
OpenTTD Developer
Posts: 9432
Joined: 07 Nov 2007 22:44
Location: Sol d

Re: [BaNaNaS] A few version of one NewGRF and saved game

Post by planetmaker »

Phreeze wrote:btw:

the "minimal version" in the GRF is related to the openTTD version, not to the GRF version, is that correct ?
Uh... which? :)

The one which you define inside the NewGRF's code itself (grf / action14 block), the minimal_compatible_version refers to the NewGRF itself (as defined by its version variable in the grf / action14 block)
The one in the bananas website, when you upload a NewGRF, that refers to the OpenTTD version.
Post Reply

Return to “NewGRF Technical Discussions”

Who is online

Users browsing this forum: No registered users and 15 guests