Chaosforge Forum

  • April 24, 2024, 02:09
  • Welcome, Guest
Please login or register.



Login with username, password and session length
Pages: [1]

Author Topic: [Fixed][0.9.9.6G Windows] former_ai entered infinite loop!  (Read 2027 times)

Klear

  • Elder
  • Lieutenant General
  • *
  • *
  • Offline Offline
  • Posts: 1319
  • Twisted passages carry the smell of dapperness...
    • View Profile

Something went wrong with a former commando. After each actions, the game generated some kind of error, created a log file and then needed me to press enter.

I cleared the monsters who were threatening me and then found that there is a former commando who is unable to shoot. Putting him out of his misery ended the errors.

Here's my error.log

Code: [Select]
----------------------------------------------------------------------
Timestamp   : 9.1.2012 15:15:01
Error level : ERROR
Message     : Lua hook OnAction caught ELuaStateException!

Call path     : beings[].OnAction
Call params   : ()
Error message : Lua error : lua\ai.lua:709: Object expected as parameter 1!
----------------------------------------------------------------------

----------------------------------------------------------------------
Timestamp   : 9.1.2012 15:15:01
Error level : FATAL EXCEPTION
Message     : Fatal exception encountered

An unhandled exception occurred at $00464249 :
ELuaException : LuaError: beings[].OnAction -- Lua error : lua\ai.lua:709: Object expected as parameter 1!
  $00464249  TDOOMLUA__ONERROR,  line 589 of src/doomlua.pas
  $0044F8B7  TLUASYSTEM__PROTECTEDRUNHOOK,  line 476 of e:/Projects/fpcvalkyrie/src/vluasystem.pas
  $0046024C  TTHING__CALLHOOK,  line 152 of src/dfthing.pas
  $004A6D10  TBEING__ACTION,  line 1058 of src/dfbeing.pas
  $004A6E2C  TBEING__CALL,  line 1076 of src/dfbeing.pas
  $0041F8EE  TDOOM__RUN,  line 457 of src/doombase.pas
  $00401FFC  main,  line 61 of src/doomrl.pas

----------------------------------------------------------------------

----------------------------------------------------------------------
Timestamp   : 10.3.2012 13:37:30
Error level : FATAL EXCEPTION
Message     : Fatal exception encountered

An unhandled exception occurred at $0041D892 :
EInOutError : Access denied
  $0041D892  VDEBUG_init,  line 306 of e:/Projects/fpcvalkyrie/src/vdebug.pas
  $0040C554

----------------------------------------------------------------------

----------------------------------------------------------------------
Timestamp   : 17.3.2012 13:50:01
Error level : ERROR
Message     : Lua hook OnAction caught ELuaStateException!

Call path     : beings[commando].OnAction
Call params   : ()
Error message : Lua error : lua\core.lua:960: AI : former_ai entered infinite loop!
----------------------------------------------------------------------

----------------------------------------------------------------------
Timestamp   : 17.3.2012 13:50:26
Error level : ERROR
Message     : Lua hook OnAction caught ELuaStateException!

Call path     : beings[commando].OnAction
Call params   : ()
Error message : Lua error : lua\core.lua:960: AI : former_ai entered infinite loop!
----------------------------------------------------------------------

----------------------------------------------------------------------
Timestamp   : 17.3.2012 13:50:36
Error level : ERROR
Message     : Lua hook OnAction caught ELuaStateException!

Call path     : beings[commando].OnAction
Call params   : ()
Error message : Lua error : lua\core.lua:960: AI : former_ai entered infinite loop!
----------------------------------------------------------------------

----------------------------------------------------------------------
Timestamp   : 17.3.2012 13:50:39
Error level : ERROR
Message     : Lua hook OnAction caught ELuaStateException!

Call path     : beings[commando].OnAction
Call params   : ()
Error message : Lua error : lua\core.lua:960: AI : former_ai entered infinite loop!
----------------------------------------------------------------------

----------------------------------------------------------------------
Timestamp   : 17.3.2012 13:50:42
Error level : ERROR
Message     : Lua hook OnAction caught ELuaStateException!

Call path     : beings[commando].OnAction
Call params   : ()
Error message : Lua error : lua\core.lua:960: AI : former_ai entered infinite loop!
----------------------------------------------------------------------

----------------------------------------------------------------------
Timestamp   : 17.3.2012 13:50:45
Error level : ERROR
Message     : Lua hook OnAction caught ELuaStateException!

Call path     : beings[commando].OnAction
Call params   : ()
Error message : Lua error : lua\core.lua:960: AI : former_ai entered infinite loop!
----------------------------------------------------------------------

----------------------------------------------------------------------
Timestamp   : 17.3.2012 13:50:49
Error level : ERROR
Message     : Lua hook OnAction caught ELuaStateException!

Call path     : beings[commando].OnAction
Call params   : ()
Error message : Lua error : lua\core.lua:960: AI : former_ai entered infinite loop!
----------------------------------------------------------------------

