Page 1 of 1

LuaEntity.copy_settings not copying equipment grid

Posted: Sat Jan 25, 2025 11:59 am
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?

Re: LuaEntity.copy_settings not copying equipment grid

Posted: Sat Jan 25, 2025 12:21 pm
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."