[2.0.55] Blueprint parameters not calculating correctly.

Post your bugs and problems so we can fix them.
Pluranium_Alloy
Burner Inserter
Burner Inserter
Posts: 11
Joined: Sun Oct 06, 2019 8:35 pm
Contact:

[2.0.55] Blueprint parameters not calculating correctly.

Post 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==
akulla
Inserter
Inserter
Posts: 21
Joined: Thu Apr 06, 2017 11:14 pm
Contact:

Re: [2.0.55] Blueprint parameters not calculating correctly.

Post 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 287 times
akulla
Inserter
Inserter
Posts: 21
Joined: Thu Apr 06, 2017 11:14 pm
Contact:

Re: [2.0.55] Blueprint parameters not calculating correctly.

Post 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. :?:
akulla
Inserter
Inserter
Posts: 21
Joined: Thu Apr 06, 2017 11:14 pm
Contact:

Re: [2.0.55] Blueprint parameters not calculating correctly.

Post by akulla »

Ah looks like my problems are assigned here viewtopic.php?t=128863. OP's issue seems unrelated, my bad.
Post Reply

Return to “Bug Reports”