----------------------------------------------------------------------
Timestamp   : 17.3.2012 13:50:51
Error level : ERROR
Message     : Lua hook OnAction caught ELuaStateException!

Call path     : beings[commando].OnAction
Call params   : ()
Error message : Lua error : lua\core.lua:960: AI : former_ai entered infinite loop!
----------------------------------------------------------------------

----------------------------------------------------------------------
Timestamp   : 17.3.2012 13:50:53
Error level : ERROR
Message     : Lua hook OnAction caught ELuaStateException!

Call path     : beings[commando].OnAction
Call params   : ()
Error message : Lua error : lua\core.lua:960: AI : former_ai entered infinite loop!
----------------------------------------------------------------------

----------------------------------------------------------------------
Timestamp   : 17.3.2012 13:50:56
Error level : ERROR
Message     : Lua hook OnAction caught ELuaStateException!

Call path     : beings[commando].OnAction
Call params   : ()
Error message : Lua error : lua\core.lua:960: AI : former_ai entered infinite loop!
----------------------------------------------------------------------

----------------------------------------------------------------------
Timestamp   : 17.3.2012 13:51:01
Error level : ERROR
Message     : Lua hook OnAction caught ELuaStateException!

Call path     : beings[commando].OnAction
Call params   : ()
Error message : Lua error : lua\core.lua:960: AI : former_ai entered infinite loop!
----------------------------------------------------------------------

----------------------------------------------------------------------
Timestamp   : 17.3.2012 13:51:16
Error level : CRITICAL
Message     : Player action exception!

Error message : Access violation
----------------------------------------------------------------------



Let me know if you need more details; I have screenshots of pretty much the whole thing, how it looked, what solved it etc.
« Last Edit: April 01, 2012, 12:10 by tehtmi »
Logged
Arch-Vile Mjr General [24/19/18/8/2] (0.9.9.7)

Quote from: thelaptop
Dude... we need to change your forum handle from "Klear" to "Klear Nukem".

skarczew

  • Elder
  • Major General
  • *
  • *
  • Offline Offline
  • Posts: 974
    • View Profile
Re: [0.9.9.6G Windows] former_ai entered infinite loop!
« Reply #1 on: March 18, 2012, 17:18 »

I got the same. It was N! game and I made one Former Human use all his ammo.

Afterwards he was running away from me till the end of the map. When I came near him (1 tile distance), like this:
Code: [Select]
#...
#h.@
#...
####

he was not able to move, and the error appeared:
Code: [Select]
----------------------------------------------------------------------
Timestamp   : 2012-03-18 14:04:30
Error level : ERROR
Message     : Lua hook OnAction caught ELuaStateException!

Call path     : beings[former].OnAction
Call params   : ()
Error message : Lua error : lua\core.lua:960: AI : former_ai entered infinite loop!
----------------------------------------------------------------------
« Last Edit: March 18, 2012, 17:20 by skarczew »
Logged

Klear

  • Elder
  • Lieutenant General
  • *
  • *
  • Offline Offline
  • Posts: 1319
  • Twisted passages carry the smell of dapperness...
    • View Profile
Re: [0.9.9.6G Windows] former_ai entered infinite loop!
« Reply #2 on: March 19, 2012, 03:27 »

Hmm... for me it happened very early on the level (it was an arena) and the commando in question was outside my sight range while this was happening, though it's likely he retreated when the bug struck.

In any case, there was another commando nearby, who kept shooting at me during this time, so I doubt the cause was that he shoot all his ammo. I'll post the screenies later when I get home (though I can't play with sound here, I'm still reading this forum from work, hehe).
« Last Edit: March 19, 2012, 04:56 by Klear »
Logged
Arch-Vile Mjr General [24/19/18/8/2] (0.9.9.7)

Quote from: thelaptop
Dude... we need to change your forum handle from "Klear" to "Klear Nukem".

skarczew

  • Elder
  • Major General
  • *
  • *
  • Offline Offline
  • Posts: 974
    • View Profile
Re: [0.9.9.6G Windows] former_ai entered infinite loop!
« Reply #3 on: March 19, 2012, 04:50 »

Looks like the case is with formers' AI not knowing what to do in certain situations, after ammo is out.
Logged

Game Hunter

  • Programmer
  • Local Inquisitor
  • Lieutenant General
  • *
  • *
  • Offline Offline
  • Posts: 1044
  • Looks like game to me.
    • View Profile
    • Channel, the Roguelike
Re: [0.9.9.6G Windows] former_ai entered infinite loop!
« Reply #4 on: March 31, 2012, 19:26 »

This bug's been fixed in repo. It's also the same bug as the one people were finding at Phobos Base Entry, and incidentally had nothing to do with the non-wall boundaries.
Logged
I'm just a dude playing a dude disguised as another dude.

Latest LPs: Angband, Delver
Pages: [1]