[2.0.15] Parameterized Blueprint variable issues
Posted: Tue Nov 12, 2024 12:22 pm
See as well: 121070
This is a very specific pair of issues which are certainly related to the same root bug, and I saw a topic about this sort of thing but it didn't mention all of the parts I've found, which is why I'm going to report this separately from that one:
Steps to reproduce:
>Import BP
>Edit parameterization
>change Variable L or C
>press enter or check box
>variable "chests per wagon"(C) is now irrecoverable without reloading full BP, even without saving BP
Steps to reproduce:
>Import BP
>paste BP
>choose two different settings for "Cargo wagons" and "chests per wagon" in dialog box(like 2 and 8)
>both will be set in constant combinator to the value of "chests per wagon", likely due to 4 being default for both.
Further info: The variables are set as L(cargo wagons) and C(chests per wagon), but both are set as 4 by default. Changing them in in the blueprint before placing makes the later one vanish, despite having its own separate variable. This occurs as soon as you hit enter or the green check box to accept the change to the parameters, and is permanent, even if you don't "save blueprint" afterward, forcing re-import of the BP to fix. Parameters shouldn't be saved if you don't save the BP, so that feels like maybe a separate issue.
Attached to this issue is that, when placing an unaltered version of this, any setting applied to "chests per wagon"(C) in the dialogue box will apply to both "Cargo Wagons"(L) and "chests per wagon"(C). It appears that having set both of the variables to the same number when saved, the later one has taken over the setting, but the earlier one eats the later one if you change one in the parameterized blueprint before placing. It seems like the system is overzealous in trying to force variables together.
There's no way to fix this with the blueprint as is, the maker would have to make it wholly anew and avoid having any variables that have the same value which seems a tad obnoxious in practical use.
This is a very specific pair of issues which are certainly related to the same root bug, and I saw a topic about this sort of thing but it didn't mention all of the parts I've found, which is why I'm going to report this separately from that one:
Steps to reproduce:
>Import BP
>Edit parameterization
>change Variable L or C
>press enter or check box
>variable "chests per wagon"(C) is now irrecoverable without reloading full BP, even without saving BP
Steps to reproduce:
>Import BP
>paste BP
>choose two different settings for "Cargo wagons" and "chests per wagon" in dialog box(like 2 and 8)
>both will be set in constant combinator to the value of "chests per wagon", likely due to 4 being default for both.
Further info: The variables are set as L(cargo wagons) and C(chests per wagon), but both are set as 4 by default. Changing them in in the blueprint before placing makes the later one vanish, despite having its own separate variable. This occurs as soon as you hit enter or the green check box to accept the change to the parameters, and is permanent, even if you don't "save blueprint" afterward, forcing re-import of the BP to fix. Parameters shouldn't be saved if you don't save the BP, so that feels like maybe a separate issue.
Attached to this issue is that, when placing an unaltered version of this, any setting applied to "chests per wagon"(C) in the dialogue box will apply to both "Cargo Wagons"(L) and "chests per wagon"(C). It appears that having set both of the variables to the same number when saved, the later one has taken over the setting, but the earlier one eats the later one if you change one in the parameterized blueprint before placing. It seems like the system is overzealous in trying to force variables together.
There's no way to fix this with the blueprint as is, the maker would have to make it wholly anew and avoid having any variables that have the same value which seems a tad obnoxious in practical use.