Legend of Minecraft experience mod crash

lightseer
Member
 
Posts: 36
Joined: Mon Jan 23, 2017 16:18

Legend of Minecraft experience mod crash

by lightseer » Sat Feb 04, 2017 23:47

This happens in Legend of Minecraft which you can find using this thread: viewtopic.php?f=15&t=14051

In single player mode this subgame plays well until experience is gained. Any time the character gets experience there is an error that comes up associated with an init.lua file for the 'experience' mod, and the subgame cannot continue. Experience is gained if the player kills an NPC or digs iron. I am attaching a large piece of the debug.txt, and also I include here the part with the error in quotes:

text of the error from debug.txt wrote:2017-02-04 17:42:24: WARNING[Server]: Assignment to undeclared global "noder" inside a function at ...t/games/LegendofMinetest-master/mods/experience/init.lua:219.
2017-02-04 17:42:24: VERBOSE[Server]: Server: Sent object remove/add: 0 removed, 0 added, packet size is 4392
2017-02-04 17:42:24: VERBOSE[Server]: Server: MapEditEvents:
2017-02-04 17:42:24: VERBOSE[Server]: MEET_ADDNODE: - - - - - - - - - - - - - - 1
2017-02-04 17:42:24: ERROR[Main]: ServerError: Runtime error from mod 'experience' in callback environment_Step(): ...t/games/LegendofMinetest-master/mods/experience/init.lua:114: attempt to compare string with number
2017-02-04 17:42:24: ERROR[Main]: stack traceback:
2017-02-04 17:42:24: ERROR[Main]: ...t/games/LegendofMinetest-master/mods/experience/init.lua:114: in function <...t/games/LegendofMinetest-master/mods/experience/init.lua:99>
2017-02-04 17:42:24: ERROR[Main]: /usr/local/share/minetest/builtin/game/register.lua:412: in function </usr/local/share/minetest/builtin/game/register.lua:392>


This Minetest 0.4.15 is running on Ubuntu 16.04. Lua is version 5.1 It runs fine as far as I can tell except for the error with this subgame. Let me know if you are interested in more system information or have an idea of how to troubleshoot.
 

lightseer
Member
 
Posts: 36
Joined: Mon Jan 23, 2017 16:18

Re: Legend of Minecraft experience mod crash

by lightseer » Sun Feb 05, 2017 14:00

I have removed all minecraft traces, upgraded my Lua library to 5.2 and recompiled. I still get the experience error in Lua. Next I may try learning more about Lua. Maybe its a cast problem or typo.
 

lightseer
Member
 
Posts: 36
Joined: Mon Jan 23, 2017 16:18

Re: Legend of Minecraft experience mod crash

by lightseer » Tue Feb 07, 2017 15:50

I have moved the 'Experience' mod out of the mods folder and gone forward playing LOM without gaining experience. A new crash occurs when there is a drop in the temple with the base for a master sword. I am including part of the debug.txt file.
2017-02-07 10:41:12: INFO[Server]: Server: MapEditEvents:
2017-02-07 10:41:12: INFO[Server]: MEET_ADDNODE: - - - - - - - - - - - - - - 12
2017-02-07 10:41:12: ERROR[Main]: ServerError: Runtime error from mod 'item_drop' in callback environment_Step(): ...../games/LegendofMinetest-master/mods/item_drop/init.lua:13: attempt to index a nil value
2017-02-07 10:41:12: ERROR[Main]: stack traceback:
2017-02-07 10:41:12: ERROR[Main]: ...../games/LegendofMinetest-master/mods/item_drop/init.lua:13: in function <...../games/LegendofMinetest-master/mods/item_drop/init.lua:1>
2017-02-07 10:41:12: ERROR[Main]: ..._minetest/mt0415_backup/bin/../builtin/game/register.lua:412: in function <..._minetest/mt0415_backup/bin/../builtin/game/register.lua:392>



Hopefully this will help point out the source of a common problem. It could be a separate problem, or it could happen when the experience module is not present.
 

lightseer
Member
 
Posts: 36
Joined: Mon Jan 23, 2017 16:18

Re: Legend of Minecraft experience mod crash

by lightseer » Mon Feb 13, 2017 16:39

I may have solved this or if not at least gotten around it for now.

I edited the experience mod. Edit the init.lua file in the mod 'experience'.

Edited the line (currently line 112) that looked like this: experience = xp:read("*l")
Changed that line to this: experience = tonumber(xp:read("*l"))
The server was able to proceed.
 


Return to Minetest Problems

Who is online

Users browsing this forum: No registered users and 45 guests

cron