The International Simutrans Forum

Development => Extension Requests => Topic started by: wernieman on January 22, 2009, 06:10:48 pm

Title: Version Info in PAKs
Post by: wernieman on January 22, 2009, 06:10:48 pm
in this Thread http://forum.simutrans.com/index.php?topic=1307.15 (http://forum.simutrans.com/index.php?topic=1307.15)
whe speak about a version info in the PAKs.

In simutrans (code) you have at the start the version info. At the nightly you have the revision. But in the PAKs there ar no version info. So when you get simutrans and PAKs, unzip then and delete the zips, you know the simutrans-version, but NOT the PAK-Version.

Is there a way to put a version info in the PAKs?

It would be good for the bug-messages and could be good for the network-mode ......
Title: Re: Version Info in PAKs
Post by: prissi on January 22, 2009, 09:19:54 pm
I was considering putting an

obj=misc
name=version
copyright=revision120

into the pak. However, I am not sure how to do this automatically.
Title: Re: Version Info in PAKs
Post by: wernieman on January 22, 2009, 09:42:02 pm
But ... where it i shown in the programm?

Ore must the User "look" in the PAK?
Title: Re: Version Info in PAKs
Post by: prissi on January 22, 2009, 09:58:42 pm
The user does not need to know; but it could be also shown on the starting splash screen.
Title: Re: Version Info in PAKs
Post by: VS on January 22, 2009, 10:18:38 pm
That seems quite good idea.

Generating files consistently across platforms is a pain, as I can attest... Shades have a few generated files (svn info and build date/time) and getting that to work was no small feat :( Using some scripting language and letting it overwrite a prepared "null" file could work. Default could be something like "version not entered"
Title: Re: Version Info in PAKs
Post by: jamespetts on January 22, 2009, 10:50:06 pm
Hmm - the way that it currently works is that each individual type of object has its own version number, which is incremented independently whenever features of that object are changed.
Title: Re: Version Info in PAKs
Post by: VS on January 22, 2009, 11:33:15 pm
JP - no, that is object of type "misc", which is a general type for any kind of thing related to program rather than game object (goods symbols in stop window), with abused parameter "copyright" for a textual value.
Title: Re: Version Info in PAKs
Post by: jamespetts on January 22, 2009, 11:42:27 pm
JP - no, that is object of type "misc", which is a general type for any kind of thing related to program rather than game object (goods symbols in stop window), with abused parameter "copyright" for a textual value.

Yes, I realise that that is the proposed workaround - my point was simply that there is a sort of system for versioning paksets already, but it is one that works on a type by type basis, rather than for whole paksets at a time.
Title: Re: Version Info in PAKs
Post by: VS on January 22, 2009, 11:46:03 pm
Format and pakset versions are quite different matters... I would not mix these two.
Title: Re: Version Info in PAKs
Post by: wernieman on January 23, 2009, 08:13:17 am
But the normal user don“t look in the Version of an objekt. And the problem is to show the user the version for a bug info...
Title: Re: Version Info in PAKs
Post by: prissi on January 23, 2009, 09:14:15 pm
object version (usually in the range between 0 and 9) are displayed during loading. I think the discussion is about pak set revisions. Since there is a splash screen image anyway, the copyright string could be simply revision xxx which is then displayed on screen.
Title: Re: Version Info in PAKs
Post by: sojo on January 23, 2009, 10:45:11 pm
Perhaps it would be help every pakset have a own help-text/help-site!?
Title: Re: Version Info in PAKs
Post by: wernieman on January 25, 2009, 11:14:50 am
@prissi
it is a good Idea .... but were (in wich File) must whe put the Version-Info of the PAK?
Title: Re: Version Info in PAKs
Post by: prissi on January 25, 2009, 11:38:01 am
The logo is loaded before any other paset. Thus it make sense to put it there in the copyright line (which is not shown anywhere in the game, since it is deleted from memory almost immediately afterwards). FOr pak64 it would be big-logo.dat
Title: Re: Version Info in PAKs
Post by: wernieman on January 25, 2009, 12:19:21 pm
But where it is shown in the game?

When the splash screen is shown, the PAK is not loading ... ore did I miss understand the simutrans-start?

And ... can I change in my PAK64-nightlys the big-logo.dat to the nightly-revision? So it will be easyer for bugreports..

(and with VS O.K. I will do the same in the PAK128)
Title: Re: Version Info in PAKs
Post by: jamespetts on January 25, 2009, 12:25:22 pm
If you have multiple paksets without having a default set in simuconf.tab, you will see the choose pakset menu before the splash screen. Which splash screen is displayed will then depend on which pakset is selected. Based on that observation, I'd conclude that the logos are part of the pakset loading process.
Title: Re: Version Info in PAKs
Post by: VS on January 25, 2009, 12:26:06 pm
Yes (for pak128), and please tell us how you do it, so we can do it, too :)
Title: Re: Version Info in PAKs
Post by: wernieman on January 26, 2009, 08:09:25 pm
I search .. at the moment there i no PAK-Revision-Info in the PAK64 ... and nothing is shown ...