Search found 8 matches

by firebladed3
Tue Oct 29, 2024 9:52 am
Forum: Modding help
Topic: RecipePrototype results and main_product expected values?
Replies: 4
Views: 323

Re: RecipePrototype results and main_product expected values?

Ok

on further examination there is an inconsistency between

https://lua-api.factorio.com/latest/prototypes/RecipePrototype.html

and

https://lua-api.factorio.com/latest/classes/LuaRecipePrototype.html

the first has results and the second has products

which is somewhat confusing


Edit ...
by firebladed3
Tue Oct 29, 2024 9:16 am
Forum: Modding help
Topic: RecipePrototype results and main_product expected values?
Replies: 4
Views: 323

Re: RecipePrototype results and main_product expected values?

im getting from prototypes.get_recipe_filtered(filters)

but the result from prototypes.recipe['burner-lab'] is the same error

Both are "[LuaRecipePrototype: burner-lab (recipe)]"

and both error with "LuaRecipePrototype doesn't contain key results"

im testing with
log(serpent.block(prototypes ...
by firebladed3
Tue Oct 29, 2024 8:35 am
Forum: Modding help
Topic: RecipePrototype results and main_product expected values?
Replies: 4
Views: 323

RecipePrototype results and main_product expected values?

with RecipePrototype what are the "normal" expected values?

Im unsure if this is normal or a bug but when i read the RecipePrototype for "burner-lab"

[Edit] i get LuaRecipePrototype doesn't contain key results.
and
recipe.main_product as a ItemProductPrototype ?

{
amount = 1,
name = "burner ...
by firebladed3
Fri Oct 25, 2024 12:47 am
Forum: Modding help
Topic: [2.0] How to script constant combinators using the new `LuaLogisticSection`
Replies: 2
Views: 600

Re: [2.0] How to script constant combinators using the new `LuaLogisticSection`

its mentioned somewhere on here, i forget where, that there is a issue? with the quality setting

you have to set quality to avoid that error
e.g

local logisticfilter = {}
local signalfilter = {}

signalfilter.type = "item"
signalfilter.name = k
signalfilter.quality = "normal ...
by firebladed3
Thu Oct 24, 2024 9:54 am
Forum: Modding help
Topic: What are the new ways of getting request_slot_count?
Replies: 4
Views: 413

Re: What are the new ways of getting request_slot_count?

This appears to require iterating through the LuaLogisticPoint.sections you can get from LuaControl.get_requester_point()
by firebladed3
Sun Dec 22, 2019 11:41 pm
Forum: Ideas and Requests For Mods
Topic: Signal Class Filtering Combinator
Replies: 0
Views: 613

Signal Class Filtering Combinator

following on from https://forums.factorio.com/viewtopic.php?f=18&t=79206#p470859

Im looking to create a simple combinator mod that filters circuit signals by types (item,fluid,virtual)

i have a rough outline of code that works on a LUA combinator 3 based on https://lua-api.factorio.com/latest ...
by firebladed3
Sun Dec 22, 2019 5:02 pm
Forum: Gameplay Help
Topic: Filtering Fluid Signals
Replies: 2
Views: 1422

Filtering Fluid Signals

Does anyone know a simple way of filtering out circuit signals for fluids, while i could do this with individual combinators, when i have bobs and angels, i have around 200 different fluids

in a similar way is it possible to filter out virtual signals or items as a group
by firebladed3
Fri Jun 30, 2017 9:54 pm
Forum: Duplicates
Topic: [0.15.25] Train Station fluid Content signal Rounding error
Replies: 1
Views: 1197

[0.15.25] Train Station fluid Content signal Rounding error

Train stations Signal output appears to be rounding incorrectly

have fluid wagon with each tank containing 0.5 train show content as 1.5
however a signal wire attached to train staion reads 0

i would guess train summing before rounding round(0.5+0.5+0.5) = 1.5
where as station is rounding before ...

Go to advanced search