GregorSamsanite / nullius

Nullius overhaul mod for Factorio
18 stars 21 forks source link

Compatibility with parametrized blueprints? #32

Open eiennohito opened 8 months ago

eiennohito commented 8 months ago

It would be nicer if parametrized blueprints mod e.g. https://mods.factorio.com/mod/parameterized-blueprints or https://mods.factorio.com/mod/blueprint-variables was compatible. It makes configuring train stations much much easier

eiennohito commented 8 months ago

Patch candidate for blueprint variables (as it works better for me):

if mods["blueprint-variables"] then
    data.raw["item-group"]["blueprint-variables"].order = "nullius-zzz"
    for i = 1,9 do
        data.raw["item"]["blueprint-variable-"..i.."-entity"].order = "nullius-a"
        data.raw["item"]["blueprint-variable-"..i.."-furnace-result"].order = "nullius-b"
        data.raw["item"]["blueprint-variable-"..i.."-stack-size"].order = "nullius-c"
        data.raw["fluid"]["blueprint-variable-"..i.."-fluid"].order = "nullius-d"
        data.raw["virtual-signal"]["blueprint-variable-"..i.."-circuit-1"].order = "nullius-f"
        data.raw["virtual-signal"]["blueprint-variable-"..i.."-circuit-2"].order = "nullius-g"
        data.raw["item-subgroup"]["blueprint-variable-"..i].order = "nullius-zzz-"..i
    end
end