Cargo Distribution
Moderator: OpenTTD Developers
Re: Cargo Distribution
yeh, my normal non cargodest orders for somthing like coal go somthing like
mine -- full load
glass works
conditional jump to 1 when empty
steel mill
conditional jump to 1 when empty
power station
mine -- full load
glass works
conditional jump to 1 when empty
steel mill
conditional jump to 1 when empty
power station
Re: Cargo Distribution
Version 026d234b (which will hopefully be compiled as g026d234b-cd soon) is somewhat experimental. I've changed a lot of the internals in order to comply with the suggestions that arose from the code review. However, I've done some testing, too, and I haven't found any problems. If you encounter any bugs please let me know by either posting here or opening issues at https://github.com/fonsinchen/openttd-cargodist/issues .
The guy on the picture is not me, it's Alonso.
Re: Cargo Distribution
IT crashed on my save game made with a previous cd.. but in my new game IT works so far. Not sure this is helpful:)fonso wrote:Version 026d234b (which will hopefully be compiled as g026d234b-cd soon) is somewhat experimental. I've changed a lot of the internals in order to comply with the suggestions that arose from the code review. However, I've done some testing, too, and I haven't found any problems. If you encounter any bugs please let me know by either posting here or opening issues at https://github.com/fonsinchen/openttd-cargodist/issues .
Re: Cargo Distribution
it was never supposed to load old savegames
Re: Cargo Distribution
The compile farm's windows build failed and I've found a bug myself. The new version is postponed until I've fixed that.
The guy on the picture is not me, it's Alonso.
Re: Cargo Distribution
OK, I've fixed it. The new version will be gb6087430-cd. I've also changed the station GUI to show cargo reserved for some vehicle as an extra line (so that the counts properly add up) and to not show so much useless information when cargodist is disabled.
The guy on the picture is not me, it's Alonso.
Re: Cargo Distribution
I was running the latest version of cargodist on a server. But it keeps crashing.
I added a screenshot, the crash.log and the crash.dmp->
Since I do not know what the issue is.
edit:
Here is the savegame as well ->
I added a screenshot, the crash.log and the crash.dmp->
Since I do not know what the issue is.
edit:
Here is the savegame as well ->
Re: Cargo Distribution
It shows I have the last post here.
There is a bugpost there actually, but I uploaded an savegame after posting, which most likely exceeded the maximum size for a file. Therefore I need a moderator to approve that post now.
Just posting this so you don't search for a 'hidden' post.
There is a bugpost there actually, but I uploaded an savegame after posting, which most likely exceeded the maximum size for a file. Therefore I need a moderator to approve that post now.
Just posting this so you don't search for a 'hidden' post.
Re: Cargo Distribution
Patience fixed it, again!Suicyder wrote:It shows I have the last post here.
There is a bugpost there actually, but I uploaded an savegame after posting, which most likely exceeded the maximum size for a file. Therefore I need a moderator to approve that post now.
Just posting this so you don't search for a 'hidden' post.
Re: Cargo Distribution
I have been looking at the issue a little. It seems that the loading algorithm overloads a train and that crashes the game.
Re: Cargo Distribution
I think I've seen this bug pass by on a Dutch tech board where a cargodist game had been played. I'll ask whether anyone has a save game over there.Bug was submitted a few posts above this one.
Re: Cargo Distribution
Thanks for the report. I'll investigate that.
The guy on the picture is not me, it's Alonso.
Re: Cargo Distribution
Suicyder: Can I get a savegame from before the crash, please? Unfortunately I can't open the crash.dmp as I don't have a 64bit Windows. Do you maybe have some hints on how to recreate the crash or did you find out any more details when looking at it? Obviously there must be some way to overload the vehicle (and that is real overload, measured with OnboardCount, not "reservation overload"). However so far I haven't found out how that can happen.
The guy on the picture is not me, it's Alonso.
Re: Cargo Distribution
Unfortunately I do not have another savegame, at least not much longer before the crash. The server didn't autosave, I only found that out once the game crashed the first time. I brought over a savegame from my pc to the server and loaded it, I was capable of playing a couple of minutes everytime I tried to load it.
What did we do to get this crash:
We had a full PAX game, no industry at all. 378 trains. I had a bit of logic trains too. We had 3 people playing till then. 1024x2048 map and every player got a 512x512 sized plot. We all connected a series of cities in different ways. Mainly transfer stations where we brought them and picked them up, we didn't connect our plots yet.
What did we do to get this crash:
We had a full PAX game, no industry at all. 378 trains. I had a bit of logic trains too. We had 3 people playing till then. 1024x2048 map and every player got a 512x512 sized plot. We all connected a series of cities in different ways. Mainly transfer stations where we brought them and picked them up, we didn't connect our plots yet.
- Attachments
-
- autosave12.sav
- (3.8 MiB) Downloaded 26 times
Re: Cargo Distribution
OK, I've found it:
Silly mistake ... better don't use g630a2d6d-cd and gb6087430-cd but wait for the next version instead. The compile farm should build it tonight. Thanks for your help, Suicyder.
Code: Select all
diff --git a/src/cargopacket.cpp b/src/cargopacket.cpp
index 0b60c99..e99a3d5 100644
--- a/src/cargopacket.cpp
+++ b/src/cargopacket.cpp
@@ -527,7 +527,7 @@ uint VehicleCargoList::Return(uint max_move, StationCargoList *dest, StationID n
*/
uint VehicleCargoList::Shift(uint max_move, VehicleCargoList *dest)
{
- max_move = max(this->count, max_move);
+ max_move = min(this->count, max_move);
this->PopCargo(CargoShift(this, dest, max_move));
return max_move;
}
The guy on the picture is not me, it's Alonso.
Re: Cargo Distribution
Well glad it isn't some ridiculously rough bug to find.
Thanks for the fix, from all the dutch folks around the other forum
Thanks for the fix, from all the dutch folks around the other forum
Re: Cargo Distribution
Hi guys, I'm new to the forum but I have been playing Open TTD for a few months and last weekend I finally got this patch on. I was wondering how the patch picks which station the passenger goes to and how it calculates how many passengers go to each station.
Formerly known as UseYourIllusion.
Java Scenario Found Here - Version 2 out
[tweɪ̂ pû tɕʰì wɔ̀ mǐlɤ lû tɕʰìŋ nì pɑ́ŋmɑ̌ŋ]
Java Scenario Found Here - Version 2 out
[tweɪ̂ pû tɕʰì wɔ̀ mǐlɤ lû tɕʰìŋ nì pɑ́ŋmɑ̌ŋ]
Re: Cargo Distribution
The algorithm picks destinations for passengers based on the destination stations' distance and "size". The further away a destination station is the less passengers will want to travel there. The more passengers spawn at the destination the more passengers will want to travel there, too. You can influence that mechanism with the advanced settings.
The guy on the picture is not me, it's Alonso.
Re: Cargo Distribution
Is there an equation that works out how it picks it destination?
Formerly known as UseYourIllusion.
Java Scenario Found Here - Version 2 out
[tweɪ̂ pû tɕʰì wɔ̀ mǐlɤ lû tɕʰìŋ nì pɑ́ŋmɑ̌ŋ]
Java Scenario Found Here - Version 2 out
[tweɪ̂ pû tɕʰì wɔ̀ mǐlɤ lû tɕʰìŋ nì pɑ́ŋmɑ̌ŋ]
Re: Cargo Distribution
Yes, you can find that algorithm in the source code.
Who is online
Users browsing this forum: No registered users and 18 guests