We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Given an item with this recipe:
<Fabricate suitablefabricators="fabricator" requiredtime="10"> <RequiredSkill identifier="medical" level="30"/> <RequiredItem identifier="plastic"/> <RequiredItem identifier="rubber"/> <RequiredItem identifier="oxygentank"/> </Fabricate>
It's currently impossible to craft it with an oxygen tank that was refilled in the oxygen generator, due to floating point inaccuracy.
This can be fixed by comparing the two values with a margin of error (epsilon).
Relevant lines: https://github.com/Regalis11/Barotrauma/blob/b17019db95865cc0551aa3a5a967e885a7f8b50d/Barotrauma/BarotraumaShared/SharedSource/Items/Components/Machines/Fabricator.cs#L605-L617
No response
Happens every time I play
0.18.15.0
Windows
The text was updated successfully, but these errors were encountered:
Fixed in https://github.com/Regalis11/Barotrauma-development/commit/bb198cc0ba070357eebd842988f0c68779b58629
Sorry, something went wrong.
Tested against dev commit https://github.com/Regalis11/Barotrauma-development/commit/17a4e29619e49adc0a329be654296cf8f8ddc5d6, works correctly. closing.
Tested in multiplayer by using recharged oxygen tanks with a custom recipe with no observable issues.
Note: this is inside the current unstable build 0.19.1.0
Regalis11
No branches or pull requests
Disclaimers
What happened?
Given an item with this recipe:
It's currently impossible to craft it with an oxygen tank that was refilled in the oxygen generator, due to floating point inaccuracy.
This can be fixed by comparing the two values with a margin of error (epsilon).
Relevant lines: https://github.com/Regalis11/Barotrauma/blob/b17019db95865cc0551aa3a5a967e885a7f8b50d/Barotrauma/BarotraumaShared/SharedSource/Items/Components/Machines/Fabricator.cs#L605-L617
Reproduction steps
No response
Bug prevalence
Happens every time I play
Version
0.18.15.0
-
No response
Which operating system did you encounter this bug on?
Windows
Relevant error messages and crash reports
No response
The text was updated successfully, but these errors were encountered: