The International Simutrans Forum

Development => Patches & Projects => Incorporated Patches and Solved Bug Reports => Topic started by: Emil Sawicki on March 11, 2013, 11:15:08 AM

Title: Track/road length counter
Post by: Emil Sawicki 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?
Title: Re: Track/road length counter
Post by: IgorEliezer 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 (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.
Title: Re: Track/road length counter
Post by: captain crunch 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.
Title: Re: Track/road length counter
Post by: Ters 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.)
Title: Re: Track/road length counter
Post by: jamespetts 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.
Title: Re: Track/road length counter
Post by: prissi on September 11, 2018, 01:51:52 AM
Patch lost
Title: Re: Track/road length counter
Post by: captain crunch on September 11, 2018, 08:22:56 AM
Quote from: prissi on September 11, 2018, 01:51:52 AM
Patch lost
Diff to HEAD attached.
Title: Re: Track/road length counter
Post by: prissi on September 11, 2018, 12:45:56 PM
Thank you, incorporated in 8576.
Title: Re: Track/road length counter
Post by: captain crunch 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.
Title: Re: Track/road length counter
Post by: prissi on September 13, 2018, 12:39:48 PM
Incorporated, thank you.