News:

SimuTranslator
Make Simutrans speak your language.

Open Nearest Depot Button

Started by sdog, January 02, 2011, 06:30:39 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

sdog

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.

prissi

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.

inkelyad

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?

sdog

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

prissi

A list of depots would be certainly useful; also for the depot-list GUI ...

Václav

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.

Chybami se člověk učí - ale někteří lidé jsou nepoučitelní

wlindley

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.

greenling

Hello wlindley
It´s possible depot over the textmarker sign to finding?
Opening hours 20:00 - 23:00
(In Night from friday on saturday and saturday on sunday it possibly that i be keep longer in Forum.)
I am The Assistant from Pakfilearcheologist!
Working on a big Problem!

prissi

Again, this is a very easy patch. A good starting point for someone who wants to contribute to simutrans ...