Hello,
I'd like to improve my main line design to ensure trains are split as even as possible across tracks. For this I need functionality similar to "how many trains currently on a particular track" or "how many trains went through waypoint/station X per last year".
Wonder whether there is addon/patch which does something similar? Or any other way I can achieve this?
If nothing like this exists - is it possible to build it myself? What is the best approach - modify OpenTTD itself? Or is it possible to do it through NewGRF?
Counting trains on the main line per track
Moderator: OpenTTD Developers
-
- Engineer
- Posts: 2
- Joined: 17 Sep 2023 04:43
Re: Counting trains on the main line per track
In JGRs patchpack there is a function called counters which allows you to count how many trains have passed a defined signal.
Its not that commonly used so there doesnt seem to be much information about how it works.
Its accessed by the routefinding functionality for trains signals and you can increase , decrease, set or reset the count.
The trains orders would have to be modified to take action based on what the count was.
Its not that commonly used so there doesnt seem to be much information about how it works.
Its accessed by the routefinding functionality for trains signals and you can increase , decrease, set or reset the count.
The trains orders would have to be modified to take action based on what the count was.
-
- Engineer
- Posts: 2
- Joined: 17 Sep 2023 04:43
Re: Counting trains on the main line per track
Thank you! Do you know whether it visualizes this information somewhere as well? Or can it be used only in orders? I need the former...
Re: Counting trains on the main line per track
The counter info is only available via the trains orders .
Its possible to change a trains route based on specific criteria such as cargo being hauled or trains maximum or minimum speed limits, but I dont think that will help you.
If its possible to obtain the info that you need, you will then have to do something with it and this will still need you to change the orders of the trains so that they go via differant tracks.
Its possible to change a trains route based on specific criteria such as cargo being hauled or trains maximum or minimum speed limits, but I dont think that will help you.
If its possible to obtain the info that you need, you will then have to do something with it and this will still need you to change the orders of the trains so that they go via differant tracks.
Re: Counting trains on the main line per track
Here is the wiki about Sigalling and Counters.CrazyCat007 wrote: 20 Sep 2023 16:34 Thank you! Do you know whether it visualizes this information somewhere as well? Or can it be used only in orders? I need the former...
Who is online
Users browsing this forum: No registered users and 10 guests