The International Simutrans Forum

Development => Extension Requests => Topic started by: blitzmaster on January 21, 2009, 04:56:16 PM

Title: Simutrans Updater
Post by: blitzmaster on January 21, 2009, 04:56:16 PM
Hi!

What about a autmatic simutrans updater which will prompt the user if a new stable - or if wanted - a new nightly (then every day^^) is availible and will also download it.
It would be convenient if you are a nightly-tester, if it would download nightlies automatically.
This updater could either be implemented as an additional program or as an internal routine in simutrans.

Alex
Title: Re: Simutrans Updater
Post by: wernieman on January 21, 2009, 05:03:41 PM
You have a Problem to get the last nightly automatikly from the Server, but I (whe) want it, because the human MUST read, if there is an Info on the page ...
Title: Re: Simutrans Updater
Post by: vilvoh on January 21, 2009, 05:04:29 PM
It already exists and it's name it Simusetup (http://setup.simutrans.com/en/index.htm). If I remember correctly it updates you Simutrans copy, in case it detects Simutrans is already installed in your pc. However, it only works with stable versions, released through Sourceforge.net
Title: Re: Simutrans Updater
Post by: blitzmaster on January 21, 2009, 05:05:45 PM
and what abaout an integration into simutrans?

[edit]
wernieman: do you mean, that you want to read the user if there's any specific text to the release attached on your nightly-page,
don't you?
[/edit]
Title: Re: Simutrans Updater
Post by: wernieman on January 21, 2009, 05:17:47 PM
Yes ... at exaple that there is a compiling error / or "don't use this Version" ... or somethink else ....
Title: Re: Simutrans Updater
Post by: blitzmaster on January 21, 2009, 05:20:53 PM
yes, okay
but I think that such infos could be implemented in the updater too...
Title: Re: Simutrans Updater
Post by: vilvoh on January 21, 2009, 05:25:04 PM
Quote from: blitzmaster on January 21, 2009, 05:05:45 PM
and what abaout an integration into simutrans?

Well, it's a posibility, but there're some problems (mainly the multiplatform issue) I can't remember if there's a game that updates itself. Usually, games have a patch manager but not new version managers. You usually must download and install every new version.
Title: Re: Simutrans Updater
Post by: blitzmaster on January 21, 2009, 05:32:42 PM
well, I think simutrans could have one ;-)
the issue of multiplattforms is an actual problem, but I think with an additionally update/patch manager, which is built independently we could solve this problem
it's true, that games usually have a path manager, but this is probably due to the fact, that most games aren't freeware, and so you must buy a new version. I think especially for freeware it is a very nice thing, if it updates itself =)
Title: Re: Simutrans Updater
Post by: Tomas on January 21, 2009, 05:51:01 PM
Quote from: vilvoh on January 21, 2009, 05:25:04 PMI can't remember if there's a game that updates itself.
...
You usually must download and install every new version.

My lovely multiplatform media player VLC (http://videolan.org) works similary:
* find the available updates
* download instalator with new version (for "autoupdate" may be only patch package)
* run instalation

VLC is opensource, you can draw inspire from here :)
Title: Re: Simutrans Updater
Post by: blitzmaster on January 21, 2009, 06:00:00 PM
a similar processing could be done with simutrans
but I prefer that only the files which have been changed are updated
as an alternative the updater could only download the installtion package... but I personally hate so-called "Updaters" which just download a new installation package...
Title: Re: Simutrans Updater
Post by: VS on January 21, 2009, 06:55:34 PM
Simutrans is released in variety of formats, on various places...
Title: Re: Simutrans Updater
Post by: IgorEliezer on January 21, 2009, 07:31:38 PM
VS, this is good or bad? :)
Title: Re: Simutrans Updater
Post by: VS on January 21, 2009, 07:58:47 PM
Bad for automatic updates. Having to do unpacking means that support for more formats must be added. You could make it so that all files are zip, but then again, it is about the weakest compression format I know. Gzip, rar, bzip2, all these compress better.
Title: Re: Simutrans Updater
Post by: prissi on January 21, 2009, 09:57:57 PM
Also updating the exec would make some pak set stop to work. The automatic updating would be only for pak64 users.
Title: Re: Simutrans Updater
Post by: wernieman on January 22, 2009, 07:42:44 AM
But .. if in the PAK64 a "Version Info"?
Title: Re: Simutrans Updater
Post by: blitzmaster on January 22, 2009, 02:47:01 PM
ok, I see, this topic is more complicated than it seemed to be...
wernieman: sorry, but what do you mean?
Title: Re: Simutrans Updater
Post by: wernieman on January 22, 2009, 03:29:06 PM
It was the answer to prissi
Quote....The automatic updating would be only for pak64 users.

for an automatik update, at first the program mußt look, if the Version on the Web is newer than the local.

There is an Version Info in simutrans (Version or at the nightly the revision), but I don´t see a Versioninfo in the PAKs! So for an automatik System it is a problem to see, if the Web version is newer than the local.
Title: Re: Simutrans Updater
Post by: blitzmaster on January 22, 2009, 03:31:00 PM
ah, Thank You!

This is an interesting point. But paks will have to contain version infos in future because of the network mode, won't they...
Title: Re: Simutrans Updater
Post by: whoami on January 28, 2009, 01:44:03 PM
Well, someone would have to maintain a public table that contains info about
- public locations for all files
- order of versions (program and pak sets)
- compatibility of pak sets with a certain program version
- upgradability of savegames from one version to another (at least inform the user of limitations in that regard)

This has been done - partially - already, I guess.
Title: Re: Simutrans Updater
Post by: blitzmaster on January 28, 2009, 05:53:10 PM
Yes, you are completely right. But I think that these are the least problems, because - as you mentioned - this things have partly been implemented so far.