Chaosforge Forum

DoomRL => Bug Reports => Topic started by: ZicherCZ on February 06, 2012, 01:53

Title: [0.9.9.5] Infinite loop by a former human escaping on Phobos Base Entry
Post by: ZicherCZ on February 06, 2012, 01:53
Hi guys,

I started playing AoB and let the first former human shoot all of his ammo into the tree I covered behind. Then I strarted to pursue him, until he ran into the right, walkable edge of the level. This is what happened:

Code: [Select]
----------------------------------------------------------------------
Timestamp   : 5.2.2012 13:47:59
Error level : ERROR
Message     : Lua hook OnAction caught ELuaStateException!

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

----------------------------------------------------------------------
Timestamp   : 5.2.2012 13:48:08
Error level : ERROR
Message     : Lua hook OnAction caught ELuaStateException!

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

The precise order of action was:
- The former human entered the right edge. No problem so far.
- I moved towards him, and then the first instance of the bug happened. The game then continued.
- Again I moved towards him, after which the second instance happened. Again, the game went on afterwards.
- Then I finally moved into his melee range, and he attacked me. No problem this time and the rest of the game went fine.
Title: Re: [0.9.9.5] Infinite loop by a former human escaping on Phobos Base Entry
Post by: Vakalix on March 05, 2012, 08:35
Okay, i just registered to report the same minor bug in 0.996.
Code: [Select]
----------------------------------------------------------------------
Timestamp   : 05.03.2012 13:34:08
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!
----------------------------------------------------------------------
Title: Re: [0.9.9.5] Infinite loop by a former human escaping on Phobos Base Entry
Post by: Game Hunter on March 05, 2012, 08:55
Oy, I'm really sorry this didn't get taken care of by 0996. Fortunately, Phobos Base Entry is the only level that ever has the potential to trigger this bug, so it shouldn't hamper gameplay all that much. I'll be sure to fix the AI by the next beta.
Title: Re: [0.9.9.5] Infinite loop by a former human escaping on Phobos Base Entry
Post by: ZicherCZ on March 05, 2012, 10:11
Oy, I'm really sorry this didn't get taken care of by 0996. Fortunately, Phobos Base Entry is the only level that ever has the potential to trigger this bug, so it shouldn't hamper gameplay all that much. I'll be sure to fix the AI by the next beta.
Are you certain? Levels with rivers spreading to the edges of the screen might theoretically create this bug as well, although it's highly improbable to get a former human out of ammo there :).
It's no gamebreaker anyway, so there's no need to hurry here, I guess.