New Transfer / Unload function. Testing needed

Got an idea for OpenTTD? Post it here!

Moderator: OpenTTD Developers

Post Reply
User avatar
Celestar
Director
Director
Posts: 574
Joined: 02 Jul 2004 10:56
Contact:

New Transfer / Unload function. Testing needed

Post by Celestar »

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
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
This is how the new window looks
transfer.jpg (10.33 KiB) Viewed 1906 times
User avatar
Korenn
Tycoon
Tycoon
Posts: 1735
Joined: 26 Mar 2004 01:27
Location: Netherlands
Contact:

Post by Korenn »

why would you want to use anything but "dump and leave empty" ?
User avatar
Celestar
Director
Director
Posts: 574
Joined: 02 Jul 2004 10:56
Contact:

Post by Celestar »

Don't ask, but I had such a station here and there for one reason or another. (Maybe I can even find the savegame) I, for one, rather add an option too much than on option too little :)

Celestar
User avatar
lucaspiller
Tycoon
Tycoon
Posts: 1228
Joined: 18 Apr 2004 20:27

Post by lucaspiller »

Yey! Now we can have better working feeder systems. :D

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? :D
User avatar
Celestar
Director
Director
Posts: 574
Joined: 02 Jul 2004 10:56
Contact:

Post by Celestar »

The Problem is, I have no running Windows here, so I have a hard time making a windows binary...

Celestar
User avatar
lucaspiller
Tycoon
Tycoon
Posts: 1228
Joined: 18 Apr 2004 20:27

Post by lucaspiller »

Awww dam. I have Linux and I can compile it on there (for Linux) but my screen is tiny. Oh well that will have to do.
Post Reply

Return to “OpenTTD Suggestions”

Who is online

Users browsing this forum: No registered users and 16 guests