Page 1 of 1
Change rocket_lift_weight
Posted: Thu Oct 31, 2024 2:14 pm
by takisama
Hi folks,
I'm trying to make rocket bringing more items to my ISS, so I find a way to increase its lifting weight. I scan through lua-api factorio and found an interesting constant:
rocket_lift_weight. It's in
Code: Select all
core/prototypes/utility-constants.lua
, line 507. I change the value by add a 0 at the end and start the game. UI displays 10 tons, but it doesn't help much. Normally I can add 50 belts to rocket inventory, but after changing I can only add 100 belts, but it should be 500 belts because the rocket_lift_weight is now 10 times than normal.
Anyone knows how to make the job done? Please help!
Thank you so much!
Re: Change rocket_lift_weight
Posted: Tue Jan 28, 2025 12:17 pm
by Xorimuth
takisama wrote: Thu Oct 31, 2024 2:14 pm
Hi folks,
I'm trying to make rocket bringing more items to my ISS, so I find a way to increase its lifting weight. I scan through lua-api factorio and found an interesting constant:
rocket_lift_weight. It's in
Code: Select all
core/prototypes/utility-constants.lua
, line 507. I change the value by add a 0 at the end and start the game. UI displays 10 tons, but it doesn't help much. Normally I can add 50 belts to rocket inventory, but after changing I can only add 100 belts, but it should be 500 belts because the rocket_lift_weight is now 10 times than normal.
Anyone knows how to make the job done? Please help!
Thank you so much!
Many items don't have a specific weight set, and instead it is automatically generated by the engine based on a variety of factors (mostly undocumented...). On of these factors is the utility constant `rocket_lift_weight` itself, so just multiplying that by X doesn't necessarily increase the rocket capacity of all items by X. For many items, the automatically generated `weight` is proportional to `rocket_lift_weight`, so increasing the latter probably won't increase the rocket capacity of items like you'd expect. If you want to allow more items per rocket, then you'll need to set `weight` yourself on items that don't already have it set.