[Kovarex] [2.0.9] Blueprint parameters with same value are collapsed to one (MR)

Things that we don't consider worth fixing at this moment.
Inercia
Burner Inserter
Burner Inserter
Posts: 5
Joined: Wed Oct 23, 2024 9:00 pm
Contact:

[Kovarex] [2.0.9] Blueprint parameters with same value are collapsed to one (MR)

Post by Inercia »

The problem
I created a blueprint with one constant combinator which outputs A with a value of 4, and B, also with a value of 4.
10-23-2024, 19-14-50.png
10-23-2024, 19-14-50.png (20.82 KiB) Viewed 1220 times
I want to parameterize the blueprint in the following way:
  • Signal A always has a value of 4.
  • Signal B it's a parameter that has a default value of 4, meaning it can change when stamping down the blueprint.
When I try to parameterize the values, I only see one '4', related to BOTH signals, so I can't vary one without varying the other.
10-23-2024, 19-18-53.png
10-23-2024, 19-18-53.png (22.28 KiB) Viewed 1220 times
I EXPECTED the values to be signal based, which it isn't.
Also tried
  • Setting B to be 1000.
  • Setting B to be a parameter and changing the value 1000 to 4 on the blueprint parametrisation screen.
It also didn't worked, it had the same effect as setting them both as 4 on the constant combinator.
10-23-2024, 19-24-17.png
10-23-2024, 19-24-17.png (20.91 KiB) Viewed 1220 times
10-23-2024, 19-25-36.png
10-23-2024, 19-25-36.png (25.87 KiB) Viewed 1220 times
nova4x
Burner Inserter
Burner Inserter
Posts: 18
Joined: Fri Jun 21, 2024 5:09 pm
Contact:

Re: [2.0.9] Blueprint parameters with same value are collapsed to one.

Post by nova4x »

I also agree this should be remedied, it's not very intuitive to need to change two instance of 4 to separate numbers before blueprinting. A possible idea would be to allow players to select values that are the same (or even different since it would be intentional) to consolidate into a single value. You should also be able to split values are any time.
DragonMech
Manual Inserter
Manual Inserter
Posts: 3
Joined: Fri Oct 25, 2024 7:54 am
Contact:

Re: [2.0.9] Blueprint parameters with same value are collapsed to one.

Post by DragonMech »

[2.0.10]Variation on the same bug/more details
To some extent I believe this is working as expected (more of an improvement request than a bug report), and it makes some more sense for the Signal Types to be combined (Eg changing an iron ore station with circuit stuff to be able to set the item, every instance of "iron ore" should be changed) but it makes less sense for the numbers. I agree with nova4x that it should preferably not consolidate the numbers initially but have the option to consolidate and split the parameters (signals too) at any time.

Where I feel this truly becomes a bug, rather than just a poorly designed feature, is that I thought I had found a way around this. I set all instances of numbers to different values, then when editing them as parameters changed the value to be the same (as a default). It appeared to work, the blueprint saved and even prompted for the different parameter numbers, but apparently they were consolidated in the background, despite what was displayed. In detail:
1 - plain blueprint
Working (blueprint of constant combinator with 3 signals set, values 1,2,3):
Screenshot 2024-10-25 180305.png
Screenshot 2024-10-25 180305.png (100.27 KiB) Viewed 1147 times

2 Values changed to be parameters
Screenshot 2024-10-25 180631.png
Screenshot 2024-10-25 180631.png (116.6 KiB) Viewed 1147 times
Placing blueprint, prompt to change or use default values:
Screenshot 2024-10-25 180710.png
Screenshot 2024-10-25 180710.png (23.25 KiB) Viewed 1147 times
Changed the values:
Screenshot 2024-10-25 180857.png
Screenshot 2024-10-25 180857.png (21.46 KiB) Viewed 1147 times
Applied as expected:
Screenshot 2024-10-25 181011.png
Screenshot 2024-10-25 181011.png (90.09 KiB) Viewed 1147 times

3 - changed so each parameter is set to value of 1
Appears to bet set:
Screenshot 2024-10-25 181401.png
Screenshot 2024-10-25 181401.png (114.08 KiB) Viewed 1147 times
Prompt to change or use default values (as previously) but appear to have same default value:
Screenshot 2024-10-25 181514.png
Screenshot 2024-10-25 181514.png (19.43 KiB) Viewed 1147 times
Changed values appear to be accepted:
Screenshot 2024-10-25 181645.png
Screenshot 2024-10-25 181645.png (19.91 KiB) Viewed 1147 times
Values as applied, the parameter last in the list (Wood) is applied to each when the selected values are expected:
Screenshot 2024-10-25 181734.png
Screenshot 2024-10-25 181734.png (90.75 KiB) Viewed 1147 times

4 - Attempt to fix the blueprint
Attempt to change values to be different again though hovering over the “Coal” parameter now shows it is used for all items and nothing shows if hovering over other values
Screenshot 2024-10-25 182309.png
Screenshot 2024-10-25 182309.png (142.97 KiB) Viewed 1147 times
Confirming the changes, then opening the parametrise window now shows that only the “Coal” parameter remains and when used it is applied to the others as would be expected at this point. At least the blueprint is now in a form that works as expected.

(had a couple more screenshots but it appears to be limited to 10)
kovarex
Factorio Staff
Factorio Staff
Posts: 8207
Joined: Wed Feb 06, 2013 12:00 am
Contact:

Re: [Kovarex] [2.0.9] Blueprint parameters with same value are collapsed to one.

Post by kovarex »

Hello.
This was a design choise, and I prefer it to stay this way.
The id parameters are also all merged into one place for a good reason, to be able to change them all at once.
With numbers, it would get all clunky and complicated having to somehow identify where the number came from and work with it separately, especially when you would have to have a tools to merge and unmerge them (as sometimes you want them merged).

