The International Simutrans Forum

 

Author Topic: Simutrans Updater  (Read 5508 times)

0 Members and 1 Guest are viewing this topic.

Offline blitzmaster

  • *
  • Posts: 31
    • Krmpf Krmpf Studios
Simutrans Updater
« 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

Offline wernieman

  • Devotees (Inactive)
  • *
  • Posts: 713
    • Werniemans-Webside (only German)
Re: Simutrans Updater
« Reply #1 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 ...

Offline vilvoh

  • One of the good guys
  • Administrator (Inactive)
  • *
  • Posts: 4504
  • I'm the constructor, the architect
    • Escala real
Re: Simutrans Updater
« Reply #2 on: January 21, 2009, 05:04:29 PM »
It already exists and it's name it Simusetup. 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

Offline blitzmaster

  • *
  • Posts: 31
    • Krmpf Krmpf Studios
Re: Simutrans Updater
« Reply #3 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]

Offline wernieman

  • Devotees (Inactive)
  • *
  • Posts: 713
    • Werniemans-Webside (only German)
Re: Simutrans Updater
« Reply #4 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 ....

Offline blitzmaster

  • *
  • Posts: 31
    • Krmpf Krmpf Studios
Re: Simutrans Updater
« Reply #5 on: January 21, 2009, 05:20:53 PM »
yes, okay
but I think that such infos could be implemented in the updater too...

Offline vilvoh

  • One of the good guys
  • Administrator (Inactive)
  • *
  • Posts: 4504
  • I'm the constructor, the architect
    • Escala real
Re: Simutrans Updater
« Reply #6 on: January 21, 2009, 05:25:04 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.

Offline blitzmaster

  • *
  • Posts: 31
    • Krmpf Krmpf Studios
Re: Simutrans Updater
« Reply #7 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 =)

Offline Tomas

  • *
  • Posts: 251
Re: Simutrans Updater
« Reply #8 on: January 21, 2009, 05:51:01 PM »
I 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 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 :)

Offline blitzmaster

  • *
  • Posts: 31
    • Krmpf Krmpf Studios
Re: Simutrans Updater
« Reply #9 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...

Offline VS

  • Senior Plumber (Devotee)
  • Devotee
  • *
  • Posts: 4855
  • Vladimír Slávik
    • VS's Simutrans site
  • Languages: CS,EN
Re: Simutrans Updater
« Reply #10 on: January 21, 2009, 06:55:34 PM »
Simutrans is released in variety of formats, on various places...

Offline IgorEliezer br

  • Devotee
  • Administrator
  • *
  • Posts: 4083
  • Cake recipes are cool... REALLY!
    • Igor Eliezer Architect and Urban Planner/Arquiteto e Urbanista
  • Languages: PT, EN, AutoLISP, Python
Re: Simutrans Updater
« Reply #11 on: January 21, 2009, 07:31:38 PM »
VS, this is good or bad? :)

Offline VS

  • Senior Plumber (Devotee)
  • Devotee
  • *
  • Posts: 4855
  • Vladimír Slávik
    • VS's Simutrans site
  • Languages: CS,EN
Re: Simutrans Updater
« Reply #12 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.

Offline prissi

  • Developer
  • Administrator
  • *
  • Posts: 9454
  • Languages: De,EN,JP
Re: Simutrans Updater
« Reply #13 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.

Offline wernieman

  • Devotees (Inactive)
  • *
  • Posts: 713
    • Werniemans-Webside (only German)
Re: Simutrans Updater
« Reply #14 on: January 22, 2009, 07:42:44 AM »
But .. if in the PAK64 a "Version Info"?

Offline blitzmaster

  • *
  • Posts: 31
    • Krmpf Krmpf Studios
Re: Simutrans Updater
« Reply #15 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?

Offline wernieman

  • Devotees (Inactive)
  • *
  • Posts: 713
    • Werniemans-Webside (only German)
Re: Simutrans Updater
« Reply #16 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.
« Last Edit: January 22, 2009, 06:06:16 PM by wernieman »

Offline blitzmaster

  • *
  • Posts: 31
    • Krmpf Krmpf Studios
Re: Simutrans Updater
« Reply #17 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...

Offline whoami

  • Devotees (Inactive)
  • *
  • Posts: 693
Re: Simutrans Updater
« Reply #18 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.

Offline blitzmaster

  • *
  • Posts: 31
    • Krmpf Krmpf Studios
Re: Simutrans Updater
« Reply #19 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.