Page 1 of 1

[2.0.55] Blueprint parameters not calculating correctly.

Posted: Sat Jun 07, 2025 2:16 pm
by Pluranium_Alloy
I have a blueprint with parameters 0 through 6, where 1 through 6 are the ingredients of 0. all have different default values. Nuclear reactor used as testing recipe.
entering "sign(p1_r-10000)" into one of the formula boxes gives -1.
entering "sign(p6_r-10000)" into another one of the formula boxes gives 0 (as unused parameters apparently have a rocket capacity of 10000).
entering "sign(p1_r-10000)+sign(p6_r-10000)" into a third formula box gives 0. -1+0 does not equal 0 so this is incorrect.
assigning the first two to variables a and b respectively and entering "a+b" into a fourth box gives -1, which is correct.


The blueprint I've been using for testing: 0eNqlleFqpDAQx98ln67ULRqNW4U+SSkSdWwDmtgYS5fFd78Z3RUs3nLpKqgZZ37zH5OJZ1a2I/RWacfyM1OV0QPLX89sUO9atmTTsgOWMwufIwwO7KH6wDubAqZ0Dd8sj6a3gIF2yilYgufBqdBjV4JFh+BfkID1ZsA4oykTsg48yZ5EwE4sf34SmAMFOWvaooQP+aWMJb9K2WpUruhMDYVpCtODlQsEU13fYmQ9owvQsmyhZnkj2wEQepFRNKpFLQMxB6jId9F/LSxgq8fGeqmmlxYfqJoIK/kcZYtVo10b2+G3I/Ed+TiSzV5mw0gfOgrDKViBfAfI/YB8A4x3gLEfMN4Akx1g4gdMNkCxAxR+QLEBpjvA1A+YboDHHWDoOcvZ9IYndcfKWFaSO/VEVjU642Wbg0TccKClpvS7hVphmx1M4xfO7wuP7wtP7gsX94Wn/x9+2bqC60POogxHDc752Eoc0v74p48KnJAQj4fHxZCuBvSuoQdcTbQWnB3hJh77Y8MnkicimhFf0ira7tAgbyr2pPOf9HKH/uvy4x/ly8dyh4CdpBx0lHz9a6EmbKt58xcpz5IsE8eQi2PGp+kvNaw9GA==

Re: [2.0.55] Blueprint parameters not calculating correctly.

Posted: Tue Jun 10, 2025 9:05 pm
by akulla
On my end the variables aren't even being recognized as valid by the formula editor. This happens in blueprints I've used before, but using OP's blueprint, I see:
06-10-2025, 14-04-53.png
06-10-2025, 14-04-53.png (1.05 MiB) Viewed 549 times

Re: [2.0.55] Blueprint parameters not calculating correctly.

Posted: Tue Jun 10, 2025 9:09 pm
by akulla
It gets stranger: despite the formula editor saying my variables are wrong, I can save it, and paste it and it calculates fine. :?:

Re: [2.0.55] Blueprint parameters not calculating correctly.

Posted: Tue Jun 10, 2025 9:25 pm
by akulla
Ah looks like my problems are assigned here viewtopic.php?t=128863. OP's issue seems unrelated, my bad.