Skip to main content
Topic: Link to line management from station/stop details window (Read 7798 times) previous topic - next topic

Link to line management from station/stop details window

I was just playing simutrans and suddenly realized that I needed to change destination platform for several lines serving one particular station so that the traffic would flow more easily. So I opened the station details to see which lines served the station and then it hit, it would be nice to have link or button for each line in the station details window's lines serving stop list that would open the line management window for that particular line which button or link is clicked. That way you would not need to open the line management window first and the search for the line you want to change.

How does it sound?

Re: Link to line management from station/stop details window

Reply #1
There is a tool for changing all schedule... can't remember since when exactly. Click old platform, click new platform. It should be in special tools if it's in the version you play.

My projects... Tools for messing with Simutrans graphics. Graphic archive - templates and some other stuff for painters. Development logs for most recent information on what is going on. And of course pak128!

Re: Link to line management from station/stop details window

Reply #2
Quote
I needed to change destination platform for several lines serving one particular station

Quote
There is a tool for changing all schedule

The tool is there, VS, and it's very useful, but I don't think that's what he wants. Going directly to a line from that window would be handy, but there are some difficulties. For example, all lines are shown, also lines from other players. And you can't go to edit these. But all and all, it would be a really useful extension.
Bob Marley: No woman, no cry

Programmer: No user, no bugs



Re: Link to line management from station/stop details window

Reply #3
Going directly to a line from that window would be handy
That was the point.

For example, all lines are shown, also lines from other players. And you can't go to edit these.
Couldn't that be handled so that only the lines of the current player has this link/button?

Edit: Btw, I'm using Simutrans 100.0 (r1867)

Re: Link to line management from station/stop details window

Reply #4
Oh, I see. I thought it was that you have to look at station, look at lines, look at schedules, compare coordinates...

My projects... Tools for messing with Simutrans graphics. Graphic archive - templates and some other stuff for painters. Development logs for most recent information on what is going on. And of course pak128!


Re: Link to line management from station/stop details window

Reply #6
Couldn't that be handled so that only the lines of the current player has this link/button?

And also printing the line name with the color of the owner would be handy for multiplayer.

Re: Link to line management from station/stop details window

Reply #7
Umhhmmm, that really depends on background. Anywhere you put a colour, a square of the colour with some border around is better than text. If you want to make it bulletproof, black and white lines simulating 3d feel are perfect. Only a pattern of the same lines defeats that.

My projects... Tools for messing with Simutrans graphics. Graphic archive - templates and some other stuff for painters. Development logs for most recent information on what is going on. And of course pak128!

Re: Link to line management from station/stop details window

Reply #8
A somewhat first version of a patch to do this.  Lines are colored, buttons are created only for current player's lines, lines are identified when buttons pushed, but left:
  • Opening the line information window and show the line
  • If player is changed, adjust the buttons to current player

Re: Link to line management from station/stop details window

Reply #9
I support this idea, but watching the attached image in detail I have one doubt. Does this window have a max size? I mean, people usually create a lot of service lines, so easilly you can have no less then 10-15 lines serving in a stop. Therefore, the window may take more and more space and that may become a problem. Wouldn't be possible to use scrolling if the number of lines serving exceed a certain limit, let's say 10 lines?

Re: Link to line management from station/stop details window

Reply #10
That's independent from the patch.  I don't know how scrolling is implemented.  I guess it should no be difficult, but I don't know.

Re: Link to line management from station/stop details window

Reply #11
This version of the patch should do it.  The only way I found to make the links to the lines change was to implement a virtual method for all opens windows to be notified when active player changes.  That method perhaps can also be used to make changes to some windows of even auto-close them when active player changes.

Re: Link to line management from station/stop details window

Reply #12
YOu can check in zeichnen, if a player has change too.

Re: Link to line management from station/stop details window

Reply #13
Corrected.  Much cleaner approach...

Re: Link to line management from station/stop details window

Reply #14
In trunk: However, I have some problem with using those buttons as UI; in principle color button would have been needed there.

Re: Link to line management from station/stop details window

Reply #15
I've also noticed that the line is selected in the tabs window...  Thanx.

Re: Link to line management from station/stop details window

Reply #16
Is it possible to add same button on vehicle window, too ?


[attachment deleted by admin]

Re: Link to line management from station/stop details window

Reply #17
Should be easy too ...

EDIT: done (isn't it 4am in Japan?)

Re: Link to line management from station/stop details window

Reply #18
Grr, I was supposed to implement this, I had even some lines of code written already... :-) Maybe I'll just have to settle on working with something less challenging things such as threading p****anger generation and route finding to take advantage of the second core I have there... :-/

Thanks anyway, it's really a desperately needed feature for any decently sized network that needs to be expanded.

In addition to the linking I would want to see also the type(s) of vehicles that are serving on a particular line in order to pick the mail line on the first click.

Re: Link to line management from station/stop details window

Reply #19
My fault.   ;D

If you are working on something, open a thread so that we all know and can focus our efforts on different things...