Minetest setting warnings

Modern Hippie
Member
 
Posts: 115
Joined: Wed Oct 29, 2014 04:35

Minetest setting warnings

by Modern Hippie » Fri Jun 30, 2017 19:39

Heyhoo,

in the last few days and weeks I got following warning in the server logs:

Code: Select all
2017-06-30 14:09:46: WARNING[Server]: WARNING: minetest.setting_* functions are deprecated.  Use methods on the minetest.settings object.


What does this mean and what to do to fix them?

Thanks a lot for your help! :)

Greetings minehippie
No longer active with this account! Please PM me on my new account "Wolfshippie"!
 

User avatar
BBmine
Member
 
Posts: 3475
Joined: Sun Jul 12, 2015 22:51
Location: USA
GitHub: BBmine
IRC: BBmine
In-game: Baggins
 

User avatar
rubenwardy
Moderator
 
Posts: 5835
Joined: Tue Jun 12, 2012 18:11
Location: United Kingdom
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy

Re: Minetest setting warnings

by rubenwardy » Sat Jul 01, 2017 12:49

If it's not your mod, ignore it

If it's your mod fix it by replacing minetest.setting_get with minetest.settings:get() etc
 

Modern Hippie
Member
 
Posts: 115
Joined: Wed Oct 29, 2014 04:35

Re: Minetest setting warnings

by Modern Hippie » Sat Jul 01, 2017 15:20

BBmine wrote:Does it crash your server, or is it just there?


It's just there.

rubenwardy wrote:If it's not your mod, ignore it

If it's your mod fix it by replacing minetest.setting_get with minetest.settings:get() etc


It's not a mod from me. But I will try to replace it. I can't really ignore it, cause it spams hundreds and thousands lines in the log.

Thanks anyways, I will try this out :)
No longer active with this account! Please PM me on my new account "Wolfshippie"!
 

Sokomine
Member
 
Posts: 3874
Joined: Sun Sep 09, 2012 17:31
GitHub: Sokomine

Re: Minetest setting warnings

by Sokomine » Sat Jul 01, 2017 16:31

I fixed that at least partly in mg_villages - resulting in the mod no longer working with older versions :-(. And the messages from other mods still scroll happily and hide the real debug messages I'm after. As an extra bonus, the warnings don't give a hint about mod and line that caused the warning in the first place. Was the code secretly invaded by the offtopic posters? :/
A list of my mods can be found here.
 

User avatar
ExeterDad
Member
 
Posts: 1717
Joined: Sun Jun 01, 2014 20:00
Location: New Hampshire U.S.A
In-game: ExeterDad

Re: Minetest setting warnings

by ExeterDad » Sat Jul 01, 2017 16:49

Until I fixed a kabillion lines of all the mods on HOMETOWN, our log files were way over a gig a day.
But until I took the time to fix them, I put:
Code: Select all
deprecated_lua_api_handling = legacy

In the minetest.conf. It completely silenced them without having to fix.
 

Modern Hippie
Member
 
Posts: 115
Joined: Wed Oct 29, 2014 04:35

Re: Minetest setting warnings

by Modern Hippie » Sat Jul 01, 2017 18:48

ExeterDad wrote:Until I fixed a kabillion lines of all the mods on HOMETOWN, our log files were way over a gig a day.
But until I took the time to fix them, I put:
Code: Select all
deprecated_lua_api_handling = legacy

In the minetest.conf. It completely silenced them without having to fix.


You mean... this would also do it? Without fixing
a kabillion lines of all the mods

? Or should I better do both?
No longer active with this account! Please PM me on my new account "Wolfshippie"!
 

Sokomine
Member
 
Posts: 3874
Joined: Sun Sep 09, 2012 17:31
GitHub: Sokomine

Re: Minetest setting warnings

by Sokomine » Sat Jul 01, 2017 18:59

As a user or server operator you ought to be fine with disabling those warnings. As a mod developer...there's a reason for these warnings I guess. Just wish they'd be less spammy and more specific.
A list of my mods can be found here.
 

Modern Hippie
Member
 
Posts: 115
Joined: Wed Oct 29, 2014 04:35

Re: Minetest setting warnings

by Modern Hippie » Sun Jul 02, 2017 11:43

ExeterDad wrote:
Code: Select all
deprecated_lua_api_handling = legacy


It worked. Thanks for the help! :)
No longer active with this account! Please PM me on my new account "Wolfshippie"!
 

User avatar
christoferlevich
Member
 
Posts: 323
Joined: Thu Dec 01, 2016 23:44
Location: Athol, Massachusetts
GitHub: ChristoferL

Re: Minetest setting warnings

by christoferlevich » Thu Aug 31, 2017 10:38

So my map is having serious loading issues. I mean - it seems like huge chunks will delay in loading several seconds (as long as 10-15). This obviously destroys game play. I went into settings and turned OFF legacy and went to LOG, hoping to find out why...

2017-08-31 06:21:24: WARNING[Server]: WARNING: minetest.setting_* functions are deprecated. Use methods on the minetest.settings object.
2017-08-31 06:21:24: WARNING[Server]: The use of vel is deprecated. Use velocity instead
2017-08-31 06:21:24: WARNING[Server]: The use of acc is deprecated. Use acceleration instead
2017-08-31 06:21:24: WARNING[Server]: The use of vel is deprecated. Use velocity instead
2017-08-31 06:21:24: WARNING[Server]: The use of acc is deprecated. Use acceleration instead


WARNING[Server]: core.env:[...] is deprecated and should be replaced with core.[...]


So how do I determine where the error is? When I turn off all mods the world runs much better. I am adding one mod at a time to see what happens, but is there a better way to identify the issues?

