mahmutelmas06 wrote:I dont know why because game crashes with no debug info when i punch an animal.
mahmutelmas06 wrote:I im using 1.19
Minetest version is latest develpment by fess 64bit
Windows 10
Log file has only warnings by other mods but none by mobsredo. "The program has stopped working" is the message windows shows.
fireglow wrote:Try with the latest stable minetest release.
mahmutelmas06 wrote:fireglow wrote:Try with the latest stable minetest release.
MobsRedo 1.17 works fine.
1.18 and 1.19 crashes
-------------
Separator
-------------
2015-11-05 15:51:07: [Main]: Automatically selecting world at [D:\Oyun\Kurulan\Minetest\bin\..\worlds\dunya]
2015-11-05 15:51:07: ERROR[Main]: Irrlicht: Switch to fullscreen: The graphics mode is not supported.
2015-11-05 15:51:25: WARNING[Main]: BanManager: creating D:\Oyun\Kurulan\Minetest\bin\..\worlds\aaa\ipban.txt
2015-11-05 15:51:25: WARNING[Main]: NodeDefManager: Ignoring CONTENT_IGNORE redefinition
2015-11-05 15:51:42: WARNING[Main]: Irrlicht: PNG warning: Interlace handling should be turned on when using png_read_image
2015-11-05 15:52:22: ERROR[Main]: UNRECOVERABLE error occurred. Stopping server. Please fix the following error:
2015-11-05 15:52:22: ERROR[Main]: Lua: Runtime error from mod 'mobs' in callback luaentity_Punch(): ...ulan\Minetest\bin\..\mods\Creatures_Modpack\mobs/api.lua:1340: attempt to index local 'tool_capabilities' (a nil value)
2015-11-05 15:52:22: ERROR[Main]: stack traceback:
2015-11-05 15:52:22: ERROR[Main]: ...ulan\Minetest\bin\..\mods\Creatures_Modpack\mobs/api.lua:1340: in function <...ulan\Minetest\bin\..\mods\Creatures_Modpack\mobs/api.lua:1337>
2015-11-05 15:52:22: ERROR[Main]: ...n\Kurulan\Minetest\bin\..\builtin\game\mod_profiling.lua:290: in function <...n\Kurulan\Minetest\bin\..\builtin\game\mod_profiling.lua:288>
2015-11-05 15:52:22: ERROR[Main]: In thread 1a20:
2015-11-05 15:52:22: ERROR[Main]: /home/stefan/mt-build/build/minetest_64/minetest/src/server.cpp:1f9: step: A fatal error occured: Lua: Runtime error from mod 'mobs' in callback luaentity_Punch(): ...ulan\Minetest\bin\..\mods\Creatures_Modpack\mobs/api.lua:1340: attempt to index local 'tool_capabilities' (a nil value)
2015-11-05 15:52:22: ERROR[Main]: stack traceback:
2015-11-05 15:52:22: ERROR[Main]: ...ulan\Minetest\bin\..\mods\Creatures_Modpack\mobs/api.lua:1340: in function <...ulan\Minetest\bin\..\mods\Creatures_Modpack\mobs/api.lua:1337>
2015-11-05 15:52:22: ERROR[Main]: ...n\Kurulan\Minetest\bin\..\builtin\game\mod_profiling.lua:290: in function <...n\Kurulan\Minetest\bin\..\builtin\game\mod_profiling.lua:288>
2015-11-05 15:52:22: ERROR[Main]: Debug stacks:
2015-11-05 15:52:22: ERROR[Main]: DEBUG STACK FOR THREAD 7a4:
2015-11-05 15:52:22: ERROR[Main]: #0 run
2015-11-05 15:52:22: ERROR[Main]: #1 Receive
2015-11-05 15:52:22: ERROR[Main]: DEBUG STACK FOR THREAD fb0:
2015-11-05 15:52:22: ERROR[Main]: #0 run
2015-11-05 15:52:22: ERROR[Main]: DEBUG STACK FOR THREAD 12fc:
2015-11-05 15:52:22: ERROR[Main]: #0 run
2015-11-05 15:52:22: ERROR[Main]: DEBUG STACK FOR THREAD 13d0:
2015-11-05 15:52:22: ERROR[Main]: #0 run
2015-11-05 15:52:22: ERROR[Main]: DEBUG STACK FOR THREAD 182c:
2015-11-05 15:52:22: ERROR[Main]: #0 run
2015-11-05 15:52:22: ERROR[Main]: DEBUG STACK FOR THREAD 1a20:
2015-11-05 15:52:22: ERROR[Main]: #0 main
2015-11-05 15:52:22: ERROR[Main]: #1 step
-------------
Separator
-------------
2015-11-07 00:42:57: ERROR[Main]: Irrlicht: Switch to fullscreen: The graphics mode is not supported.
2015-11-07 00:43:29: WARNING[Main]: BanManager: creating D:\Oyun\Kurulan\Minetest\bin\..\worlds\test\ipban.txt
2015-11-07 00:43:30: WARNING[Main]: NodeDefManager: Ignoring CONTENT_IGNORE redefinition
2015-11-07 00:43:44: WARNING[Main]: Irrlicht: PNG warning: Interlace handling should be turned on when using png_read_image
2015-11-07 00:44:06: ERROR[Main]: ServerError: Lua: Runtime error from mod 'mobs' in callback luaentity_Punch(): D:\Oyun\Kurulan\Minetest\bin\..\mods\mobs/api.lua:1340: attempt to index local 'tool_capabilities' (a nil value)
2015-11-07 00:44:06: ERROR[Main]: stack traceback:
2015-11-07 00:44:06: ERROR[Main]: D:\Oyun\Kurulan\Minetest\bin\..\mods\mobs/api.lua:1340: in function <D:\Oyun\Kurulan\Minetest\bin\..\mods\mobs/api.lua:1337>
2015-11-07 00:44:06: ERROR[Main]: ...n\Kurulan\Minetest\bin\..\builtin\game\mod_profiling.lua:290: in function <...n\Kurulan\Minetest\bin\..\builtin\game\mod_profiling.lua:288>
diff --git a/api.lua b/api.lua
index f9d3a1c..86c8543 100644
--- a/api.lua
+++ b/api.lua
@@ -1337,7 +1337,10 @@ minetest.register_entity(name, {
on_punch = function(self, hitter, tflp, tool_capabilities, dir)
-- weapon wear
local weapon = hitter:get_wielded_item()
- local punch_interval = tool_capabilities.full_punch_interval or 1.4
+ local punch_interval = 1.4
+ if tool_capabilities then
+ punch_interval = tool_capabilities.full_punch_interval or 1.4
+ end
if weapon:get_definition().tool_capabilities ~= nil then
local wear = math.floor((punch_interval / 75) * 9000)
weapon:add_wear(wear)
clicker:set_attach(self.object, "", {x=-0.5,y=19,z=0}, {x=8,y=90,z=0})
clicker:set_animation({x=81, y=160}, 30, 0) --to sit on the horse
TenPlus1 wrote:Updated to version 1.22:
- NPC's will now attack any player who hits them apart from owners
- Mobs are now afraid of heights and tend not to walk off cliff's
- Nametags can be crafted with paper and black dye then used to right-click your tamed animal or npc to name them (latest 0.4.13 daily needed for this feature)
Users browsing this forum: No registered users and 78 guests