Change rocket_lift_weight

Place to get help with not working mods / modding interface.
takisama
Burner Inserter
Burner Inserter
Posts: 7
Joined: Sat Mar 25, 2023 7:08 pm
Contact:

Change rocket_lift_weight

Post 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!
Xorimuth
Filter Inserter
Filter Inserter
Posts: 730
Joined: Sat Mar 02, 2019 9:39 pm
Contact:

Re: Change rocket_lift_weight

Post 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.
My mods
Content: Lunar Landings | Freight Forwarding | Spidertron Patrols | Spidertron Enhancements | Power Overload
QoL: Factory Search | Module Inserter Simplified | Wire Shortcuts X | Ghost Warnings
Post Reply

Return to “Modding help”