BTW - I work with minetest in a closed network and could careless about backwards compatibility older versions as I am in complete control of the client sides.
everything can be a learning experience...
 

KCoombes
Member
 
Posts: 412
Joined: Thu Jun 11, 2015 23:19
Location: SW Florida, USA
In-game: Knatt

Re: Minetest setting warnings

by KCoombes » Sat Sep 02, 2017 14:50

Sokomine wrote:I fixed that at least partly in mg_villages - resulting in the mod no longer working with older versions :-(. And the messages from other mods still scroll happily and hide the real debug messages I'm after. As an extra bonus, the warnings don't give a hint about mod and line that caused the warning in the first place. Was the code secretly invaded by the offtopic posters? :/


I agree completely - would it really be so hard to identify the mod that caused the warning/error/whatnot? Obviously, this is used to identify missing mod dependencies, so why not point the finger at the mod causing warnings/errors as well? Would definitely make things easier for developers/testers.
 

User avatar
paramat
Developer
 
Posts: 3435
Joined: Sun Oct 28, 2012 00:05
Location: UK
GitHub: paramat
IRC: paramat

Re: Minetest setting warnings

by paramat » Tue Sep 05, 2017 04:45

christoferlevich wrote:So my map is having serious loading issues. I mean - it seems like huge chunks will delay in loading several seconds (as long as 10-15). This obviously destroys game play. I went into settings and turned OFF legacy and went to LOG, hoping to find out why...

Deprecated Lua code will not cause your issue, the messages are harmless and the code will still run correclty, it's likely caused by a mod. Do you mean the speed of generating new areas of world, or speed of loading pre-existing areas of world? What mods are you using?
 

User avatar
christoferlevich
Member
 
Posts: 323
Joined: Thu Dec 01, 2016 23:44
Location: Athol, Massachusetts
GitHub: ChristoferL

Re: Minetest setting warnings

by christoferlevich » Tue Sep 05, 2017 23:46

Well, I had several dozen it seems. I turned them ALL off and started adding one by one - eliminating at least half. In addition, I trimmed down my personal hacks to bare minimums (much lower resolutions). I do look forward to a day when things progress to where we can have much larger textures... but today is apparently not yet that day. :)

I was having trouble with pre-existing areas.

Never the less - I am expecting the current setup to work wonderfully. I think a few things that might help would be turning off worldedit when running the server... turning off unified inventory (does it hurt speed having to load so much? It can lag in those screens... I'd rather do without for better gameplay).

I stopped using adv trains... technic, a few mobs (I wish there was an "official mob' to work with, as it seems confusing to someone searching like myself). I dropped most of home decor as well, keeping only the things I know the kids were looking to use again.

I am currently hoping the vehicles mod holds but last year the helicopter would crash the server... but with so many mods dropped, maybe it will work out? I've tried to reduce the number of mobs spawned at once... limited animated nodes (dropped bees... plasma node thing?... even blinky plants can be an issue if over used.
everything can be a learning experience...
 

User avatar
Linuxdirk
Member
 
Posts: 2177
Joined: Wed Sep 17, 2014 11:21
Location: Germany
In-game: Linuxdirk

Re: Minetest setting warnings

by Linuxdirk » Wed Sep 06, 2017 05:20

christoferlevich wrote:I stopped using adv trains... technic, a few mobs (I wish there was an "official mob' to work with, as it seems confusing to someone searching like myself). I dropped most of home decor as well, keeping only the things I know the kids were looking to use again.

Those are the three most complex and complicated mods.
 

User avatar
christoferlevich
Member
 
Posts: 323
Joined: Thu Dec 01, 2016 23:44
Location: Athol, Massachusetts
GitHub: ChristoferL

Re: Minetest setting warnings

by christoferlevich » Fri Sep 08, 2017 09:46

Linuxdirk wrote:
christoferlevich wrote:I stopped using adv trains... technic, a few mobs (I wish there was an "official mob' to work with, as it seems confusing to someone searching like myself). I dropped most of home decor as well, keeping only the things I know the kids were looking to use again.

Those are the three most complex and complicated mods.


I am sad to report that in the process of re-adding mods, 'areas' is causing a lot of the redraw delay... at least 'areas' combined with my motley crew of mods... still working things around, but I am now wondering what might I do for protection?
everything can be a learning experience...
 

User avatar
Festus1965
Member
 
Posts: 878
Joined: Sun Jan 03, 2016 11:58
Location: Thailand - Chiang Mai (+5-6h to MEZ)
In-game: Thomas Explorer

Re: WARNING: minetest.setting_* functions are deprecated

by Festus1965 » Thu Jan 18, 2018 05:31

rubenwardy wrote:If it's not your mod, ignore it

If it's your mod fix it by replacing minetest.setting_get with minetest.settings:get() etc


or maybe can be the one before after loaded ?
Code: Select all
[Biome Lib] Loaded
... same ...
2018-01-18 13:09:43: WARNING[Main]: Field "tile_images": Deprecated; new name is "tiles".
... x times until
[OK] Mesecons

This issue ("tile_images" sea at WARNING"tile_images" Deprecated "tiles") is Solved, so I can start to look for the on in this Thread (minetest.setting_*). I learn ... and get though
Server: still up, see some gamer - but there is a new 1st important thread "climate change" for me. Something I know since 1992 - had seen the melting glacier in Switzerland.
 

User avatar
SAMIAMNOT
Member
 
Posts: 416
Joined: Wed Sep 03, 2014 00:51
Location: Desert
In-game: notanewbie

Re: Minetest setting warnings

by SAMIAMNOT » Tue Jul 03, 2018 00:28

How do you disable these messages? I'm playing Minetest on Android and the warnings are really annoying.
I test mines.
 


Return to Problems



Who is online

Users browsing this forum: Google [Bot] and 1 guest