The International Simutrans Forum

 

Author Topic: convoy does not pick up cargo correctly  (Read 350 times)

0 Members and 1 Guest are viewing this topic.

Offline Ranran

  • Devotee
  • *
  • Posts: 1208
  • Languages: ja
convoy does not pick up cargo correctly
« on: July 04, 2020, 09:41:45 AM »
Currently there are weird decisions on convoy loading cargo.

Explanation:
There was a mirror scheduled line like A - B - C.
There was a lot of cargo going to B at C.
I sent to C an extra convoy. But the convoy did not pick up any cargo. But there is no competitive route there.

I have seen this symptom many times.

I found a solution today. Check reverse route and run the same schedule again.
I think this strange check could also be related to the convoy being teleported to the depot.

Offline jamespetts

  • Simutrans-Extended project coordinator
  • Moderator
  • *
  • Posts: 20268
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: convoy does not pick up cargo correctly
« Reply #1 on: July 04, 2020, 10:42:44 AM »
Thank you for this. Are you able to upload a reliable reproduction case so that I can look into this further?

Offline Ranran

  • Devotee
  • *
  • Posts: 1208
  • Languages: ja
Re: convoy does not pick up cargo correctly
« Reply #2 on: July 04, 2020, 11:45:05 AM »
I did a similar operation in the same dock with the server save I got, but it wasn't reproducible anymore. Perhaps by doing it once, the symptom may have gone away. Therefore another case has to be sought....

For reference:
There were nearly 1000 mails from Anningdale Island to the [W2] Glyerdale delta Mail Center, so I added a ship for that line. But it didn't pick up any mail at the dock. I checked the reverse route, and opened the schedule and docked at the dock again then it picked it up.
I hadn't found a solution so far, so I always gave up after seeing this phenomenon. (´・ω・`)

Offline Ranran

  • Devotee
  • *
  • Posts: 1208
  • Languages: ja
Re: convoy does not pick up cargo correctly
« Reply #3 on: July 20, 2020, 12:53:00 PM »
Thank you for this. Are you able to upload a reliable reproduction case so that I can look into this further?
I have successfully obtained a save that can confirm that. It is a big saved game of the server.
https://drive.google.com/file/d/1ibZBZXQZeeaPD_oMmav3T-dXjELsVJ3v/view?usp=sharing
(Posting was delayed, but the save was a few weeks ago)
There is a bi-directional ship anchored on the same line at the port, but one is not trying to load anything. However, there is a lot of luggage to be loaded on the ship at the port, and more cargoes to be loaded on it arrive by horse carriage.
I found this by accident, not by adding new ones or changing the schedule.


A similar weird symptom is that convoys that depart later may be loaded during scheduled convoys.

Offline jamespetts

  • Simutrans-Extended project coordinator
  • Moderator
  • *
  • Posts: 20268
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: convoy does not pick up cargo correctly
« Reply #4 on: September 27, 2020, 11:55:00 AM »
Thank you for your report. It tends to be extremely difficult to use a very large server game as a reproduction case because it performs very poorly in a debug build and it is difficult to separate the relevant data when using breakpoints because the total amount of data is so great.

Can you assist by elaborating on what ship should be loading what mail at Glyerdale Delta Mail Center so that I can investigate this more precisely?

Offline Ranran

  • Devotee
  • *
  • Posts: 1208
  • Languages: ja
Re: convoy does not pick up cargo correctly
« Reply #5 on: September 27, 2020, 12:23:05 PM »
Can you assist by elaborating on what ship should be loading what mail at Glyerdale Delta Mail Center so that I can investigate this more precisely?
Convoy 7661 is a convoy that belongs to the same line as convoy 5451 and goes in the opposite direction to 5451. The 7661 is nothing loaded, but all mail to another continent must be loaded by convoy 7661. But nothing is loaded. Since Annigdale Island and Paradise of pigs are on different continents, at least the mail to them had to be loaded. Mail to another continent will be carried by carriage one after another by the time 7661 departs.

In this save, it seems that they are loaded at the time of departure. (Until then, nothing is loaded).
In the example of the first report and the example confirmed several times, convoy eventually started with nothing loaded. In this save example, there is a long time before convoy departs.
I thought it might be a clue, though it doesn't always reproduce the exact same situation.