News:

The Forum Rules and Guidelines
Our forum has Rules and Guidelines. Please, be kind and read them ;).

Link to line management from station/stop details window

Started by Simppe, January 09, 2009, 08:14:06 AM

Previous topic - Next topic

0 Members and 3 Guests are viewing this topic.

Simppe

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?

VS

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!

Combuijs

QuoteI needed to change destination platform for several lines serving one particular station

QuoteThere 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



Simppe

Quote from: Combuijs on January 09, 2009, 08:32:38 AMGoing directly to a line from that window would be handy
That was the point.

Quote from: Combuijs on January 09, 2009, 08:32:38 AMFor 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)

VS

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!

emaxectranspoorte

Quote from: VS on January 09, 2009, 08:52:55 AM
Oh, I see. I thought it was that you have to look at station, look at lines, look at schedules, compare coordinates...

MEE TOO. ;) :)

isidoro

Quote from: Simppe on January 09, 2009, 08:45:30 AM
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.

VS

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!

isidoro

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

vilvoh

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?

Escala Real...a blog about Simutrans in Spanish...

isidoro

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.

isidoro

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.

prissi

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

isidoro

Corrected.  Much cleaner approach...

prissi

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

isidoro

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

z9999

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


[attachment deleted by admin]

prissi

Should be easy too ...

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

ij

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 passanger 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.

isidoro

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...