Need support for additional parameter in lib.create_crash_site

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
Post Reply
twsta
Manual Inserter
Manual Inserter
Posts: 1
Joined: Mon Jan 15, 2024 5:07 am
Contact:

Need support for additional parameter in lib.create_crash_site

Post by twsta »

I am making a mod that extends off of the Freeplay scenario, which gives the following additional behavior:

Allows teams to be freely created and removed, supports Vanilla single-map and Space Exploration multi-map saves.

Part of this behavior is the ability to generate a fresh "crash site" for the new force that is created.

Unfortunately, i have hit a roadblock in that `data/core/lualib/crash-site.lua` and it's function `lib.create_crash_site` has hardcoded force name as "player" for the ship parts. This causes the ship parts to not be owned by the new force after they are spawned via my custom code.

If at all possible, could you please add an additional parameter to `lib.create_crash_site` for the force name, which would allow me to use this function as-is with a custom force?

Post Reply

Return to “Modding interface requests”