minetest.env:
Is legacy, get rid of it. Replace with "minetest." before problems arise.
The "minetest.setting_*" but also setpos, getvelocity and some more functions are deprecated, former are logged since 0.4.16, latter since 5.0.0-dev.
Your mods will still work in 5.0.0-dev, but in a future release these deprecated functions might be dropped in order to clean up the modding API. So please consider updating your mods when you've got some free time to ensure they will also run fine on future Minetest releases.
To ease the update process, here's a script which only replaces equivalent functions, functions which were simply renamed:
MT-replace-deprecated.sh (instructions included)
This script may misbehave in certain situations, so I highly recommend you to check the changes using "git diff" or a similar application.
But that's not all of it. The script does not / cannot handle non-equivalent function changes (such that behave differently or were removed). To name some of them:
ObjectRef:get_entity_name, ObjectRef:*et_look_pitch, ObjectRef:*et_look_yaw
To log these calls in your terminal (if open) and "debug.txt" file, change the minetest.conf setting "deprecated_lua_api_handling" to "log".
Cheers! Keep on modding ;)
[5.0.0] Deprecated function calls being logged now
- Krock
- Developer
- Posts: 4649
- Joined: Thu Oct 03, 2013 07:48
- GitHub: SmallJoker
- Location: Switzerland
- Contact:
[5.0.0] Deprecated function calls being logged now
Look, I programmed a bug for you. >> Mod Search Engine << - Mods by Krock - DuckDuckGo mod search bang: !mtmod <keyword here>
-
- Member
- Posts: 999
- Joined: Sat Aug 19, 2017 21:49
- GitHub: Chemguy99
- In-game: Chem Nyx
- Location: My Basement's Attic
Re: Deprecated function calls being logged now
What kinds of mods will be affected? Will it change tools? Armor? Food items? Gun mods?
What is SCP-055?
- Andrey01
- Member
- Posts: 2574
- Joined: Wed Oct 19, 2016 15:18
- GitHub: Andrey2470T
- In-game: Andrey01
- Location: Russia, Moscow
Re: Deprecated function calls being logged now
Those ones that use these functions. It will not change stuff, they won`t just work (calls errors those functions are not defined).Chem871 wrote:What kinds of mods will be affected? Will it change tools? Armor? Food items? Gun mods?
- Wuzzy
- Member
- Posts: 4786
- Joined: Mon Sep 24, 2012 15:01
- GitHub: Wuzzy2
- IRC: Wuzzy
- In-game: Wuzzy
- Contact:
Re: [5.0.0] Deprecated function calls being logged now
Die, minetest.env, die, die, die!
We have to kill it with fire and nuke it from orbit. It's the only way to be sure. >:-]
We have to kill it with fire and nuke it from orbit. It's the only way to be sure. >:-]
Who is online
Users browsing this forum: No registered users and 1 guest