For that reason, I would leave it as it is, and if you want to differentiate the numbers in the parametrised blueprints, you just have to give separate numbers, which is always possible.
Skjolbir
Inserter
Inserter
Posts: 20
Joined: Thu Apr 23, 2020 2:04 pm
Contact:

Re: [Kovarex] [2.0.9] Blueprint parameters with same value are collapsed to one.

Post by Skjolbir »

kovarex wrote: Sun Oct 27, 2024 9:28 pm For that reason, I would leave it as it is, and if you want to differentiate the numbers in the parametrised blueprints, you just have to give separate numbers, which is always possible.
I disagree. I have just tried to create a blueprint for a train station where the user is asked upon placement if they wish for the station to fill a train either fully, or a custom amount. For a full cargo, I advise leaving the value as 0, which is what I want the default number to be. I then use some decider and arithmetic combinators to use the full capacity of a train, or the custom request to decide when to send the train a signal to tell it to depart.
One of these combinators checks if the custom request signal is 0 or not with "Q > 0" as a condition.
Now, I am forced to default the custom request amount to some other value than 0, because if the user does happen to set a custom request amount, then it will break this combinator.


This is one example where I could probably work around the issue, but as far as I can think, any blueprint where there are signal values which absolutely must remain static for the function of a larger circuit, which happen to be the same value that you want to provide to the user as a default value upon blueprint placement, will have issues.
Of course, I could set the default values to something very unique to avoid this question, such as using 10001 instead of 0 in the above example, but this means the user will have to change the value to 0 themselves probably very often, and will likely need some instruction to the user so they know that 10001 is just a dummy number, and actually they should be setting it to 0 for a specific type of behaviour.

If there was some way to tell a signal value to instead of being 0, be NULL, and then in the parameterisation menu, all NULL values remain separate and offer us a default value to offer the blueprint user without messing with other values that are the same number, that would be great.
Skjolbir
Inserter
Inserter
Posts: 20
Joined: Thu Apr 23, 2020 2:04 pm
Contact:

Re: [Kovarex] [2.0.9] Blueprint parameters with same value are collapsed to one.

Post by Skjolbir »

Okay, I found a work-around.
For the values that you NEED to remain static, set their value to something very unique, in this case 1000, 1001, then in the formula, write in what they actually should be. They will be initialised to the formula value no matter what.
So in this example, I want signal A to always be 0, signal B to always be 1, and signal C to present the user with the default value of 1, but if they change it to something else, then signal B should stay at value 1.

While I am happy this workaround exists, its a massive hassle, more so than I think not having values be bundled together would be sir Kovarex. I imagine this is BP behaviour a lot of blueprint designers would like to create, but this workaround is not intuitive as all, as you have to set values in circuitry to non-intuitive numbers like 1001, and then change them in the formula to 1 in the parameterisation menu. Esoteric workarounds that require a lot of hassle and effort are not good in my opinion.
10-28-2024, 21-03-20.png
10-28-2024, 21-03-20.png (1.82 MiB) Viewed 971 times
Inercia
Burner Inserter
Burner Inserter
Posts: 5
Joined: Wed Oct 23, 2024 9:00 pm
Contact:

Re: [Kovarex] [2.0.9] Blueprint parameters with same value are collapsed to one.

Post by Inercia »

This design choice makes default values impossible, it's limiting. Many players will (or did) try to implement it, only to realize it's impossible, and become frustrated of a feature that is, otherwise, awesome.

I love the circuit network because it's about building something complex out of simple units. When something is "not possible", or you know that you just have to throw more combinators at the problem, or you expected it to be impossible.

In contrast, we have blueprint parametrisation, this complex and powerful tool that you EXPECT will cover all the base use cases, but it then falls short.
Skjolbir
Inserter
Inserter
Posts: 20
Joined: Thu Apr 23, 2020 2:04 pm
Contact:

Re: [Kovarex] [2.0.9] Blueprint parameters with same value are collapsed to one.

Post by Skjolbir »

Inercia wrote: Wed Oct 30, 2024 3:08 pm This design choice makes default values impossible
Please see the comment literally right above yours where I show it is not impossible, just unintuitive and a bit of a pain to set up. I still wish kovarex would let us break up combined values if we wish, but its not impossible. I can see his point though, being able to tie values together is a valuable tool. I simply think being able to split them up is also just as valuable.
Inercia
Burner Inserter
Burner Inserter
Posts: 5
Joined: Wed Oct 23, 2024 9:00 pm
Contact:

Re: [Kovarex] [2.0.9] Blueprint parameters with same value are collapsed to one.

Post by Inercia »

As far as I know, the method you presented breaks if you want a fourth parameter (D), also with a default value of 1. That's why I still consider "default values" something impossible.
I found this workaround a while ago and didn't manage to get it working with an arbitrary amount of parameters with the same default value.
pindab0ter
Burner Inserter
Burner Inserter
Posts: 9
Joined: Fri Nov 01, 2024 12:27 pm
Contact:

Re: [Kovarex] [2.0.9] Blueprint parameters with same value are collapsed to one.

Post by pindab0ter »

The workaround I use is to set unique arbitrary numbers in the value field to make sure they don’t collapse. I then set the actual desired value in the formula field.

I do think this should not be necessary, though.
Loewchen
Global Moderator
Global Moderator
Posts: 9307
Joined: Wed Jan 07, 2015 5:53 pm
Contact:

Re: [Kovarex] [2.0.9] Blueprint parameters with same value are collapsed to one.

Post by Loewchen »

If you want to discuss this further open a gameplay help topic or make a feature request please.
Locked

Return to “Won't fix.”