[Genhis][2.0.11] LuaGame::merge_forces causes inventory losses in space platforms

This subforum contains all the issues which we already resolved.
Post Reply
RedRafe
Burner Inserter
Burner Inserter
Posts: 14
Joined: Thu Nov 11, 2021 12:21 pm
Contact:

[Genhis][2.0.11] LuaGame::merge_forces causes inventory losses in space platforms

Post by RedRafe »

Hi, here's a bug I think I found when using different forces.

Issue: when merging forces, spaceship hubs don't account for connected cargo bays increasing their inventory size for a split second, resulting in inventories being trimmed and items lost during the process.

Expected behavior: account for increased storage capacity from cargo bays throughout the merge forces process, to avoid inventories losing items

Steps to reproduce:
1. create another force, i.e. "test"
2. build a spaceship with cargo bays to increase its storage capacity
3. fill storage
4. merge force "test" into "player"
5. spaceship's inventory has been trimmed

Attached to this topic there's a save with already minimal setup to reproduce the issue.
Cheers
Attachments
merge_forces_loses_storage.zip
(1.16 MiB) Downloaded 3 times

User avatar
boskid
Factorio Staff
Factorio Staff
Posts: 2707
Joined: Thu Dec 14, 2017 6:56 pm
Contact:

Re: [2.0.11] LuaGame::merge_forces causes inventory losses in space platforms

Post by boskid »

I suspect it will be caused by entity force changes causing cargo bays to temporarily disconnect from the hub due to force difference and that removes items that are above the hub capacity.

Genhis
Factorio Staff
Factorio Staff
Posts: 435
Joined: Wed Dec 24, 2014 8:19 am
Contact:

Re: [Genhis][2.0.11] LuaGame::merge_forces causes inventory losses in space platforms

Post by Genhis »

Thanks for the report, this is fixed for the next release.

Post Reply

Return to “Resolved Problems and Bugs”