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

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. ---
Rseding91
Factorio Staff
Factorio Staff
Posts: 16551
Joined: Wed Jun 11, 2014 5:23 am
Contact:

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

Post by Rseding91 »

Ok, I added it for 2.1.
If you want to get ahold of me I'm almost always on Discord.
Post Reply

Return to “Implemented mod requests”