Page 1 of 1

Lua Errors...

PostPosted: Mon Aug 17, 2015 01:45
by Tmanyo
So today this just out of the blue started to happen. All of the mods I have installed for singleplayer use show lua errors in the debug and won't let me get on the game. I think it is false and the game is full of it. I am certainly not fixing them all. Please help, I am using Minetest 0.4.12.

Re: Lua Errors...

PostPosted: Mon Aug 17, 2015 06:39
by TenPlus1
It would help if you list the mods you are using...

Re: Lua Errors...

PostPosted: Mon Aug 17, 2015 07:14
by rubenwardy
And also give the errors you receive.

Re: Lua Errors...

PostPosted: Tue Aug 18, 2015 00:25
by Tmanyo
So I notice at the bottom of the Error from Lua message they all say (a boolean value)... Here is the debug text from 3 of the many mods that no longer work, btw none of them seem to work, all have the same LUA error.

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
Irrlicht log: Irrlicht Engine version 1.8.1
Irrlicht log: Professional Edition  (Build 9200)
Irrlicht log: Using renderer: OpenGL 3.3.0
Irrlicht log: Quadro NVS 290/PCIe/SSE2: NVIDIA Corporation
Irrlicht log: OpenGL driver version is 1.2 or better.
Irrlicht log: GLSL version: 3.3
Irrlicht log: Resizing window (800 600)
20:14:53: ERROR[main]: Invalid character ' ' found in setting name
20:14:53: ERROR[main]: Invalid character ' ' found in setting name
20:14:53: ERROR[main]: The following mods could not be found: "minetest_lift_add
on_master" "minetestliftaddonmaster" "streetcars"
20:14:53: ERROR[main]: ========== ERROR FROM LUA ===========
20:14:53: ERROR[main]: Failed to load and run script from
20:14:53: ERROR[main]: C:\minetest-0.4.12\bin\..\mods\areas\init.lua:
20:14:53: ERROR[main]: C:\minetest-0.4.12\bin\..\builtin\common\strict.lua:18: a
ttempt to index global 'debug' (a boolean value)
20:14:53: ERROR[main]: ======= END OF ERROR FROM LUA ========
20:14:53: ERROR[main]: Server: Failed to load and run C:\minetest-0.4.12\bin\..\
mods\areas\init.lua
20:14:53: ERROR[main]: ModError: ModError: Failed to load and run C:\minetest-0.
4.12\bin\..\mods\areas\init.lua
20:15:33: ERROR[main]: Invalid character ' ' found in setting name
20:15:33: ERROR[main]: Invalid character ' ' found in setting name
20:15:33: ERROR[main]: The following mods could not be found: "minetest_lift_add
on_master" "minetestliftaddonmaster" "streetcars"
20:15:33: ERROR[main]: ========== ERROR FROM LUA ===========
20:15:33: ERROR[main]: Failed to load and run script from
20:15:33: ERROR[main]: C:\minetest-0.4.12\bin\..\mods\worldedit\worldedit\init.l
ua:
20:15:33: ERROR[main]: C:\minetest-0.4.12\bin\..\builtin\common\strict.lua:43: a
ttempt to index global 'debug' (a boolean value)
20:15:33: ERROR[main]: ======= END OF ERROR FROM LUA ========
20:15:33: ERROR[main]: Server: Failed to load and run C:\minetest-0.4.12\bin\..\
mods\worldedit\worldedit\init.lua
20:15:33: ERROR[main]: ModError: ModError: Failed to load and run C:\minetest-0.
4.12\bin\..\mods\worldedit\worldedit\init.lua
20:16:08: ERROR[main]: Invalid character ' ' found in setting name
20:16:08: ERROR[main]: Invalid character ' ' found in setting name
20:16:08: ERROR[main]: The following mods could not be found: "minetest_lift_add
on_master" "minetestliftaddonmaster" "streetcars"
20:16:09: ERROR[main]: ========== ERROR FROM LUA ===========
20:16:09: ERROR[main]: Failed to load and run script from
20:16:09: ERROR[main]: C:\minetest-0.4.12\bin\..\mods\minetest-mod-modmenu-maste
r\modmenu\init.lua:
20:16:09: ERROR[main]: C:\minetest-0.4.12\bin\..\builtin\common\strict.lua:18: a
ttempt to index global 'debug' (a boolean value)
20:16:09: ERROR[main]: ======= END OF ERROR FROM LUA ========
20:16:09: ERROR[main]: Server: Failed to load and run C:\minetest-0.4.12\bin\..\
mods\minetest-mod-modmenu-master\modmenu\init.lua
20:16:09: ERROR[main]: ModError: ModError: Failed to load and run C:\minetest-0.
4.12\bin\..\mods\minetest-mod-modmenu-master\modmenu\init.lua


List of the Mods I use:

Areas
Carts
currency
digilines
emerald
mesecar
mesecons
mod_menu
minetest zcg master
moreblocks
moreores
streets
travelnet
unified inventory
Vanessa E's home decor mod pack
wardrobe
World Edit

Mods I created:
Skyscraper Material
Sparklenode

All of these have the same LUA error, and that is basically all of them that I have...

Re: Lua Errors...

PostPosted: Tue Aug 18, 2015 01:18
by blert2112
Unless you are lucky enough to be using a quantum computer nothing happens "out of the blue", there is always a cause. From the output it looks like one or more of your mod folders is named incorrectly. For instance: "minetest-mod-modmenu-master" should probably be named simply "modmenu". Sometimes when you download a mod, especially from a github repo (github automatically tags the download zip with a "-branchname"), the folder needs to be renamed. Some people also name their repos with "minetest-mod-" to try and keep their repos organized. This extra stuff needs to be removed from the folder name. See the "installing mods" sticky thread for more. As a kind of rule-of-thumb... if the downloaded package is named something like "minetest-mod-super_cool_stuff-master" you rename the folder to get rid of all the stuff separated by dashes "-" and keep the stuff separated by underscores "_", so this example mod should just be in a folder named "super_cool_stuff".

Re: Lua Errors...

PostPosted: Tue Aug 18, 2015 02:00
by Tmanyo
Well it started 3 days ago. It worked the day before and I know because I needed to test my new mod... It all worked at that time.

Re: Lua Errors...

PostPosted: Tue Aug 18, 2015 06:21
by rubenwardy
That isn't the problem that causes the crash, the problem is that one of your mods overrides / sets the variable "debug" when it shouldn't.

Use "local debug = true" etc instead of "debug = true". Mods should only set global variables which match their own mod namespace. (Ie: mod foobar should only set the global foobar)

Re: Lua Errors...

PostPosted: Wed Aug 19, 2015 02:54
by Tmanyo
How do I find what Mod is causing the problem?

**Edit - Found out what it was, A new mod I just installed, it was the Lifts mod.