Expose command "delete-blueprint-library <player>" through LuaGameScript

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
User avatar
RedRafe
Inserter
Inserter
Posts: 44
Joined: Thu Nov 11, 2021 12:21 pm
Contact:

Expose command "delete-blueprint-library <player>" through LuaGameScript

Post by RedRafe »

I would like to request if it would be possible to expose this Lua command though the LuaGameScript:

Code: Select all

delete-blueprint-library <player>: Deletes the blueprint library storage for the given offline player from the save file. Enter "everybody confirm" to delete the storage of all offline players.
Something like "game.delete_blueprint_library(player_identification)"
This is most useful for servers where admins would have to join and manually prune dozens of inventories by console command, automating it in script.

Bonus: would be useful to also have a getter method to get players BP library size (single player or of array for all players/indexes) in bytes. But this is not striclty necessary.

Thanks! RR
--- Factorio Modder, Admin & developer @ RedMew. Contact me via Discord. ---
Post Reply

Return to “Modding interface requests”