Search found 57 matches

by SWeini
Fri Jun 13, 2025 6:16 pm
Forum: Documentation Improvement Requests
Topic: Outdated information in LuaEntityPrototype.is_building
Replies: 0
Views: 176

Outdated information in LuaEntityPrototype.is_building

https://lua-api.factorio.com/latest/cla ... s_building

The list does not contain any of the space age building types, but they are buildings and are accepted by https://lua-api.factorio.com/latest/typ ... Flags.html "buildable-type"
by SWeini
Mon Jun 09, 2025 2:46 pm
Forum: Implemented mod requests
Topic: runtime access to asteroid collector arms
Replies: 1
Views: 189

runtime access to asteroid collector arms

I'd like to have access to these properties in runtime stage:

https://lua-api.factorio.com/latest/prototypes/AsteroidCollectorPrototype.html#arm_count_base
https://lua-api.factorio.com/latest/prototypes/AsteroidCollectorPrototype.html#arm_count_quality_scaling
https://lua-api.factorio.com/latest ...
by SWeini
Sun Jun 08, 2025 7:55 am
Forum: Documentation Improvement Requests
Topic: TechnologyModifier missing some types/properties
Replies: 0
Views: 339

TechnologyModifier missing some types/properties

Take a look at https://lua-api.factorio.com/latest/concepts/TechnologyModifier.html
It's missing many of the new things that came with SpaceAge.

I noticed the lack of quality if type == "unlock-quality" and the lack of space_location if type == "unlock-space-location".

There might be more missing ...
by SWeini
Fri Jun 06, 2025 6:21 am
Forum: Implemented mod requests
Topic: runtime access to fusion reactor/generator properties
Replies: 2
Views: 435

runtime access to fusion reactor/generator properties

I'd like to have access to these properties in runtime stage:

Fusion Reactor:
https://lua-api.factorio.com/latest/prototypes/FusionReactorPrototype.html#neighbour_connectable
https://lua-api.factorio.com/latest/prototypes/FusionReactorPrototype.html#neighbour_bonus (can probably use the existing ...
by SWeini
Tue Jun 03, 2025 9:40 pm
Forum: Modding interface requests
Topic: Reading (fuel) inventory filter of ghosts
Replies: 0
Views: 334

Reading (fuel) inventory filter of ghosts

I must be blind, but I can't find a way to read the fuel filter of ghosts. Would be really handy to know for my planned rate-calculator-like mod.

Please add such a method to LuaEntity or make it return semi-functioning LuaInventory instances
by SWeini
Sat May 31, 2025 10:05 am
Forum: Implemented mod requests
Topic: runtime access to asteroid dying effects
Replies: 1
Views: 359

runtime access to asteroid dying effects

I'd like to have access to this property in runtime stage:
https://lua-api.factorio.com/latest/prototypes/EntityWithHealthPrototype.html#dying_trigger_effect

This is needed to properly calculate where promethium chunks are coming from, because the chunks are not spawning directly. I guess ...
by SWeini
Sat May 31, 2025 8:21 am
Forum: Implemented mod requests
Topic: runtime access to starter pack surface
Replies: 1
Views: 397

runtime access to starter pack surface

I'd like to have access to this property in runtime stage:
https://lua-api.factorio.com/latest/prototypes/SpacePlatformStarterPackPrototype.html#surface

This is needed when calculating the game progression. I can read the surface from an existing space platform, but I can't know which surface ...
by SWeini
Sat May 31, 2025 3:45 am
Forum: Implemented mod requests
Topic: runtime access to UtilityConstants.rocket_lift_weight
Replies: 4
Views: 557

Re: runtime access to UtilityConstants.rocket_lift_weight

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.
by SWeini
Fri May 30, 2025 9:14 pm
Forum: Implemented mod requests
Topic: runtime access to thruster performance
Replies: 1
Views: 327

runtime access to thruster performance

I'd like to have access to these properties in runtime stage:
https://lua-api.factorio.com/latest/prototypes/ThrusterPrototype.html#min_performance
https://lua-api.factorio.com/latest/prototypes/ThrusterPrototype.html#max_performance

this is needed to even have a guess about the fuel/oxidizer ...
by SWeini
Fri May 30, 2025 5:50 pm
Forum: Implemented mod requests
Topic: runtime access to spawner capture mechanics
Replies: 1
Views: 291

runtime access to spawner capture mechanics

