[Genhis][2.0.52] LuaEntityPrototype.get_inventory_size not working as expected

This subforum contains all the issues which we already resolved.
SWeini
Long Handed Inserter
Long Handed Inserter
Posts: 54
Joined: Mon Apr 04, 2022 6:43 am
Contact:

[Genhis][2.0.52] LuaEntityPrototype.get_inventory_size not working as expected

Post by SWeini »

I'm trying to get the number of stacks I'm able to put into a (modded) rocket silo

however,

Code: Select all

LuaEntityPrototype.get_inventory_size(defines.inventory.rocket_silo_rocket)
returns nil and

Code: Select all

get_inventory_size
on the

Code: Select all

rocket_entity_prototype
returns nil for every argument I have tried, so I'm out of options here

I expect

Code: Select all

LuaEntityPrototype.get_inventory_size(defines.inventory.rocket_silo_rocket)
to return the value given in

Code: Select all

RocketSiloPrototype.to_be_inserted_to_rocket_inventory_size
Genhis
Factorio Staff
Factorio Staff
Posts: 844
Joined: Wed Dec 24, 2014 8:19 am
Contact:

Re: [Genhis][2.0.52] LuaEntityPrototype.get_inventory_size not working as expected

Post by Genhis »

Thanks for the report, I added rocket_silo_rocket and rocket_silo_trash to get_inventory_size() for 2.0.53.
Post Reply

Return to “Resolved Problems and Bugs”