Search found 54 matches

by SWeini
Fri Jun 06, 2025 6:21 am
Forum: Modding interface requests
Topic: runtime access to fusion reactor/generator properties
Replies: 1
Views: 133

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: 165

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: Modding interface requests
Topic: runtime access to asteroid dying effects
Replies: 0
Views: 137

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: Modding interface requests
Topic: runtime access to starter pack surface
Replies: 0
Views: 126

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: Modding interface requests
Topic: runtime access to UtilityConstants.rocket_lift_weight
Replies: 3
Views: 269

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: 196

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: 181

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: Modding interface requests
Topic: runtime access to UtilityConstants.rocket_lift_weight
Replies: 3
Views: 269

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: 226

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: 697

[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: 594

[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: 997

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: 1098

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: 1098

[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: 1017

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 ...
by SWeini
Thu Oct 24, 2024 4:30 pm
Forum: Resolved Requests
Topic: [2.0.10] API documentation doesn't match data-raw-dump.json from Space Age
Replies: 8
Views: 997

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

I'm writing automated tooling to read the whole data dump from json, and I've found a few inconsistencies. These are the changes to documentation to make them match the found data:

AchievementPrototypeWithCondition::objective_condition
must be optional (at least it's missing for "solaris ...
by SWeini
Thu Oct 17, 2024 5:09 pm
Forum: Resolved Problems and Bugs
Topic: [Tobias] [2.0.5] Train interrupt on destination full skips the full stop completely
Replies: 10
Views: 3706

[Tobias] [2.0.5] Train interrupt on destination full skips the full stop completely

I want my train to go A->B->C->A->B->C forever, but go to X instead of blocking a train stop.
However, when B is full, the train goes A->X->C->A->X->C forever, skipping B completely. This is how I tried to do it:
10-17-2024, 19-02-08.png

When the interrupt is "Destination full or no path" (and ...
by SWeini
Tue Apr 23, 2024 5:02 am
Forum: Pending
Topic: [1.1.106] Blueprint with relative grid is about to be placed in absolute grid
Replies: 3
Views: 1172

Re: [1.1.106] Blueprint with relative grid is about to be placed in absolute grid

No, I did these steps hundreds of times and it only happened once. I still tried to describe my steps to the best of my knowledge. Because I know what I saw, and the blueprint was in the wrong snapping mode when being clicked. Sometimes a dev can see what's going wrong just by looking at the code.

Go to advanced search