I'd like to have access to these properties in runtime stage:
https://lua-api.factorio.com/latest/types/AmmoType.html#target_filter
https://lua-api.factorio.com/latest/prototypes/EnemySpawnerPrototype.html#captured_spawner_entity

This is needed to calculate availability of items. Just because an ...
by SWeini
Fri May 30, 2025 5:44 pm
Forum: Implemented mod requests
Topic: runtime access to UtilityConstants.rocket_lift_weight
Replies: 4
Views: 557

runtime access to UtilityConstants.rocket_lift_weight

I'd like to have access to this property in runtime stage:
https://lua-api.factorio.com/latest/prototypes/UtilityConstants.html#rocket_lift_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 ...
by SWeini
Fri May 30, 2025 5:39 pm
Forum: Implemented mod requests
Topic: runtime access to ItemPrototype.send_to_orbit_mode
Replies: 1
Views: 328

runtime access to ItemPrototype.send_to_orbit_mode

I'd like to have access to this property in runtime stage:
https://lua-api.factorio.com/latest/prototypes/ItemPrototype.html#send_to_orbit_mode

this is not the same as having non-empty rocket_launch_products (in py mods there is a byproduct you can only automatically get rid by launching it to ...
by SWeini
Sat May 24, 2025 9:02 pm
Forum: Resolved Problems and Bugs
Topic: [Genhis][2.0.52] LuaEntityPrototype.get_inventory_size not working as expected
Replies: 1
Views: 1181

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

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

however, LuaEntityPrototype.get_inventory_size(defines.inventory.rocket_silo_rocket) returns nil and get_inventory_size on the rocket_entity_prototype returns nil for every argument I have tried, so I'm out of ...
by SWeini
Thu May 22, 2025 6:54 pm
Forum: Resolved Problems and Bugs
Topic: [Genhis][2.0.50] elem_tooltip for recipe-with-quality doesn't show properly
Replies: 1
Views: 1041

[Genhis][2.0.50] elem_tooltip for recipe-with-quality doesn't show properly

I try to use a sprite-button for a quality recipe (using the new LuaGuiElement.quality) and have a corresponding tooltip, but the tooltip doesn't work properly

basically this
{ type = "sprite-button", sprite = "recipe/foo", quality = "bar", elem_tooltip = { type = "recipe-with-quality", name = "foo ...
by SWeini
Sat May 10, 2025 11:27 am
Forum: Resolved Requests
Topic: [2.0.10] API documentation doesn't match data-raw-dump.json from Space Age
Replies: 8
Views: 1125

Re: [2.0.10] API documentation doesn't match data-raw-dump.json from Space Age


I couldn't find anywhere that uses WorkingVisualisation directly, and from the code I don't think that format is supported. Are you sure about this one?


I can't check that now. I assume that one of the dummy/unknown prototypes had the "wrong" format, which was then ignored as stated by Bilka ...
by SWeini
Thu May 08, 2025 4:50 am
Forum: Resolved Problems and Bugs
Topic: [2.0.47] copy-pasted offshore-pump ghost is missing fluid information
Replies: 4
Views: 1216

Re: [2.0.47] copy-pasted offshore-pump ghost is missing fluid information

Rseding91 wrote: Wed May 07, 2025 9:22 pm This is now fixed for the next release.
Thanks a lot for fixing. Regarding OffshorePumpPrototype.fluid_source_offset, was I just blind or is this really missing from runtime stage API?
by SWeini
Sat May 03, 2025 3:54 pm
Forum: Resolved Problems and Bugs
Topic: [2.0.47] copy-pasted offshore-pump ghost is missing fluid information
Replies: 4
Views: 1216

[2.0.47] copy-pasted offshore-pump ghost is missing fluid information

05-03-2025, 17-44-46.png

The left ghost was created using pipette
The right ghost was created using copy&paste (or by undoing a deconstruction)

The issue: In my mod I can't find a way to know which fluid the right ghost will pump
LuaFluidBox.get_locked_fluid(1) returns nil (returns correct fluid ...
by SWeini
Thu Oct 31, 2024 5:54 pm
Forum: Documentation Improvement Requests
Topic: Add weight calculation documentation
Replies: 6
Views: 1236

Add weight calculation documentation

Planning tools that work only on data stage (e.g. YAFC) need a way to replicate the weight calculation, but the little information given is not enough to explain what is going on.

Example that might involve some rounding
electronic-circuit
1x iron plate (1000)
3x copper cable (250 each)
ingredient ...

Go to advanced search