Train Counter

Got an idea for OpenTTD? Post it here!

Moderator: OpenTTD Developers

Post Reply
FunMaker
Engineer
Engineer
Posts: 56
Joined: 16 Jul 2003 00:29
Location: Germany
Contact:

Train Counter

Post by FunMaker »

I'd like to have a train counter system in a actual patch (better in trunk :D)

old version (post 3)
http://www.tt-forums.net/viewtopic.php?p=426224#p426224

would be nice to see for load balancing issues
Humour is the last hope for the hopeless
One Hopeless Man
Roujin
Tycoon
Tycoon
Posts: 1884
Joined: 08 Apr 2007 04:07

Re: Train Counter

Post by Roujin »

FunMaker wrote:I'd like to have a train counter system in a actual patch (better in trunk :D)
[...]
I thought some time about what you mean by this, because following your link, i found an actual patch. ;)
What you mean is an "up-to-date patch", that's a possible translation of the german "aktuell". (aktuell != actual <- that's a false friend)

Back to the topic, that's a very old patch, one would have to rewrite big parts of it for current trunk. Maybe I'll have a look at it though..

edit: meanwhile, here's something else to play with:
This is a patch originally by Rubidium, that I changed a little to display the colors in a nicer way (imo).
It displays the busyness of railway tracks in the smallmap "Routes" mode: yellow (unused) to dark red (heavily used).

It's not really what you asked for, but maybe you can use it anyway. ;)
Attachments
busyness_r15396.diff
(1.82 KiB) Downloaded 73 times
* @Belugas wonders what is worst... a mom or a wife...
<Lakie> Well, they do the same thing but the code is different.

______________
My patches
check my wiki page (sticky button) for a complete list

ImageImage
ImageImageImageImageImageImageImage
Eddi
Tycoon
Tycoon
Posts: 8272
Joined: 17 Jan 2007 00:14

Re: Train Counter

Post by Eddi »

michael blunck
Tycoon
Tycoon
Posts: 5948
Joined: 27 Apr 2005 07:09
Contact:

Re: Train Counter

Post by michael blunck »

Eddi wrote:Just for the sake of it: Germans think they speak better English than they do :p
Yeah. But read also http://www.iaas.uni-bremen.de/sprachblo ... ing-manie/ , i.e. not everything to be found at your link is really true.

And, BTW: "shrimps" == "Granat". 8)

regards
Michael
Image
Roujin
Tycoon
Tycoon
Posts: 1884
Joined: 08 Apr 2007 04:07

Re: Train Counter

Post by Roujin »

Well, I rewrote the patch for current trunk. See here: http://bugs.openttd.org/task/2620

Since the waypoints now have their own window in trunk, I extended that window and put the stats below the viewport.
Here's a screenshot:
waypoint_stats.png
waypoint_stats.png (50.6 KiB) Viewed 2000 times
* @Belugas wonders what is worst... a mom or a wife...
<Lakie> Well, they do the same thing but the code is different.

______________
My patches
check my wiki page (sticky button) for a complete list

ImageImage
ImageImageImageImageImageImageImage
User avatar
CommanderZ
Tycoon
Tycoon
Posts: 1872
Joined: 07 Apr 2008 18:29
Location: Czech Republic
Contact:

Re: Train Counter

Post by CommanderZ »

I guess saving longer-term data to generate some nice graphs would be too memory-heavy?
Eddi
Tycoon
Tycoon
Posts: 8272
Joined: 17 Jan 2007 00:14

Re: Train Counter

Post by Eddi »

i don't think memory is really a problem, when you don't have 100.000 waypoints and the data is not stored in the map (i hope that it does not)

PS: no, of course, in a satirical text, not "everything" is "true".
Roujin
Tycoon
Tycoon
Posts: 1884
Joined: 08 Apr 2007 04:07

Re: Train Counter

Post by Roujin »

no, the values are not stored in the map array :mrgreen:
and no, it wouldn't be too memory-heavy...

just how to display them? If you write more than three lines like it does now, it gets crowded. ;)
Feel free to extend this patch with a nice graph drawing function if you want ;)
* @Belugas wonders what is worst... a mom or a wife...
<Lakie> Well, they do the same thing but the code is different.

______________
My patches
check my wiki page (sticky button) for a complete list

ImageImage
ImageImageImageImageImageImageImage
FunMaker
Engineer
Engineer
Posts: 56
Joined: 16 Jul 2003 00:29
Location: Germany
Contact:

Re: Train Counter

Post by FunMaker »

well except the fact that i mixed actual with up-to-date - imho my english is understandable and that's the only thing i want it to - besides there are many false-friends from german->english ;)

oh and thanks for an UP-TO-DATE patch :D
Humour is the last hope for the hopeless
One Hopeless Man
Post Reply

Return to “OpenTTD Suggestions”

Who is online

Users browsing this forum: Google [Bot] and 20 guests