Hello
after the catchment area stuff, I was implementing some transfer function into OTTD.
Basically I liked the idea in TTDPatch that you could use trains and busses to carry passengers to airports, or other stations where trains just exchanged stuff in a hub-and-spoke manner.
However, I have modified the idea a little, so here's a little howto:
1) "Full Load" and "Unload" work just the way they do without the patch. Specifically, "unload" delivers cargo to the station if the cargo is not accepted, or delivers it to some industry or town if the cargo is accepted by the station. Also the carrier will always leave the station empty
2) "Transfer" means "just dump the cargo on the platform (or terminal) no matter what". It does NOT influence how the carrier LEAVES the station. That means:
"Transfer" alone dumps cargo, and carriers cargo away if possible.
"Transfer and Load" dumps cargo, and waits until full to depart
"Transfer and leave empty" (the default) act like it did in TTDPatch: The carrier dumps cargo, and leaves the station empty.
However:
1) The code is still very ugly, partially because of some bit-mapping of Order Flags against the language file. Please help making it more pretty
2) It's not tested. So test it please, and let me know problems and give comments for improvings.
Celestar
New Transfer / Unload function. Testing needed
Moderator: OpenTTD Developers
New Transfer / Unload function. Testing needed
- Attachments
-
- transfer.diff
- Hope that file works. Diff'ed against SVN Release 854, bridges-on-slopes and modified-catchments installed (should matter). -p1 option possibly needed.
- (15.02 KiB) Downloaded 100 times
-
- This is how the new window looks
- transfer.jpg (10.33 KiB) Viewed 1904 times
why would you want to use anything but "dump and leave empty" ?
Creator of the Openttd Challenge Spinoff, Town Demand patch
After action reports: The path to riches, A dream of skyscrapers
After action reports: The path to riches, A dream of skyscrapers
- lucaspiller
- Tycoon
- Posts: 1228
- Joined: 18 Apr 2004 20:27
Yey! Now we can have better working feeder systems.
I am guessing this is what they are used for:
"Transfer and load" - you go to a small station and pick up whatever is there then go to a bigger station and wait for a full load.
"Transfer and leave empty" - just dumps the cargo there and it stays there even if somewhere can accept it, aka feeder systems.
I am not really sure about just transfer - also Celestar would you be able to upload a Windows binary?

I am guessing this is what they are used for:
"Transfer and load" - you go to a small station and pick up whatever is there then go to a bigger station and wait for a full load.
"Transfer and leave empty" - just dumps the cargo there and it stays there even if somewhere can accept it, aka feeder systems.
I am not really sure about just transfer - also Celestar would you be able to upload a Windows binary?

- lucaspiller
- Tycoon
- Posts: 1228
- Joined: 18 Apr 2004 20:27
Who is online
Users browsing this forum: No registered users and 12 guests