(Solved) How does Space Age calculate the rocket capacity of items that don't have weights in the lua file?
Posted: Sun Aug 02, 2026 9:48 pm
I am trying to do some calculations on rocket capacity and looking into the data files, specifically these
https://github.com/wube/factorio-data/b ... s/item.lua
https://github.com/wube/factorio-data/b ... s/item.lua
A lot of the items have weights that correspond to their rocket capacity. For example, Iron ore has a weight of `2 * kg` and the rocket capacity is 500 for iron ore, so this makes sense.
But some other items do not have a weight in the Lua file. stone-brick does not. iron-plate doesn't either. The rocket capacity of iron-plate is 1000 while stone-brick is 500, so they can't have some default value for all items missing a weight.
Does anyone know where in the data files this is specified? I searched the repo for "stone-brick" and could not find a weight defined near any of the matches.
Update: I found this description. Is it valid? Seems a bit complex for what I'm trying to do.
https://lua-api.factorio.com/latest/aux ... eight.html
Update 2: Is it possible to run an in-game script to just print out the rocket capacity of each items? That would solve my problem too.
https://github.com/wube/factorio-data/b ... s/item.lua
https://github.com/wube/factorio-data/b ... s/item.lua
A lot of the items have weights that correspond to their rocket capacity. For example, Iron ore has a weight of `2 * kg` and the rocket capacity is 500 for iron ore, so this makes sense.
But some other items do not have a weight in the Lua file. stone-brick does not. iron-plate doesn't either. The rocket capacity of iron-plate is 1000 while stone-brick is 500, so they can't have some default value for all items missing a weight.
Does anyone know where in the data files this is specified? I searched the repo for "stone-brick" and could not find a weight defined near any of the matches.
Update: I found this description. Is it valid? Seems a bit complex for what I'm trying to do.
https://lua-api.factorio.com/latest/aux ... eight.html
Update 2: Is it possible to run an in-game script to just print out the rocket capacity of each items? That would solve my problem too.