[Mod] Alive AI V26.32 [aliveai]

RichardTry
New member
Posts: 4
Joined: Fri Oct 16, 2020 13:26
GitHub: RichardTry
In-game: RichardTry

Re: [Mod] Alive AI V26.32 [aliveai]

by RichardTry » Post

I've just punched Sam...

Code: Select all

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

meteoviktor
New member
Posts: 3
Joined: Fri Feb 12, 2021 10:14

Re: [Mod] Alive AI V26.32 [aliveai]

by meteoviktor » Post

Code: Select all

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]

meteoviktor
New member
Posts: 3
Joined: Fri Feb 12, 2021 10:14

Re: [Mod] Alive AI V26.32 [aliveai]

by meteoviktor » Post

will this solve the problem?

Code: Select all

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

meteoviktor
New member
Posts: 3
Joined: Fri Feb 12, 2021 10:14

Re: [Mod] Alive AI V26.32 [aliveai]

by meteoviktor » Post

Code: Select all

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>

Post Reply

Who is online

Users browsing this forum: minetest_player and 1 guest