The International Simutrans Forum

Development => Extension Requests => Topic started by: sdog on January 02, 2011, 06:30:39 AM

Title: Open Nearest Depot Button
Post by: sdog on January 02, 2011, 06:30:39 AM
Suggestion to use the wayfinder to find the closest depot to a tile and open it.

Useraction is to activate it and click on a square. Depending on the waytype it will call wayfinder to get the nearest depot for this waytype. This part of code should be readily available from the send to depot action for convoys. Second step is opening a depot dialogue for the depot at the retrieved coordinates.

There are at least two ambigous squares grad crossings and tram tracks on roads. The first case should be invalid and for the latter the tram-track override the road.


Reason for this request is that it becomes difficult to remember (and spot) depots in large games or when playing shared games.
Title: Re: Open Nearest Depot Button
Post by: prissi on January 02, 2011, 08:44:24 PM
I think this breaks networking, as the wayfinder can change the random generator.

But imho a depot list should be a very easy addon and programming execize.
Title: Re: Open Nearest Depot Button
Post by: inkelyad on January 02, 2011, 09:36:37 PM
Quote from: sdog on January 02, 2011, 06:30:39 AM
Reason for this request is that it becomes difficult to remember (and spot) depots in large games or when playing shared games.
Why not use 'depots' mode of map window?
Title: Re: Open Nearest Depot Button
Post by: sdog on January 08, 2011, 06:58:29 PM
A modified suggestion:

Introducing a list of depots for each waytype.
One depot can be selected as default.

Gui:
Direct click on a button will open the default depot.
Ctrl-click on a button will open the list.
If no default was manually selected, the last built depot is default.


@prissi:
QuoteBut imho a depot list should be a very easy addon and programming execize.
war der Zaunpfahl fuer mich? :-P
Title: Re: Open Nearest Depot Button
Post by: prissi on January 08, 2011, 09:03:48 PM
A list of depots would be certainly useful; also for the depot-list GUI ...
Title: Re: Open Nearest Depot Button
Post by: Václav on January 13, 2011, 03:45:44 PM
Quote from: prissi on January 08, 2011, 09:03:48 PM
A list of depots would be certainly useful; also for the depot-list GUI ...
And it would be useful if there will not be written only coordinates - but also close city or factory. It is very stupid question but it may be very helpful.
Title: Re: Open Nearest Depot Button
Post by: wlindley on September 20, 2013, 02:30:07 PM
Quote from: sdog on January 08, 2011, 06:58:29 PM
... (a button for) a list of depots (optionally, for each waytype.)

Any progress on this? It is easy to lose track of depots on a  large multiplayer map.
Title: Re: Open Nearest Depot Button
Post by: greenling on September 20, 2013, 03:49:20 PM
Hello wlindley
It´s possible depot over the textmarker sign to finding?
Title: Re: Open Nearest Depot Button
Post by: prissi on September 20, 2013, 04:39:55 PM
Again, this is a very easy patch. A good starting point for someone who wants to contribute to simutrans ...