Inserters ignoring ProxyContainers

Place to get help with not working mods / modding interface.
Gizzmohammer
Burner Inserter
Burner Inserter
Posts: 8
Joined: Wed May 07, 2025 1:55 am
Contact:

Inserters ignoring ProxyContainers

Post by Gizzmohammer »

I've been playing around a bit with ProxyContainers.

Inserting works just fine, but inserters seem to ignore them when removing items. They don't even show the white "connected" overlay when I hover the inserters.

I.e I linked a proxy container to the player inventory, and I could add things remotely, but not remove them


Any ideas?
Thanks
User avatar
boskid
Factorio Staff
Factorio Staff
Posts: 4050
Joined: Thu Dec 14, 2017 6:56 pm
Contact:

Re: Inserters ignoring ProxyContainers

Post by boskid »

Cannot reproduce.
07-23-2025, 19-26-42.png
07-23-2025, 19-26-42.png (136.6 KiB) Viewed 203 times
Gizzmohammer
Burner Inserter
Burner Inserter
Posts: 8
Joined: Wed May 07, 2025 1:55 am
Contact:

Re: Inserters ignoring ProxyContainers

Post by Gizzmohammer »

Thanks for the reply!
Glad to know it's user-error :D

My prototype definition must be incomplete.

Currently it's just a type, name, collision box and selection box.


Local proxychest = {
type = "proxy-container",
name = "proxy-chest",
collision_box = {{-0.5, -0.5},{0.5, 0.5}},
celection_box = {{-0.5, -0.5},{0.5, 0.5}}
}


Is there anything I'm missing?
Thanks!
User avatar
boskid
Factorio Staff
Factorio Staff
Posts: 4050
Joined: Thu Dec 14, 2017 6:56 pm
Contact:

Re: Inserters ignoring ProxyContainers

Post by boskid »

Only explanation i can guess from the details provided is that you are creating that entity using LuaSurface::create_entity and you failed to provide a `force` parameter causing the entity to be of `enemy` force. When a container is of different force, inserters will be able to insert items into it but will not be able to take items out of it unless inserter is of the same force as the container (or forces are set to be friendly).

If that is not the explanation, then please go to debug settings, enable `show-debug-info-in-tooltips`, and while holding cursor over your entity on the surface do a print screen that contains the details tooltip with all of the debug informations - that will include the force of the entity.
Bilka
Factorio Staff
Factorio Staff
Posts: 3428
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: Inserters ignoring ProxyContainers

Post by Bilka »

You might need the player-creation flag.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.
Gizzmohammer
Burner Inserter
Burner Inserter
Posts: 8
Joined: Wed May 07, 2025 1:55 am
Contact:

Re: Inserters ignoring ProxyContainers

Post by Gizzmohammer »

boskid wrote: Wed Jul 23, 2025 6:41 pm Only explanation i can guess from the details provided is that you are creating that entity using LuaSurface::create_entity and you failed to provide a `force` parameter causing the entity to be of `enemy` force. When a container is of different force, inserters will be able to insert items into it but will not be able to take items out of it unless inserter is of the same force as the container (or forces are set to be friendly).
Ah-ha! Adding the force parameter fixed it!
Thank you so much!
Post Reply

Return to “Modding help”