Bug 177 Patch: Feeder Transfer @ accepting
Posted: 19 Aug 2006 22:52
Bug 177 Patch: Feeder Transfer @ accepting
(Massively Edited Post)
Seems to be Bug #177 - patch uploaded as a comment there.
EDIT: Maedhros seems to be working on a similar/overlapping/conflicting patch here that sounds less hackerish and may deal with this as well.
Bug Reproduction Steps:
Station in question must accept the good, and be used as the feeder dropoff point as well (I used buses dropping off passengers). The station must have 0 of the good when the dropoff occurs, and have a loading train waiting. This appears to first load the goods onto the waiting train, then immediately resell approximately that portion (1 or 2 cabins worth) of that good to the station instead of keeping it loaded.
Cause:
Since the station is empty when the feeder unloads, the dropped of cargo mantains it's original station id instead of having it's ID changed to the current one. I presume this means this ID is assigned to any/all cars loading the cargo (each passenger box counts as a seperate vehicle?), thus causing all those cars to immediately unload their cargo at this station in the next tick.
Patched solution:
Fixed the unload conditional, and after the first tick update current_order.flags to include OF_FULL_LOAD and OF_TRANSFER if it included either (unless it also included OF_UNLOAD).
(Massively Edited Post)
Seems to be Bug #177 - patch uploaded as a comment there.
EDIT: Maedhros seems to be working on a similar/overlapping/conflicting patch here that sounds less hackerish and may deal with this as well.
Bug Reproduction Steps:
Station in question must accept the good, and be used as the feeder dropoff point as well (I used buses dropping off passengers). The station must have 0 of the good when the dropoff occurs, and have a loading train waiting. This appears to first load the goods onto the waiting train, then immediately resell approximately that portion (1 or 2 cabins worth) of that good to the station instead of keeping it loaded.
Cause:
Since the station is empty when the feeder unloads, the dropped of cargo mantains it's original station id instead of having it's ID changed to the current one. I presume this means this ID is assigned to any/all cars loading the cargo (each passenger box counts as a seperate vehicle?), thus causing all those cars to immediately unload their cargo at this station in the next tick.
Patched solution:
Fixed the unload conditional, and after the first tick update current_order.flags to include OF_FULL_LOAD and OF_TRANSFER if it included either (unless it also included OF_UNLOAD).