player.character_logistic_slot_count

Place to get help with not working mods / modding interface.
Post Reply
Sunnova
Fast Inserter
Fast Inserter
Posts: 169
Joined: Mon May 16, 2016 12:10 pm
Contact:

player.character_logistic_slot_count

Post by Sunnova »

Was player.character_logistic_slot_count changed in 1.1?

Choumiko
Smart Inserter
Smart Inserter
Posts: 1352
Joined: Fri Mar 21, 2014 10:51 pm
Contact:

Re: player.character_logistic_slot_count

Post by Choumiko »

Yes, it now is called https://lua-api.factorio.com/latest/Lua ... slot_count

Code: Select all

player.character.request_slot_count
And the value is the highest slot that is actually set to something. Writing to it isn't necessary anymore, since LuaPlayer.set_personal_logistic_slot() extends the logistic slots if necessary

Sunnova
Fast Inserter
Fast Inserter
Posts: 169
Joined: Mon May 16, 2016 12:10 pm
Contact:

Re: player.character_logistic_slot_count

Post by Sunnova »

Thank you!!

Choumiko wrote:
Tue Nov 24, 2020 9:08 pm
Yes, it now is called https://lua-api.factorio.com/latest/Lua ... slot_count

Post Reply

Return to “Modding help”