Self regulating network

OpenTTD is a fully open-sourced reimplementation of TTD, written in C++, boasting improved gameplay and many new features.

Moderator: OpenTTD Developers

Post Reply
Youri219
Traffic Manager
Traffic Manager
Posts: 191
Joined: 28 Apr 2007 11:53

Self regulating network

Post by Youri219 »

As you may have seen, Mark0291 posted a self-regulated network (in the LED counter thread, page 2) that automatically distributed trains to stations that didn't have trains loading. It did however have a major disadvantage: it relies on trains being forced to go through loading stations on their way; resulting in limiting the network to single cargo type only.

Based on his station design, combined with conditional orders, I have come up with a design that allows automated train distribution with basically an unlimited amount of cargoes that can go over the same network at once. Raw industries that have a higher production will automatically get more trains to load.

Basics for the station:
- All primary stations are slightly out of reach of the raw industries.
- Each primary station has 1 unloading lane seperate from the network, where a single feeder train drops a full load.
- Each primary station has 1 loading lane, reserved for trains loading. A piece of track in front is reserved for an empty train, which waits until a full load arrives at the station.
- All other lanes are overflow lanes.

Basics for the trains:
- A feeder train is delivering full loads at once to the primary station.
- Trains go to a station without full load order.
- The first main train to arrive will get stuck behind a red light, and can not continue until the feeder train starts unloading. This ensures there's always a train waiting.
- Trains that visit the overflow lane generally leave empty.
- Empty trains go to the next station to load, trains with cargo will unload at the drop-off station.

I've attached a savegame (recent nightly) to demonstrate how this works. I recommend letting the game run for about a year to see the full effect; it starts kinda messy with all trains going to the same station.
Attachments
test.sav
Automatic train distribution
(311.64 KiB) Downloaded 485 times
Mchl
Director
Director
Posts: 611
Joined: 05 Jan 2007 15:50
Location: Poland
Contact:

Re: Self regulating network

Post by Mchl »

Wow! Looks nice :)

There could be some improvements in this network (like replacing the mainline depot), but otherwise it seems to be working and turning in profit...
avdg
Engineer
Engineer
Posts: 28
Joined: 18 Jul 2008 15:19
Location: Not outside Belgium

Re: Self regulating network

Post by avdg »

very simple to build, easy network, and low cost :)

this type of network can be usefull :idea:

good job 8)
#openttdcoop - building at the new revolution

Do you know a smarter moment then discovering that you where doing something wrong?
Altern8or
Engineer
Engineer
Posts: 37
Joined: 25 Sep 2005 00:44
Location: Aberdeen, Scotland

Re: Self regulating network

Post by Altern8or »

Could I trouble you for a screenshot please?
Tvel
Engineer
Engineer
Posts: 77
Joined: 29 Mar 2008 22:42
Skype: tvel___
Location: Bulgaria

Re: Self regulating network

Post by Tvel »

Mark0291's network uses logical paths to regulate the trains, and it is more successful regulating than yours.
Youri219
Traffic Manager
Traffic Manager
Posts: 191
Joined: 28 Apr 2007 11:53

Re: Self regulating network

Post by Youri219 »

Tvel wrote:Mark0291's network uses logical paths to regulate the trains, and it is more successful regulating than yours.
His network relies on trains, without having an order to go to a specific station, are forced to visit a station simply because there's no other route back to the power plant. While this does allow some nice tricks such as removing redundant trains from the network altogether by leading them into a depot (using logic), his network is limited to a single type of cargo. If he wants a second type of cargo, it means a second, independent, network. If the networks are merged, a coal train may find a way back to the power station via a forest instead of a coal mine, and would not pickup any cargo.

So while his network is more efficient in regulating, it doesn't scale at all. Both networks have their advantages and disadvantages.
Post Reply

Return to “General OpenTTD”

Who is online

Users browsing this forum: No registered users and 12 guests