Lua Errors...

User avatar
Tmanyo
Member
 
Posts: 151
Joined: Mon Sep 29, 2014 01:20
GitHub: Tmanyo
IRC: Tmanyo
In-game: tmanyo

Lua Errors...

by Tmanyo » Mon Aug 17, 2015 01:45

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.
Tmanyo
http://rrhmsservers.weebly.com/
Servers I Host:
Xtremetest
Vault-81
 

User avatar
TenPlus1
Member
 
Posts: 1874
Joined: Mon Jul 29, 2013 13:38
GitHub: tenplus1

Re: Lua Errors...

by TenPlus1 » Mon Aug 17, 2015 06:39

It would help if you list the mods you are using...
 

User avatar
rubenwardy
Member
 
Posts: 4500
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy

Re: Lua Errors...

by rubenwardy » Mon Aug 17, 2015 07:14

And also give the errors you receive.
 

User avatar
Tmanyo
Member
 
Posts: 151
Joined: Mon Sep 29, 2014 01:20
GitHub: Tmanyo
IRC: Tmanyo
In-game: tmanyo

Re: Lua Errors...

by Tmanyo » Tue Aug 18, 2015 00:25

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...
Tmanyo
http://rrhmsservers.weebly.com/
Servers I Host:
Xtremetest
Vault-81
 

blert2112
Member
 
Posts: 244
Joined: Sat Apr 25, 2015 04:05
GitHub: blert2112

Re: Lua Errors...

by blert2112 » Tue Aug 18, 2015 01:18

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".
 

User avatar
Tmanyo
Member
 
Posts: 151
Joined: Mon Sep 29, 2014 01:20
GitHub: Tmanyo
IRC: Tmanyo
In-game: tmanyo

Re: Lua Errors...

by Tmanyo » Tue Aug 18, 2015 02:00

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.
Tmanyo
http://rrhmsservers.weebly.com/
Servers I Host:
Xtremetest
Vault-81
 

User avatar
rubenwardy
Member
 
Posts: 4500
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy

Re: Lua Errors...

by rubenwardy » Tue Aug 18, 2015 06:21

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)
 

User avatar
Tmanyo
Member
 
Posts: 151
Joined: Mon Sep 29, 2014 01:20
GitHub: Tmanyo
IRC: Tmanyo
In-game: tmanyo

Re: Lua Errors...

by Tmanyo » Wed Aug 19, 2015 02:54

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.
Tmanyo
http://rrhmsservers.weebly.com/
Servers I Host:
Xtremetest
Vault-81
 


Return to Minetest Problems

Who is online

Users browsing this forum: No registered users and 3 guests

cron