The International Simutrans Forum

 

Author Topic: Open Nearest Depot Button  (Read 2577 times)

0 Members and 1 Guest are viewing this topic.

Offline sdog

  • Devotee
  • *
  • Posts: 2039
Open Nearest Depot Button
« 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.

Offline prissi

  • Developer
  • Administrator
  • *
  • Posts: 9566
  • Languages: De,EN,JP
Re: Open Nearest Depot Button
« Reply #1 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.

Offline inkelyad

  • Devotees (Inactive)
  • *
  • Posts: 482
  • Languages: EN, RU
Re: Open Nearest Depot Button
« Reply #2 on: January 02, 2011, 09:36:37 PM »
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?

Offline sdog

  • Devotee
  • *
  • Posts: 2039
Re: Open Nearest Depot Button
« Reply #3 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:
Quote
But imho a depot list should be a very easy addon and programming execize.
  war der Zaunpfahl fuer mich? :-P

Offline prissi

  • Developer
  • Administrator
  • *
  • Posts: 9566
  • Languages: De,EN,JP
Re: Open Nearest Depot Button
« Reply #4 on: January 08, 2011, 09:03:48 PM »
A list of depots would be certainly useful; also for the depot-list GUI ...

Offline Václav

  • Devotee
  • *
  • Posts: 3267
  • formerly VaclavMacurek
  • Languages: CZ, EN
Re: Open Nearest Depot Button
« Reply #5 on: January 13, 2011, 03:45:44 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.

Offline wlindley us

  • Devotee
  • *
  • Posts: 978
    • Hacking for fun and profit since 1977
  • Languages: EN, DE
Re: Open Nearest Depot Button
« Reply #6 on: September 20, 2013, 02:30:07 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.

Offline greenling

  • Lounger
  • *
  • Posts: 1728
  • Simutransarchology it my hobby!
  • Languages: DE,EN
Re: Open Nearest Depot Button
« Reply #7 on: September 20, 2013, 03:49:20 PM »
Hello wlindley
It´s possible depot over the textmarker sign to finding?

Offline prissi

  • Developer
  • Administrator
  • *
  • Posts: 9566
  • Languages: De,EN,JP
Re: Open Nearest Depot Button
« Reply #8 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 ...