Jump to content

Web-based multiplayer timetable viewer


Recommended Posts

 

Hello all,

I wanted to present you a small project I made. It's still in development, but mature enough to be shared here.

https://srtt.sokora.dev/

It's a web-based multiplayer timetable viewer.

Current features:

  • automatic updates,
  • routes view,
  • trains start times list view,
  • and some minor ones, like the server-time clock, or the EDR links.

I wanted to create a tool, that:

  • is simple,
  • presents correct, up-to-date data,
  • doesn't require (lot of) maintenance,
  • aims for more arcade-type play-style (not like real railway timetables),
  • focuses on playable parts of the scenarios,
  • helps finding trains that will spawn shortly,
  • helps finding interesting trains to drive.

Problems I know about:

  • train weights and lengths seem to be off,
  • some trains on the list seem not to spawn at all,
  • doesn't work very well on phone displays.

Anybody wants to take a look? Any kind of feedback welcome!

 

  • Like 8
  • Thanks 5
  • I agree 1
Link to comment
Share on other sites

Lovely, I like the simplicity.

Added to favorites 🙂 


To get the train weights right I guess you would have to seperate them in to traction type.

Example:
464036 E6ACTa and 40 412W wagons totals around 580m/3320t. (500m/2500t on your list)
464038 Traxx/E186-134 and 32 412W wagons totals around 470m/2650t (500m/2500t on list)

Does the api reports the empty consist weight or only loads?
What we did on https://www.simrail.virtualnorwegian.net/ was to have a table on the page with empty wagon weights and then add the cargo weight from api. But that requires updating with new waggons down the road and work against the "low maintance" model.

Either way, I like your page!

Link to comment
Share on other sites

Thanks for some kind words!

2 hours ago, Deadlost said:

To get the train weights right I guess you would have to seperate them in to traction type.

I'm afraid the thing I made is currently not capable of such things.

The way it works right now is: it uses a SimRail API (https://api1.aws.simrail.eu:8082/api/getAllTimetables?serverCode=pl2) that serves a raw timetable for the next 24 hours -- and the values for weights and lengths are already there, but they're partly invalid -- and that's basically the sole input of the data presented.

I actually thought of going that way, using the "trains-open" API and mixing that with the timetable API data, but I haven't decided yet if that's a good approach -- the data presented might be either better or worse -- there's no guarantee that the data both APIs serve matches -- so the decision what's right and what isn't would be on me. That would also require what exactly you did: hard-coding cars lengths (easy, one time job), and weights (much more error prone), which itself conflicts with my no-maintenance goal, just like you pointed out.

Link to comment
Share on other sites

21 minut temu, Blendzior napisał(a):

and the values for weights and lengths are already there, but they're partly invalid

they're put by hand when timetable is created, so its not valid at the moment.

22 minuty temu, Blendzior napisał(a):

I actually thought of going that way, using the "trains-open" API and mixing that with the timetable API data, but I haven't decided yet if that's a good approach -- the data presented might be either better or worse -- there's no guarantee that the data both APIs serve matches -- so the decision what's right and what isn't would be on me. That would also require what exactly you did: hard-coding cars lengths (easy, one time job), and weights (much more error prone), which itself conflicts with my no-maintenance goal, just like you pointed out.

Honestly, at the current state of API's mind (or its authors xD) is to map those two API's. To make it somewhat accurate you'll need to static map vehicles weights and lengths and simply sum it together. From trains-open endpoint you may take cargos weight, for example:

image.png.2a0eeda2b97355438e60bc13c27152b4.png

in this case each cart has 60 tons of cargo (excluding cart itself).

Link to comment
Share on other sites

1 hour ago, b_____g said:

map those two API's

That's some encouragement. I think I have an idea how to mix them, but that would require me to constantly query for the API responses, like every server, every 5-15 minutes, which I would try to avoid.

1 hour ago, b_____g said:

they're put by hand when timetable is created, so its not valid at the moment.

Well, that's also what I'm thinking -- maybe they will be valid at some point, and it's not worth doing extra job.

Appreciate the info though. I acquired some data few days ago (38 hours of constantly asking for trains-open, every 15 seconds, just quickly processed it and it looks like there are only 97 types of cars, including engines, many of which map to a single car). Thanks.

Link to comment
Share on other sites

  • 2 months later...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

Terms of Use Privacy Policy