[kovarex] [2.0.10] Parameter not being set when request value result is greater than the maximum request

This subforum contains all the issues which we already resolved.
cschwanekamp
Manual Inserter
Manual Inserter
Posts: 2
Joined: Fri Oct 25, 2024 2:17 pm
Contact:

[kovarex] [2.0.10] Parameter not being set when request value result is greater than the maximum request

Post by cschwanekamp »

When making a parameterized blueprint to set request limits based on a formula using arithmetic, the parameter is not being set properly when the maximum value is not infinite.

I set the blue chest request to 50 solar panels and the maximum is infinite:
10-25-2024, 10-37-40.png
10-25-2024, 10-37-40.png (245.8 KiB) Viewed 928 times

I set the green chest request to 50 solar panels and the maximum is also 50:
10-25-2024, 10-24-18.png
10-25-2024, 10-24-18.png (214.77 KiB) Viewed 928 times

I make a blueprint of this using a formula to calculate the request based on stack size:
10-25-2024, 10-26-06.png
10-25-2024, 10-26-06.png (26.46 KiB) Viewed 928 times

When I paste the blueprint, the blue chest works as expected:
10-25-2024, 10-26-53.png
10-25-2024, 10-26-53.png (23.06 KiB) Viewed 928 times

The green chest doesn't set the ingredient properly nor the calculated number:
10-25-2024, 10-27-16.png
10-25-2024, 10-27-16.png (16.92 KiB) Viewed 928 times

Furthermore, if you set the formula to a constant:
10-25-2024, 10-47-52.png
10-25-2024, 10-47-52.png (24.98 KiB) Viewed 928 times

The ingredient is set and the minimum is set, but I would expect the maximum to match the 42 in this case:
10-25-2024, 10-49-00.png
10-25-2024, 10-49-00.png (17.87 KiB) Viewed 928 times

Example blueprint:

Code: Select all

0eNrNUttqg0AQ/Zd5LGtQGw0K/ZISxMvYLuiu2UuJiP/eGTVC04S+FkHW4dzmuBNUncfBSOUgn0DWWlnI3yew8kOVHc9U2SPkUPm2RRPUn2gdzAKkavAKeTSLB2CDF0+4B/h4PgtA5aSTuDotH2OhfF+hIUHxTETAoC3xtGIn0gri6JAIGImUHhLy2BhFKzuiWYZZrJmxWt0yC9gRP6ab8VAaOrBxSKYXX3YUkOZKm57WFFDrnjFOU154WwaeC0zC+UwPV3K3VSwe9vh7pSj7bysJ6Mtrcbch/cRdcrV048BGsiEuvZ5YBnTBmn3hv3MsXW7SW5fidsghYeWWqL4r2TEs7EvEswYHpAo4sTMeOa502HP9+3UX8EXZlyRJGmfHLEuO4SlNT6/z/A0SRgcn
Last edited by cschwanekamp on Fri Oct 25, 2024 6:40 pm, edited 2 times in total.
cschwanekamp
Manual Inserter
Manual Inserter
Posts: 2
Joined: Fri Oct 25, 2024 2:17 pm
Contact:

Re: [2.0.10] Parameter not being set when request value result is greater than the maximum request

Post by cschwanekamp »

Just to hone this in a little more, it seems the issue occurs if the formula modifies the request value to be greater than the maximum. In my previous example I had the maximum value set to 50 and then set the formula to a constant of 42 (less than 50) and it set the minimum to 42 and left the maximum at 50 as I specified. If I set the formula to the constant 51 it breaks again (greater than the max of 50).
kovarex
Factorio Staff
Factorio Staff
Posts: 8207
Joined: Wed Feb 06, 2013 12:00 am
Contact:

Re: [kovarex] [2.0.10] Parameter not being set when request value result is greater than the maximum request

Post by kovarex »

Hello, the upper limit of the logistic slot wasn't even considered by the parametrisation so far (it was always meant to be the "prototype version" at that point).
I added the upper limited to the parametrisation, and it seems to work ok.
Post Reply

Return to “Resolved Problems and Bugs”