runtime access to UtilityConstants.rocket_lift_weight

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
SWeini
Long Handed Inserter
Long Handed Inserter
Posts: 56
Joined: Mon Apr 04, 2022 6:43 am
Contact:

runtime access to UtilityConstants.rocket_lift_weight

Post by SWeini »

I'd like to have access to this property in runtime stage:
https://lua-api.factorio.com/latest/pro ... ift_weight

This is needed when calculating availability of items on certain planets. An item that can only be crafted on nauvis and is light enough to send to space will be available on other planets. An item that is too heavy for a rocket will not be available on other planets.

Also, this is necessary to know how many items can be sent to space for the price of one rocket. Pricing interplanetary logistics is important if you want to have factory planner (or other mods of that kind) support matrix optimization cross planet.
robot256
Smart Inserter
Smart Inserter
Posts: 1205
Joined: Sun Mar 17, 2019 1:52 am
Contact:

Re: runtime access to UtilityConstants.rocket_lift_weight

Post by robot256 »

Related request that was previously marked "won't implement": viewtopic.php?p=656781&hilit=Rocket+weight#p656781.

I agree that either of these changes would be really nice. It would also make sense for higher quality rockets/silos to lift more weight (if they don't already).
SWeini
Long Handed Inserter
Long Handed Inserter
Posts: 56
Joined: Mon Apr 04, 2022 6:43 am
Contact:

Re: runtime access to UtilityConstants.rocket_lift_weight

Post by SWeini »

Please note that my request is not for having per-prototype rocket lift weights, but for having the one rocket lift weight available in runtime stage (without resorting to smuggling arbitrary data from data stage). Related, but still completely different.
robot256
Smart Inserter
Smart Inserter
Posts: 1205
Joined: Sun Mar 17, 2019 1:52 am
Contact:

Re: runtime access to UtilityConstants.rocket_lift_weight

Post by robot256 »

SWeini wrote: Sat May 31, 2025 3:45 am Please note that my request is not for having per-prototype rocket lift weights, but for having the one rocket lift weight available in runtime stage (without resorting to smuggling arbitrary data from data stage). Related, but still completely different.
Ah, you want *read* access. That makes even more sense and should be easy to implement. Sorry for misunderstanding.
Post Reply

Return to “Modding interface requests”