IRC logs for #openttd.dev on OFTC at 2013-01-09
⏴ go to previous day
13:55:55 *** ntoskrnl has joined #openttd.dev
14:07:23 *** Jasperthecat1 has joined #openttd.dev
14:07:48 *** Jasperthecat1 has left #openttd.dev
18:07:28 *** frosch123 has joined #openttd.dev
18:07:28 *** ChanServ sets mode: +v frosch123
18:24:59 *** Alberth has joined #openttd.dev
18:24:59 *** ChanServ sets mode: +v Alberth
19:29:21 *** andythenorth has joined #openttd.dev
19:29:21 *** ChanServ sets mode: +v andythenorth
20:21:03 *** fonsinchen has joined #openttd.dev
20:21:03 *** ChanServ sets mode: +v fonsinchen
20:26:48 *** Alberth has left #openttd.dev
21:18:28 <fonsinchen> Is there a reason why you don't get transfer credits for force-unloading cargo at its origin station?
21:18:50 <fonsinchen> I mean, the other legs of the journey already got transfer credits, too ...
21:20:21 <Rubidium> not really I'd reckon
21:20:30 <planetmaker> if you unload it where it started you didn't achieve anything, did you?
21:20:57 <Rubidium> planetmaker: but moving it from A -> B -> C yields transfer credits, just C -> A not
21:20:58 <fonsinchen> If you had set up the same thing with transfer instead of unload orders, you still don't achieve anything.
21:21:06 <fonsinchen> But you do get credits then.
21:21:12 <Rubidium> okay, the whole situation is stupid network design, but still
21:22:28 <Rubidium> for unloading never gets you credits
21:24:06 <fonsinchen> I would like to drop that special case and always give transfer credits when cargo is effectively transferred. I hope that's not a big deal.
21:24:10 <Rubidium> you never get credits for force unloading if the station doesn't accept the cargo, probably to make the user somewhat aware that a force unload does not function anymore via the "vehicle making a loss"
21:24:45 <fonsinchen> ah, OK. I understand that.
21:25:06 <fonsinchen> I'll try to come up with something else then.
21:25:25 <Rubidium> but that is "simple" point-to-point logic, which might make sense. Force unloading in a network seems somewhat useless to me
21:26:01 <frosch123> isn't the only difference of 'unload' and 'transfer' about the credits?
21:26:34 <Rubidium> no, transfer also does never deliver cargo while unload does. But for the rest that's about right
21:37:10 <fonsinchen> I'll divide the CargoList::MoveTo thing into 4 logically named methods: VehicleCargoList::Reserve, VehicleCargoList::LoadReserved, VehicleCargoList::Unload, VehicleCargoList::Shift
21:37:21 <fonsinchen> Shift is for moving cargo between vehicles
21:37:33 <fonsinchen> Everything else should be self-explanatory.
21:38:09 <fonsinchen> All cargo has to be reserved before loading. However, LoadReserved only decrements the reserved_count as all packets are still kept in the same list.
21:38:38 <fonsinchen> (And an additional VehicleCargoList::Unreserve, for those special cases, of course)
21:43:20 <fonsinchen> All of those return the amount of cargo actually moved.
continue to next day ⏵