Elvas Tower: OR Route Downloader -> Providers configuration - 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.
  • 3 Pages +
  • 1
  • 2
  • 3
  • You cannot start a new topic
  • You cannot reply to this topic

OR Route Downloader -> Providers configuration Rate Topic: -----

#21 User is offline   eric from trainsim 

  • Waste Disposal Engineer
  • Group: Private - Open Rails Developer
  • Posts: 1,578
  • Joined: 30-October 10
  • Gender:Male
  • Simulator:ORTS
  • Country:

Posted 29 February 2024 - 06:40 AM

Dunno, folks. I'm struggling to understand the fascination with this, or with intentionally excluding payware and membership models.

VfS has far more potential to simplify route acquisition and deployment.

And, I'll state the obvious... what good is integrating with GitHub for works in progress if there's no official editor?...

I'm investing a lot of my time in making some overdue changes to TSRE, and integrating with GitHub is not anywhere on the radar. But including the config files needed for VFS support might be if that were to be an ORTS team priority.

#22 User is offline   Jack@Elvas 

  • Fireman
  • Group: Status: First Class
  • Posts: 116
  • Joined: 30-August 23
  • Gender:Male
  • Simulator:All
  • Country:

Posted 29 February 2024 - 09:43 PM

View Postrickloader, on 29 February 2024 - 02:49 AM, said:

I welcome this development. It will be helpful to users by simplifying route acquisition which must further the OR cause.
Github is now established as having many advantages for routebuilders ( providers) . The facility of WIP continuous development and allowing several collabotators, being very valuable.

There maybe a snag. with ,zip in Git hub download. If the code is invoking Github .zip download I find that this is unreliable and often misses files from the download. Possibly the ..zip is not pointing at the current repository but at a previous stage such as the misleading "latest version" label.
Users never report problems with a faulty download . I think they just give up
Download from the Github app "desktop" is reliable, but I think users are reluctant to use this even though it also allows easy updates.
So i suggest providers test the validity of the download. Rick
"if(url.EndsWith(".git")|| url.EndsWith(".zip"))


Rick, this is a great point and I know exactly what you mean -

Having spoken with Siebren, reviewing the code and the json file, I think I'm interpreting correctly, that the goal was "Github repository" OR "ZIP file from somewhere other than github".
If you look at the current list - the few routes that are downloaded as Zip files, those aren't coming from github. So I think that's the intention - to allow for a zipped route on say the openrails.org website to be downloaded and installed at the click of a button, OR to allow a git repo. I agree that the github "Download this repo as a zip is unreliable as I've seen that first hand.

Siebren's code will allow the user to download the route without needing github desktop, nor the knowledge of how to clone a remote repo down locally.

#23 User is offline   rickloader 

  • Conductor
  • Group: Status: First Class
  • Posts: 493
  • Joined: 05-February 13
  • Gender:Male
  • Location:Southampton uk
  • Simulator:Open Rails
  • Country:

Posted 01 March 2024 - 08:06 AM

Thank you Jack and Siebren. It will be very good if the OR 1 click can access the latest repo from github. Would it be possible to go 1 stage further please? i am thinking of a "check this route for updates" button. That way users can be independant of Desktop, and route builders can know that users have the latest version when problems are reported.
Thanks Rick

#24 User is offline   Siebren 

  • Fireman
  • Group: Status: Active Member
  • Posts: 101
  • Joined: 16-November 22
  • Gender:Not Telling
  • Location:Ede, the Netherlands
  • Simulator:open rails
  • Country:

Posted 01 March 2024 - 08:39 AM

View Postrickloader, on 01 March 2024 - 08:06 AM, said:

Would it be possible to go 1 stage further please? i am thinking of a "check this route for updates" button. That way users can be independant of Desktop, and route builders can know that users have the latest version when problems are reported.
Thanks Rick


On the Menu Download Content window there is an Update button. Is that what you are suggesting? I could add a check when user starts the route, but I would not like issuing commands to GitHub every time a route is started. And if an user is really interested a watch can be set on the GitHub repository. Then user gets mails when changes occur on the repository.

Also the Info button gives the following information:

Quote

Changed local file(s) after the install (git status):
- No changed files found

Added local file(s) after the install (git status):
- No added files found

Remote GitHub Updates available:
- No updates found



Any other suggestions are welcome.

#25 User is offline   rickloader 

  • Conductor
  • Group: Status: First Class
  • Posts: 493
  • Joined: 05-February 13
  • Gender:Male
  • Location:Southampton uk
  • Simulator:Open Rails
  • Country:

Posted 02 March 2024 - 12:24 PM

Yes, the info and repo watch you describe will be fine. I agree it is bad to have automatic checks. No action needed then! Thanks for considering my suggestion, and your work on this feature
Rick

#26 User is offline   cjakeman 

  • Vice President
  • PipPipPipPipPipPipPipPip
  • Group: ET Admin
  • Posts: 2,868
  • Joined: 03-May 11
  • Gender:Male
  • Location:Peterborough, UK
  • Simulator:Open Rails
  • Country:

Posted 14 April 2024 - 12:07 AM

This is a question for Siebren, but I guess the answer might be more useful in a public forum.


In a mini-route zip archive, does your downloader require folders like "Global", "Routes" etc. to be at the top level, or will it find them if they are at the next level.

For example, should a zip like DemoModel1.zip contain:


/DemoModel1/
../Global/
../Routes/
...../SCE/
......../Activities/

or

/Global/
/Routes/
.../SCE/
....../Activities/


If it copes with both forms, which is preferred?

Thanks,

#27 User is offline   Siebren 

  • Fireman
  • Group: Status: Active Member
  • Posts: 101
  • Joined: 16-November 22
  • Gender:Not Telling
  • Location:Ede, the Netherlands
  • Simulator:open rails
  • Country:

Posted 14 April 2024 - 12:33 AM

Currently after the download the installer is searching for a Global directory. If it's one level lower it takes that into account. In the above example there will be an extra unnecessary DemoModel1 directory. Does not harm.

However in the downloader software suggestions I made to James this extra directory must be left out. And the top level of the zip file must be the Global, Routes, etc. level. Currently this DemoModel1 is the only downloadable route with this extra sub directory.

#28 User is offline   cjakeman 

  • Vice President
  • PipPipPipPipPipPipPipPip
  • Group: ET Admin
  • Posts: 2,868
  • Joined: 03-May 11
  • Gender:Male
  • Location:Peterborough, UK
  • Simulator:Open Rails
  • Country:

Posted 14 April 2024 - 05:08 AM

Thanks, Siebren. Very clear.

I'll pass this on to TtrainSimulations.net for their Starter Route.
I can also re-issue the Demo Model 1 without the unnecessary folder at the top-level.

#29 User is offline   Siebren 

  • Fireman
  • Group: Status: Active Member
  • Posts: 101
  • Joined: 16-November 22
  • Gender:Not Telling
  • Location:Ede, the Netherlands
  • Simulator:open rails
  • Country:

Posted 14 April 2024 - 06:52 AM

Yes, reissuing would be nice. Then we would not have to worry about that extra directory.

thanks, Siebren.

  • 3 Pages +
  • 1
  • 2
  • 3
  • 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