Page 1 of 1

Error from Lua

PostPosted: Fri Jul 11, 2014 07:10
by TheCrafter
Hello there,

Yesterday, when I first played minetest, it runs smoothly but at the other day which is today when I tried to play minetest in my world it always says this in the debug folder:
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
14:56:03: ERROR[main]: ========== ERROR FROM LUA ===========
14:56:03: ERROR[main]: Failed to load and run script from
14:56:03: ERROR[main]: D:\minetest-0.4.10\bin\..\builtin\init.lua:
14:56:03: ERROR[main]: D:\minetest-0.4.10\bin\..\builtin\game\forceloading.lua:66: bad argument #1 to 'pairs' (table expected, got nil)
14:56:03: ERROR[main]: stack traceback:
14:56:03: ERROR[main]:    [C]: in function 'pairs'
14:56:03: ERROR[main]:    D:\minetest-0.4.10\bin\..\builtin\game\forceloading.lua:66: in main chunk
14:56:03: ERROR[main]:    [C]: in function 'dofile'
14:56:03: ERROR[main]:    D:\minetest-0.4.10\bin\..\builtin\game\init.lua:21: in main chunk
14:56:03: ERROR[main]:    [C]: in function 'dofile'
14:56:03: ERROR[main]:    D:\minetest-0.4.10\bin\..\builtin\init.lua:24: in main chunk
14:56:03: ERROR[main]: ======= END OF ERROR FROM LUA ========
14:56:03: ERROR[main]: ModError: ModError: Failed to load and run D:\minetest-0.4.10\bin\..\builtin\init.lua

Re: Error from Lua

PostPosted: Fri Jul 11, 2014 09:11
by webdesigner97
Do you use mods? If yes, which?

Re: Error from Lua

PostPosted: Sat Jul 12, 2014 03:18
by TheCrafter
webdesigner97 wrote:Do you use mods? If yes, which?

Yes
Here are the mods that I installed:
[*]Areas
[*]Hud
[*]Locked_sign
[*]Player_textures
[*]Sprint
[*]Worldedit
[*]Xban2

Re: Error from Lua

PostPosted: Sat Jul 12, 2014 08:55
by webdesigner97
TheCrafter wrote:
webdesigner97 wrote:Do you use mods? If yes, which?

Yes
Here are the mods that I installed:
[*]Areas
[*]Hud
[*]Locked_sign
[*]Player_textures
[*]Sprint
[*]Worldedit
[*]Xban2

hud, locked_sign, player_textures snd xban2 shoudln't cause this error, but areas, sprint and worledit might do so. Disable every mod, and then try this:

- Enable 1 of the mods
- Try playing your world
- If it crashes:
-> Congratulations, you found the mod which causes the crash, contact the developer
- If the world loads
-> Exit, Disable all mods and do this list again

Re: Error from Lua

PostPosted: Sat Jul 12, 2014 09:14
by TheCrafter
webdesigner97 wrote:
TheCrafter wrote:
webdesigner97 wrote:Do you use mods? If yes, which?

Yes
Here are the mods that I installed:
[*]Areas
[*]Hud
[*]Locked_sign
[*]Player_textures
[*]Sprint
[*]Worldedit
[*]Xban2

hud, locked_sign, player_textures snd xban2 shoudln't cause this error, but areas, sprint and worledit might do so. Disable every mod, and then try this:

- Enable 1 of the mods
- Try playing your world
- If it crashes:
-> Congratulations, you found the mod which causes the crash, contact the developer
- If the world loads
-> Exit, Disable all mods and do this list again

When I tried this almost all of the mods are making this error.
Also for you to know its from the builtin Lua file.

Re: Error from Lua

PostPosted: Sat Jul 12, 2014 10:19
by TheCrafter
Another -Bump-

Still nothing?
Please help.

Re: Error from Lua

PostPosted: Sat Jul 12, 2014 13:32
by Krock
There's already a fix in github - it waits to get merged.

Re: Error from Lua

PostPosted: Sat Jul 12, 2014 13:56
by kaeza
From the code, it seems it fails to deserialize the map blocks to be force-loaded.

Go to the `worlds/yourworld/' directory, and see the size of the `force_loaded.txt' file.

It's most likely empty. Rename it to something else like `force_loaded.old' if it's not empty.

Re: Error from Lua

PostPosted: Sat Jul 12, 2014 16:03
by TheCrafter
kaeza wrote:From the code, it seems it fails to deserialize the map blocks to be force-loaded.

Go to the `worlds/yourworld/' directory, and see the size of the `force_loaded.txt' file.

It's most likely empty. Rename it to something else like `force_loaded.old' if it's not empty.

Thanks for the help :D
It really worked out.

Re: Error from Lua

PostPosted: Sun Jul 13, 2014 03:00
by TheCrafter
-Bump-

Had this error again in my world. Everytime I create a world then at some time it always makes this error everytime I played that world.

Re: Error from Lua

PostPosted: Sun Jul 13, 2014 09:07
by Nore
Download the latest dev version, it has just been fixed.

Re: Error from Lua

PostPosted: Sun Jul 13, 2014 09:50
by TheCrafter
Nore wrote:Download the latest dev version, it has just been fixed.

Thank you for responding.
Ill try to download now.