LuaEntity.copy_settings not copying equipment grid

Place to get help with not working mods / modding interface.
Sheridan
Inserter
Inserter
Posts: 31
Joined: Wed Dec 13, 2017 5:27 pm
Contact:

LuaEntity.copy_settings not copying equipment grid

Post by Sheridan »

Hello everyone,

I'm currently working on copying the settings of one Spidertron to others using the `LuaEntity.copy_settings` function. You can see the relevant code snippet here.

However, I've noticed that the equipment grid is not being copied over.

LuaEntity.copy_settings seems to handle most settings, but the equipment grid appears to be an exception.

Am I doing something wrong, or is this expected behavior? Should I be copying the equipment grid separately?
Please consider English is not my native language.
Sheridan
Inserter
Inserter
Posts: 31
Joined: Wed Dec 13, 2017 5:27 pm
Contact:

Re: LuaEntity.copy_settings not copying equipment grid

Post by Sheridan »

I did a bit more experimenting with the `LuaEntity.copy_settings` function. It seems that the equipment grid is not copied only when the player parameter is not specified in the function call.

Is this the expected behavior? I would prefer that after copying, the Spidertron does not remain in the player's "copy buffer."
Please consider English is not my native language.
Post Reply

Return to “Modding help”