ACTION[Server]: LuaEntitySAO "aliveai_folk:bot" at (-456,9,-56) (id=19, hp=5) punched LuaEntitySAO "aliveai_folk:bot" at (-458,9,-57) (id=11, hp=20), damage=-19 (handled by Lua)
ERROR[Server]: Invalid field automatic_rotate (expected number got boolean).
ERROR[Server]: stack traceback:
ERROR[Server]: [C]: in function 'add_entity'
ERROR[Server]: /home/user/.minetest/mods/aliveai/aliveai/bot.lua:632: in function </home/user/.minetest/mods/aliveai/aliveai/bot.lua:617>
ERROR[Main]: ServerError: AsyncErr: ServerThread::run Lua: Runtime error from mod 'aliveai_folk' in callback LuaABM::trigger(): /home/user/.minetest/mods/aliveai/aliveai/bot.lua:632: attempt to index a nil value
ERROR[Main]: stack traceback:
ERROR[Main]: /home/user/.minetest/mods/aliveai/aliveai/bot.lua:632: in function </home/paxom/.minetest/mods/aliveai/aliveai/bot.lua:617>
ACTION[Server]: singleplayer leaves game. List of players:
ACTION[Main]: Server: Shutting down
2021-02-12 12:25:10: ACTION[Main]: Server: Shutting down
2021-02-12 12:25:11: ERROR[Main]: ServerError: AsyncErr: ServerThread::run Lua: Runtime error from mod 'aliveai_folk' in callback luaentity_Step(): /usr/share/games/minetest/mods/aliveai/aliveai/event.lua:998: attempt to compare number with nil
2021-02-12 12:25:11: ERROR[Main]: stack traceback:
2021-02-12 12:25:11: ERROR[Main]: /usr/share/games/minetest/mods/aliveai/aliveai/event.lua:998: in function 'fight'
2021-02-12 12:25:11: ERROR[Main]: /usr/share/games/minetest/mods/aliveai/aliveai/bot.lua:35: in function 'bot'
2021-02-12 12:25:11: ERROR[Main]: /usr/share/games/minetest/mods/aliveai/aliveai/bot.lua:16: in function </usr/share/games/minetest/mods/aliveai/aliveai/bot.lua:1>[icode]
diff --git a/aliveai/event.lua b/aliveai/event.lua
index 2f7a737..17f4045 100644
--- a/aliveai/event.lua
+++ b/aliveai/event.lua
@@ -995,7 +995,7 @@ aliveai.fight=function(self)
aliveai.lookat(self,fpos)
self.on_fighting(self,self.fight)
- if self.type=="npc" and aliveai.is_bot(self.fight) and self.fight:get_luaentity().mindamage>self.dmg then
+ if self.type=="npc" and aliveai.is_bot(self.fight) and self.fight:get_luaentity().mindamage and self.fight:get_luaentity().mindamage>self.dmg then^M
aliveai.flee_from(self,self.fight)
return self
end
2021-02-12 21:11:53: ERROR[Server]: Invalid field automatic_rotate (expected number got boolean).
2021-02-12 21:11:53: ERROR[Server]: stack traceback:
2021-02-12 21:11:55: ERROR[Server]: Invalid field automatic_rotate (expected number got boolean).
2021-02-12 21:11:55: ERROR[Server]: stack traceback:
2021-02-12 21:11:55: ERROR[Server]: [C]: in function 'add_entity'
2021-02-12 21:11:55: ERROR[Server]: .../share/games/minetest/mods/aliveai/aliveai_ants/init.lua:269: in function 'step'
2021-02-12 21:11:55: ERROR[Server]: /usr/share/games/minetest/mods/aliveai/aliveai/bot.lua:32: in function 'bot'
2021-02-12 21:11:55: ERROR[Server]: /usr/share/games/minetest/mods/aliveai/aliveai/bot.lua:16: in function </usr/share/ga
mes/minetest/mods/aliveai/aliveai/bot.lua:1>