Elvas Tower: "Automatic" updater - Elvas Tower

Jump to content

Posting Rules

All new threads will be started by members of the Open Rails team, Staff, and/or Admins. Existing threads started in other forums may get moved here when it makes sense to do so.

Once a thread is started any member may post replies to it.
  • 6 Pages +
  • 1
  • 2
  • 3
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

"Automatic" updater Rate Topic: -----

#1 User is offline   James Ross 

  • Open Rails Developer
  • Group: Status: Elite Member
  • Posts: 5,490
  • Joined: 30-June 10
  • Gender:Not Telling
  • Simulator:Open Rails
  • Country:

Posted 03 March 2014 - 02:23 PM

In version X2077, I have added an "automatic" updater. For the moment, it is very basic, and is only enabled on my nightly builds. It is triggered by the presence of the "Updater.ini" file which, for the moment, simply specifies which URL to fetch to check for updates.

If an update is found, a link is shown on the main menu. Upon clicking it, the update is downloaded, extracted and "installed". For the moment, this only works if you have write access to your Open Rails installation (it checks this first). It then provides a second link, which starts the menu from the new version and cleans up the left-over update files.

This is very experimental. There are many things which can go wrong, may not be handled correctly yet, or could be improved. Options to configure the updater will be provided soon.

Please let me know if you have any issues (it should display an error message if anything unexpected occurs) or suggestions for further functionality.

#2 User is offline   scottb613 

  • Vice President
  • Group: Status: First Class
  • Posts: 2,973
  • Joined: 06-July 09
  • Gender:Male
  • Location:Downeast Maine (soon)
  • Simulator:ORTS
  • Country:

Posted 04 March 2014 - 03:33 PM

Hi James,

Works for me - no issues - so much better than the countless manual downloads - thanks so much...
:sign_welcome:

Regards,
Scott

#3 User is offline   thegrindre 

  • Member, Board of Directors
  • Group: Status: Elite Member
  • Posts: 8,349
  • Joined: 10-September 08
  • Gender:Male
  • Location:Now in central Arkansas
  • Simulator:MSTS & Trainz '04 & Open Rails
  • Country:

Posted 05 March 2014 - 03:54 AM

Sounds like a fantastic idea to me. :sign_welcome:

:oldstry:

#4 User is offline   Csantucci 

  • Member, Board of Directors
  • Group: Status: Elite Member
  • Posts: 6,999
  • Joined: 31-December 11
  • Gender:Male
  • Country:

Posted 10 March 2014 - 12:03 PM

I tried the feature, but I got a fail with following popup
Attached Image: Autoupdater.jpg
I restored the situation, changed the security settings allowing full control of the directory to all users, but got the same error. Maybe the error comes out when localized strings are used?

#5 User is offline   James Ross 

  • Open Rails Developer
  • Group: Status: Elite Member
  • Posts: 5,490
  • Joined: 30-June 10
  • Gender:Not Telling
  • Simulator:Open Rails
  • Country:

Posted 10 March 2014 - 02:01 PM

 Csantucci, on 10 March 2014 - 12:03 PM, said:

Maybe the error comes out when localized strings are used?


Yes, I think I've see that when it is using localised resources too. I need to dig into the localisation code and figure out how to fix the way they're loaded which is unfortunately tricky. ;)

#6 User is offline   dforrest 

  • Foreman Of Engines
  • Group: Status: Contributing Member
  • Posts: 977
  • Joined: 12-January 12
  • Gender:Male
  • Location:St. Vincent (formally UK)
  • Simulator:MSTS, Open Rails
  • Country:

Posted 22 March 2014 - 04:24 AM

Is there any way for the Automatic Updater to automatically make the switch between "RunActivity.exe" and "RunActivityLAA.exe"?

David

#7 User is offline   James Ross 

  • Open Rails Developer
  • Group: Status: Elite Member
  • Posts: 5,490
  • Joined: 30-June 10
  • Gender:Not Telling
  • Simulator:Open Rails
  • Country:

Posted 22 March 2014 - 04:49 AM

That's not really related to the updater; we could, instead, add a menu item to run RunActivityLAA instead of RunActivity.

#8 User is offline   dforrest 

  • Foreman Of Engines
  • Group: Status: Contributing Member
  • Posts: 977
  • Joined: 12-January 12
  • Gender:Male
  • Location:St. Vincent (formally UK)
  • Simulator:MSTS, Open Rails
  • Country:

Posted 22 March 2014 - 05:12 AM

 James Ross, on 22 March 2014 - 04:49 AM, said:

That's not really related to the updater; we could, instead, add a menu item to run RunActivityLAA instead of RunActivity.


That would be very useful.

David

#9 User is offline   Csantucci 

  • Member, Board of Directors
  • Group: Status: Elite Member
  • Posts: 6,999
  • Joined: 31-December 11
  • Gender:Male
  • Country:

Posted 22 March 2014 - 06:23 AM

I back that. There could be somewhere in the options one stating which one of the .exes is started.

#10 User is offline   James Ross 

  • Open Rails Developer
  • Group: Status: Elite Member
  • Posts: 5,490
  • Joined: 30-June 10
  • Gender:Not Telling
  • Simulator:Open Rails
  • Country:

Posted 24 March 2014 - 01:21 PM

Okay, so there's now an experimental option to use the large address aware binary instead in X2120 - it'll automatically fall back to the normal version if the LAA one does not exist (e.g. you're running from Subversion and/or have built the source code yourself).

I've also made some tweaks to the updater to allow for controlling the frequency of update checks, which I'll be utilising in the soon-to-be-enabled weekly experimental auto-updating.

  • 6 Pages +
  • 1
  • 2
  • 3
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users