Page 1 of 1
Train Counter
Posted: 07 Feb 2009 13:43
by FunMaker
I'd like to have a train counter system in a actual patch (better in trunk

)
old version (post 3)
http://www.tt-forums.net/viewtopic.php?p=426224#p426224
would be nice to see for load balancing issues
Re: Train Counter
Posted: 07 Feb 2009 14:04
by Roujin
FunMaker wrote:I'd like to have a train counter system in a actual patch (better in trunk

)
[...]
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.

Re: Train Counter
Posted: 07 Feb 2009 17:31
by Eddi
Re: Train Counter
Posted: 07 Feb 2009 17:56
by michael blunck
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".
regards
Michael
Re: Train Counter
Posted: 07 Feb 2009 18:43
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 (50.6 KiB) Viewed 2159 times
Re: Train Counter
Posted: 07 Feb 2009 18:46
by CommanderZ
I guess saving longer-term data to generate some nice graphs would be too memory-heavy?
Re: Train Counter
Posted: 07 Feb 2009 18:53
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".
Re: Train Counter
Posted: 07 Feb 2009 19:29
by Roujin
no, the values are not stored in the map array

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

Re: Train Counter
Posted: 08 Feb 2009 12:32
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
