The International Simutrans Forum

 

Author Topic: Track/road length counter  (Read 4019 times)

0 Members and 1 Guest are viewing this topic.

Offline Emil Sawicki

  • *
  • Posts: 191
  • pak128 player
  • Languages: CZ, EN, NO, PL
Track/road length counter
« on: March 11, 2013, 11:15:08 AM »
I think it would be easier to build the tracks on the stations if I can read track length whilst building it. It could be showed together with the expected cost of building. Thus player can spare some money, because of no necessity to cut the track if build too far. Is it possible to add?

Offline IgorEliezer br

  • Devotee
  • Administrator
  • *
  • Posts: 4066
  • No Brazilianplaining!
    • Igor Eliezer Architect and Urban Planner/Arquiteto e Urbanista
  • Languages: PT, EN, AutoLISP, Python
Re: Track/road length counter
« Reply #1 on: March 11, 2013, 12:08:07 PM »
I think someone suggested something like this.

Design mode
http://forum.simutrans.com/index.php?topic=6448.0

I'd like, at least, to be able to draw "sketches" on the map, take measures and plan out stuff before actually building.

Anyway, I support it.

Offline captain crunch

  • *
  • Posts: 97
Re: Track/road length counter
« Reply #2 on: March 12, 2013, 03:08:34 AM »
Some days ago I made a patch to show me the length of new to be built ways/way objects in the tooltip.
One needs to add the translation of "length: %d" to <lang>.tab to get it translated.

Offline Ters

  • Coder/patcher
  • Devotee
  • *
  • Posts: 5276
  • Languages: EN, NO
Re: Track/road length counter
« Reply #3 on: March 12, 2013, 05:45:39 AM »
Interesting. I would never have imagined the need for such when building stations. (Mine are at most six tiles long.)

Offline jamespetts gb

  • Simutrans-Extended project coordinator
  • Devotee
  • *
  • Posts: 17586
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: Track/road length counter
« Reply #4 on: March 12, 2013, 12:29:45 PM »
This is a very interesting idea. It may well be particularly useful for Simutrans-Experimental, especially runways, for which specific aircraft have minimum lengths. For Experimental, the length in tiles will need to be translated to meters, but this is not difficult to do.

Offline prissi

  • Developer
  • Administrator
  • *
  • Posts: 9208
  • Languages: De,EN,JP
Re: Track/road length counter
« Reply #5 on: September 11, 2018, 01:51:52 AM »
Patch lost

Offline captain crunch

  • *
  • Posts: 97
Re: Track/road length counter
« Reply #6 on: September 11, 2018, 08:22:56 AM »

Offline prissi

  • Developer
  • Administrator
  • *
  • Posts: 9208
  • Languages: De,EN,JP
Re: Track/road length counter
« Reply #7 on: September 11, 2018, 12:45:56 PM »
Thank you, incorporated in 8576.

Offline captain crunch

  • *
  • Posts: 97
Re: Track/road length counter
« Reply #8 on: September 13, 2018, 09:36:36 AM »
Very much appreciated. Just one oversight, I missed to include the function prototype in simtool.h, for which a patch is attached to this message.

Offline prissi

  • Developer
  • Administrator
  • *
  • Posts: 9208
  • Languages: De,EN,JP
Re: Track/road length counter
« Reply #9 on: September 13, 2018, 12:39:48 PM »
Incorporated, thank you.