Flow Control Order fixed By Fr_Dae deprecated

by Fr_Dae

Adds pipes with restricted connections, and several useful valves.

11 days ago
0.18 - 2.0
524

g [BUG]quality

12 days ago

4.252 Error ModManager.cpp:1738: Impossible de charger le mod « quality » : core/lualib/util.lua:803: Recipe has no results: check-valve
stack traceback:
[C]: in function 'error'
core/lualib/util.lua:803: in function 'normalize_recipe_products'
quality/prototypes/recycling.lua:78: in function 'add_recipe_values'
quality/prototypes/recycling.lua:191: in function 'generate_recycling_recipe'
quality/data-updates.lua:5: in main chunk
4.283 Loading mod core 0.0.0 (data.lua)
4.363 Checksum for core: 896754211
4.658 Error ModManager.cpp:1738: Error in assignID: procession with name 'default-b' does not exist.

Source: default (utility-constants).
4.668 Info PlayerData.cpp:66: Local player-data.json available, timestamp 1730569382
4.668 Info PlayerData.cpp:73: Cloud player-data.json unavailable
4.769 Initial atlas bitmap size is 8192
4.772 Created an atlas bitmap (size 2048x864) [icon, not-compressed, mipmap, linear-minification, linear-magnification, linear-mip-level]
4.772 Loading 3D bitmaps.
4.780 Texture processor created (2048). GPU accelerated compression Supported: yes, Enabled: yes/yes. Test passed. YCoCgDXT PSNR: 35.83, BC3 PSNR: 33.82
4.781 Parallel sprite loader initialized (threads: 7, bitmaps: 144)
4.890 Sprites loaded
4.902 Generated mipmaps (5) for atlas [0] of size 2048x864
4.903 Custom mipmaps uploaded (116)
4.914 Video memory usage: 8.99 MB (Atlases: 8.99 MB, Textures: 0.00 MB)
4.918 Factorio initialised
4.923 Impossible de charger les mods : core/lualib/util.lua:803: Recipe has no results: check-valve
stack traceback:
[C]: in function 'error'
core/lualib/util.lua:803: in function 'normalize_recipe_products'
quality/prototypes/recycling.lua:78: in function 'add_recipe_values'
quality/prototypes/recycling.lua:191: in function 'generate_recycling_recipe'
quality/data-updates.lua:5: in main chunk

Mods à désactiver :
• quality (2.0.13)

11 days ago
(updated 11 days ago)

Hi, just wanted to add to the bug report: The issue is no doubt that the mod still uses the short recipe format, e.g. {"iron-plate", 1}, which is obsolete in Factorio 2.0, instead of the full recipe format, {type = "item", name = "iron-plate", amount = 1}. "result" should also be replaced with "results" and use the same format as above (remember the extra curly brackets).

11 days ago
(updated 11 days ago)

Hello, thanks for this, that help, could you contact me on discord (Dae#5125) ?

something like that ?

{
    type = "item", 
    name = "iron-plate", 
    amount = 1
}
11 days ago
(updated 11 days ago)

Yeah, just like that! To be complete, here is an example:

{
    type = "recipe",
    name = "check-valve",
    energy_required = 2,
    enabled = false,
    ingredients = {
        {type = "item", name = "iron-plate", amount = 1},
        {type = "item", name = "iron-gear-wheel", amount = 1},
        {type = "item", name = "pipe", amount = 1}
    },
    results = {
        {type = "item", name = "check-valve", amount = 1}
    }
}

Unless I made some typo. 😉

11 days ago

(As for Discord, maybe, I barely use it.)

11 days ago

Yeah, just like that! To be complete, here is an example:

{
    type = "recipe",
    name = "check-valve",
    energy_required = 2,
    enabled = false,
    ingredients = {
        {type = "item", name = "iron-plate", amount = 1},
        {type = "item", name = "iron-gear-wheel", amount = 1},
        {type = "item", name = "pipe", amount = 1}
    },
    results = {
        {type = "item", name = "check-valve", amount = 1}
    }
}

Unless I made some typo. 😉

ok thanks, o don't understand why dev do that ...
update soon

11 days ago

It's probably for the sake of consistency, to make extensive modding simpler.

In any case, great! And I'm happy to help.

11 days ago

it's update, say me if you see other issue

if you have some minute, could you double check this ?
https://mods.factorio.com/mod/StreetLamps_Fix/downloads

(discord it's cool for discution ;) )

11 days ago

Oh, I just discovered, that it is you, yourself, who posted the bug report! I guess you wanted to port the mod to 2.0, but need help with it! I am afraid I can't help to that extend. I suggest checking out https://github.com/tburrows13/factorio-2.0-mod-porting-guide for additional advice.

The new version still doesn't work, even if no other mods are installed.

One important note: I took another brief look at the code, and I am afraid that with Factorio 2.0's new fluid system, it's probably not going to be possible to recreate the functionality of any valves but the check/non-return valve! (Fluidbox base_area, base_level, and height has been replaced by just volume.) Unfortunately, I don't know what to do about that...

11 days ago

It would seem that someone has actually already managed to re-create the functionality of the valves with different means about a day ago: https://mods.factorio.com/mod/configurable-valves.

New response