New issue
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
Future-proof 5.0.0 for fixing #4183 #7914
Comments
Does the patch work if the key isn't in the config? eg: on a new world |
I believe so, but to be honest, I haven't tested it. However, note that the C++ side checks the name in a loop that iterates through the existing names, therefore the name is guaranteed to exist; and the Lua side checks whether 'value' is not false, and nonexistent values are false in Lua. |
Tested now, and found/fixed a problem. On save, the UI was saving "nil" instead of "false" for mods that didn't have a setting yet. To strengthen the check, it now checks for both strings "false" and "nil", which will help migrating older worlds that might contain "nil". And the code now consistently saves either "false" or "true". |
So, this depends on concept approval of the #6898 changes, which already had 1 approval, please can core devs consider that? |
This is not strictly necessary for fixing #4183 actually. It is necessary if the approach in #6898 is used, namely to reuse So, the decision to adopt this approach, and therefore to implement the above patch, depends on the decision of whether to reuse |
I support the patch provided above. Checking for |
Yes so technically not a blocker but still needs consideration before 5.0.0. |
To test the patch (and merge if it gets enough approvals):
If the last command does not work, either git is too old, or I made a blunder on how exactly it's supposed to work. In that case:
That branch can now be pushed to MS-GitHub and turned into a PR if desired, or it can be cherry-picked into Master if pushing it directly is preferred. |
Why is this not a blocker? Without it, the opportunity of implementing an important bugfix in the 5.x series will be missed. |
It's only a blocker if the approach in #6898 is concept-approved, but i now see 2 core devs have expressed support for this approach (one support was hiding in emoticons, i wish core devs wouldn't use those for official support, it's so easy to miss). |
#8055 merged |
Issue type
Minetest version
Summary
#6898 is a compatibility-breaking change. Since it doesn't seem likely that it's accepted for 5.0.0, I suggest adding this future-proofing change, that will allow to seamlessly include #6898 into the 5.x series at a future point in time.
(Edited to fix the patch, to include 'nil' as false, and to not generate 'nil')
The text was updated successfully, but these errors were encountered: