Modules dropping on the ground when replaced

Things that has been reported already before.
DustinPedlar
Manual Inserter
Manual Inserter
Posts: 4
Joined: Wed Mar 29, 2017 6:13 am
Contact:

Modules dropping on the ground when replaced

Post by DustinPedlar »

When replacing more modules in a machine than a bot can carry, the excess are dropped on the floor and not replaced, leaving a machine with missing modules and a mess to clean up.

Expected behavior: Bots should only replace the number of modules they can carry and leave the remainder for another bot to complete.
Loewchen
Global Moderator
Global Moderator
Posts: 9752
Joined: Wed Jan 07, 2015 5:53 pm
Contact:

Re: Modules dropping on the ground when replaced

Post by Loewchen »

Post a simple save that shows exactly that happening please, see 3638.
User avatar
BlueTemplar
Smart Inserter
Smart Inserter
Posts: 3234
Joined: Fri Jun 08, 2018 2:16 pm
Contact:

Re: Modules dropping on the ground when replaced

Post by BlueTemplar »

As a potential quick fix for spillover issues like these, see
https://mods.factorio.com/mod/Nanobots
The item retriever module will mark all items on the ground (artifacts, etc) in your personal roboport construction range for deconstruction as long as no enemies are around.
(I will note that some of this logic is already in vanilla, for the spillover from overflowing Cargo landing pad getting auto-deconstructed.)
BobDiggity (mod-scenario-pack)
DustinPedlar
Manual Inserter
Manual Inserter
Posts: 4
Joined: Wed Mar 29, 2017 6:13 am
Contact:

Re: Modules dropping on the ground when replaced

Post by DustinPedlar »

I created a test world and enabled cheats and researched all tech to get an example to show.

There are two rows of 20 Foundries set up both with different module configurations. The top row contains 1 rare speed 2, 1 rare efficiency 2 and 2 normal efficiency 2, while the bottom row contains 4 rare speed 2.
1 - Setup.JPG
1 - Setup.JPG (1014.36 KiB) Viewed 350 times
I then copy the bottom row and paste it over the top to get the robots to update the module configuration of the top row.
2 - Bot Commands.JPG
2 - Bot Commands.JPG (1015.31 KiB) Viewed 350 times
I then put the bots in the roboport (had them out to take a screenshot of the commands before they started) and this was the result, with one of the 4 new modules totally missing and one of the old modules on the floor:
3 - Result.JPG
3 - Result.JPG (1008.52 KiB) Viewed 350 times
The last screenshot just highlights the items on the floor with a filtered deconstruction planner.
4 - Modules on Floor.jpg
4 - Modules on Floor.jpg (1.9 MiB) Viewed 350 times
This only seems to happen with certain module configurations and I suspect it has something to do with the bots inventory getting overfilled with modules.
Attachments
Robot Test.zip
(3.92 MiB) Downloaded 10 times
Muche
Filter Inserter
Filter Inserter
Posts: 753
Joined: Fri Jun 02, 2017 6:20 pm
Contact:

Re: Modules dropping on the ground when replaced

Post by Muche »

As there are empty module slots after the action, the issue might be related to 118943 Module insertion doesn't fill empty slots in module inventory if there's a request after them.
DustinPedlar
Manual Inserter
Manual Inserter
Posts: 4
Joined: Wed Mar 29, 2017 6:13 am
Contact:

Re: Modules dropping on the ground when replaced

Post by DustinPedlar »

It does seem similar to that issue.

In the example above, the first module slot is the same in both, so only the 2nd to 4th get a request to change and then the 2nd one gets missed and dropped onto the floor instead.

But the strange thing is that is isnt all of them. a different number of machines have the issue each time, even with the same configuration starting and copying. sometimes 19 / 20 drop and sometimes only 16/20 etc, but the issue is repeatable.

In this case, the issue occurs with copy and paste and all 3 expected module swap requests appear, only the first one in slot 2 just gets dropped onto the floor instead of being swapped out.
Asd_0076
Manual Inserter
Manual Inserter
Posts: 3
Joined: Thu Nov 07, 2024 4:37 pm
Contact:

Re: Modules dropping on the ground when replaced

Post by Asd_0076 »

Video and log file attached.

Expected: all 5 rare modules are placed in the EM assembler, previous modules are taken away to storage.
Experienced: 4 rare modules were inserted, one of the previous modules got dropped on the ground.

Possibly because previous modules were a mix of common and uncommon, so a single bot couldn't carry both types away?
Attachments
factorio-current.log
(10.67 KiB) Downloaded 8 times
Module insertion bug.mp4
(26.05 MiB) Downloaded 13 times
Last edited by Asd_0076 on Thu Nov 07, 2024 4:58 pm, edited 1 time in total.
Genhis
Factorio Staff
Factorio Staff
Posts: 749
Joined: Wed Dec 24, 2014 8:19 am
Contact:

Re: Modules dropping on the ground when replaced

Post by Genhis »

Thanks for the report. I think this is a duplicate of 119524.
Post Reply

Return to “Duplicates”