-
Notifications
You must be signed in to change notification settings - Fork 26
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
Add aliases for old wrench node names #245
Comments
And maybe make it not register new node for each pickup ever when single item with some metadata is more than enough... still maybe should keep upgrade compatibility. Also: luanti-org/luanti#5686 |
See PR comments, probably should just close this and fix failing tests to ignore legacy stuff. |
I think checking
Yes, there will be no additional nodes or items registered at all, it will instead override
That's been sitting there for over 2 years with a bounty on it 👀 |
Just having single item even for just backwards compatibility would be good thing to do, there will be picked up items in inventories and those will need some compatibility shim unless keeping all the previous functionality. However if you're able to get this forward soon I think nodes added in recent update can be just removed and only older stuff kept or aliased to compatible item. Also I think some registered items been impossible to pick up using wrench for some time, if there's nodes where situation been like this long enough then I think those could also be just dropped. |
Yep, and there are multiple checks for values in the stored data.
Well I've already got it functional and backwards compatible (just got a few minor things to work out), so I'll probably be opening a PR tomorrow. All the nodes will get aliases when being registered, even the new ones, as that's the only way to ensure compatibility for nodes registered outside of the mod.
Do you know which ones? It would be good to check those if possible. |
Ones that were registered using legacy aliases, lv grinder being one of nodes that might have this problem (before latest wrench update, idk since when). edit. To extend this answer: any node that were registered with alias were not available for pickup since alias was introduced (nname is never alias because wrench did not resolve aliases): Lines 136 to 139 in b283cc6
If alias is old enough then it is highly unlikely that there's any picked up nodes anywhere and even if there is those special cases can still easily fix it by themselves. Some aliased technic nodes for example have not been available for 8 years, how many over 8 years old servers / worlds there's still available? |
Or simply break that compatibility and require aliases to be defined in mods that are registering nodes. Wrench is still more admin tool than tool for everyone, this should make it bit simpler to enforce upgrading to new system without adding a lot of useless definitions just because it is not known if those will be needed. |
So all aliases listed in linked PR were between 6 to 8 year old, closed that PR being useless legacy crap that should not be added again or supported in any way directly. If support for legacy stuff like that is wanted and someone wants to keep useless legacy stuff around then I think BuckarooBanzai's suggestion seems to be best option imo:
(so far I've not seen any such servers, private or public, if someone is really running one they can ask) |
Not since ac64e0a, which added a setting to allow crafting. But I realized something that makes this much simpler: it was never even possible to register nodes outside of the mod. |
See pandorabox-io/pandorabox-mods#1962
And #242
Basically add some legacy.lua with aliases for old wrench picked up nodes.
Also @OgelGames if you were going to actually fix wrench, maybe resolve aliases for new pickups instead of using whatever was given when node was registered...
The text was updated successfully, but these errors were encountered: