P2P-Automation : Platform to Platform Logistics

by SirPuck

Automated logistic requests from Platfrom to Platfrom in the same orbit (space location) using vanilla mechanics.

Content
10 days ago
2.0
1.56K
Logistics Logistic network

b Game Crash

10 days ago

Hello, I think there is a crash when deleting a spaceship that has a logistic request set.

72.849 Error MainLoop.cpp:1511: Exception at tick 57371214: The mod P2P-automation : Platforms logistics (1.3.0) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event P2P-automation::on_nth_tick(10)
LuaEntity API call when LuaEntity was invalid.
stack traceback:
[C]: in function 'index'
__P2P-automation
/logistics/logistics.lua:8: in function 'are_platforms_at_same_location'
P2P-automation/control.lua:62: in function <P2P-automation/control.lua:25>
72.849 Error ServerMultiplayerManager.cpp:84: MultiplayerManager failed: "The mod P2P-automation : Platforms logistics (1.3.0) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event P2P-automation::on_nth_tick(10)
LuaEntity API call when LuaEntity was invalid.
stack traceback:
[C]: in function 'index'
__P2P-automation
/logistics/logistics.lua:8: in function 'are_platforms_at_same_location'
P2P-automation/control.lua:62: in function <P2P-automation/control.lua:25>"
72.849 Info ServerMultiplayerManager.cpp:808: updateTick(57371214) changing state from(InGame) to(Failed)
72.865 Quitting: multiplayer error.

I was using spaceship A to deliver items to space station B. Later, I created a completely new spaceship to replace A, deleted the original A, and copied its name and schedule to the new spaceship. Some time after this, the game began crashing with the error mentioned above. About 10 seconds after the last save, the crash consistently occurred. I was only able to resolve the issue by completely removing the mod. Could you please look into this problem?

Thank you for your support.

10 days ago

Hello, this is a critical issue, I'm looking into it right away.

10 days ago

Thank you. For reference, I had forgotten that spaceship A also had a P2P schedule. Because of this, I did not directly copy the P2P settings to the new spaceship.

10 days ago

You cannot "relink" p2p requests just by reusing the same name. Unfortunately, if you delete a requester, you lose the requests.
I just patched the code. Now, if a provider is invalid, it should not crash anymore. Also, any provider that has been destroyed should now count as being invalid, and should be skipped in requests candidates evaluation.
Also, if a request has a provider that is not valid, the request will be destroyed, and the panel will be refreshed the next time you open it.
Please tell me if the new version fixes the issue.

8 days ago

Hello, I assume the issue is resolved ?

New response