The International Simutrans Forum

 

Author Topic: A Interface to read the line managment  (Read 3126 times)

0 Members and 1 Guest are viewing this topic.

Offline NNW

  • *
  • Posts: 68
  • Languages: EN,DE,AT
A Interface to read the line managment
« on: April 16, 2015, 07:02:57 AM »
I give every Bus / Train / Airplane etc. a name and number (Lastzug-1 Lastzug-3.... PZ-2 etc. etc.), to keep track, how many from it runs and in which line they do. I have a calc sheet, which contains the complete Vehicle management. But in a long-term game its sometime hard to keep track on it.
So question:
I don't know if its possible, but i think, a interface for perl or ~ to read out the line management of the current running game will be a nice feature  and make this easier...

Offline gauthier

  • Devotee
  • *
  • Posts: 3629
    • SNFOS'website (in both FR and EN)
  • Languages: FR, EN, JP
Re: A Interface to read the line managment
« Reply #1 on: April 17, 2015, 05:08:16 PM »
Keeping such information must be hassle. Why do you need it ? Current line management tools let you see how many vehicles you have on each line. Then, what is the point knowing how much exactly vehicles run in your company ?

Offline NNW

  • *
  • Posts: 68
  • Languages: EN,DE,AT
Re: A Interface to read the line managment
« Reply #2 on: April 21, 2015, 04:48:17 AM »
I liked it sorted and some of the Vehicle Names from our Pakset are a little bit looooooong.

Offline wlindley us

  • Devotee
  • *
  • Posts: 962
    • Hacking for fun and profit since 1977
  • Languages: EN, DE
Re: A Interface to read the line managment
« Reply #3 on: April 21, 2015, 12:48:36 PM »
If Simutrans had some little web service (on a port on localhost) you could make quite a variety of dashboards and other statistics, command-line or through a web browser… that would be quite nifty, all kinds of new graphs and controls, whatever you can code in Perl or Python or whatever.

Offline Ters

  • Coder/patcher
  • Devotee
  • *
  • Posts: 5472
  • Languages: EN, NO
Re: A Interface to read the line managment
« Reply #4 on: April 21, 2015, 04:22:30 PM »
If Simutrans had some little web service (on a port on localhost)

It would also trigger scary little notifications from the local firewall. Those aren't the best things to throw at people trying out a game from some strangers. (I had this issue with some program yesterday. Maybe it bound to the public address as well, although it had no reason to. The alert wasn't more specific than "program is trying to communicate".)

Are there any embeddable web servers that doesn't add a lot of bloat? And that has a compatible license?

Offline Isaac.Eiland-Hall us

  • Benevolent Dictator
  • Administrator
  • *
  • Posts: 3649
  • PanamaCityPC.com/support/
    • Facebook Profile
  • Languages: EN
Re: A Interface to read the line managment
« Reply #5 on: April 22, 2015, 11:39:20 AM »
well, opt-in for such a feature would perhaps be better - have to turn it on in settings.

Offline Ters

  • Coder/patcher
  • Devotee
  • *
  • Posts: 5472
  • Languages: EN, NO
Re: A Interface to read the line managment
« Reply #6 on: April 22, 2015, 03:28:43 PM »
well, opt-in for such a feature would perhaps be better - have to turn it on in settings.

Bloat is still bloat, even if you can turn it off. The code is still there, increasing the game's size, and us developers will have to compile it.

Offline Isaac.Eiland-Hall us

  • Benevolent Dictator
  • Administrator
  • *
  • Posts: 3649
  • PanamaCityPC.com/support/
    • Facebook Profile
  • Languages: EN
Re: A Interface to read the line managment
« Reply #7 on: April 22, 2015, 04:48:07 PM »
Well, okay, then maybe not. In which case we should lock this thread since discussion is moot.

Offline prissi

  • Developer
  • Administrator
  • *
  • Posts: 9460
  • Languages: De,EN,JP
Re: A Interface to read the line managment
« Reply #8 on: May 30, 2015, 08:08:09 PM »
Well, you can connect with a simutrans client, which can download the whole game state ... you "just" need to hack simutrans and have a client to pull statistics of your choice.