Chaosforge Forum

  • May 21, 2024, 23:48
  • Welcome, Guest
Please login or register.



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

Author Topic: Out of ammo formers going infinite loops  (Read 3878 times)

Evilpotatoe

  • Backer
  • Major
  • *
  • *
  • Offline Offline
  • Posts: 316
  • Lost Soul corpse
    • View Profile
Out of ammo formers going infinite loops
« on: December 01, 2012, 14:32 »

EDIT : Maybe, the sticky posts should suggest to broaden the search using the search bar ? I read the known bug topic and two pages of forum before posting, but after having the genius idea to use search, I still feel like a moron :p
-------------------

Not the first time I get this, and seems fairly easy to reproduce.

In phobos base entry, I sometimes hide behind a tree, so that a former wastes all his ammo shooting at it.
Once out of bullets, he just runs away, and discovers the "There's no escape, just stand and fight like a man !" signs bordering the level.
At that point, sometimes, it enters an infinite loop (which the game already handles, but the error is here).

So, to reproduce, just start a new ITYTD game, wait for the first former to empty his gun on you, and let him run. (Just re-tested, and reproduced at first try)
Btw, here's the logged error :

----------------------------------------------------------------------
Timestamp   : 01/12/2012 21:07:44
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: December 01, 2012, 14:36 by Evilpotatoe »
Logged
Badges - [26/26/26/22/9/2] - 42/43

ParaSait

  • Baffen :P
  • Elder
  • Lieutenant General
  • *
  • *
  • Offline Offline
  • Posts: 1229
  • Happy Little Boozer
    • View Profile
    • MPSF
Re: Out of ammo formers going infinite loops
« Reply #1 on: December 01, 2012, 16:00 »

*click!*
Huh... let's try to reload...
*click!*
Huh... let's try to reload...
*click!*
Huh... let's try to reload...
*click!*
Huh... let's try to reload...
*click!*
Huh... let's try to reload...
*click!*
Huh... let's try to reload...
...

:P
Logged
[18|7|3|0|0|0] [MED:13/43] [SPE:36/67] [ASM:11/40]

Check out my epic youtube channel!
Currently playing The Bard's Tale and System Shock 2 (coop with GrAV1t)!

yaflhdztioxo

  • Programmer
  • Elder Chaos Guard
  • Captain
  • *
  • *
  • Offline Offline
  • Posts: 298
  • Lost Sole
    • View Profile
Re: Out of ammo formers going infinite loops
« Reply #2 on: December 01, 2012, 16:53 »

That should be fixed in SVN.  Enemies which have a useless weapon will no longer try to reload and will instead do whatever their non-firing action tends to be (in practice formers just circle around you, evading continuously, while beings with teeth will often bum rush you--though I don't think there are any beings like that in Vanilla DoomRL who are capable of running out of ammo).  It might be nice to actually kick enemies with a worthless melee into a 'Run Away' state but I'll leave that for better men than I.

Either way, the infinite loop business should be dealt with.
Logged

Q2ZOv

  • Elder
  • Sergeant
  • *
  • *
  • Offline Offline
  • Posts: 65
  • Lost Soul
    • View Profile
Re: Out of ammo formers going infinite loops
« Reply #3 on: December 02, 2012, 02:54 »

though I don't think there are any beings like that in Vanilla DoomRL who are capable of running out of ammo. 

Wanted to reply that cyberdemon is that monster that has teeth and can run out of ammo, but tested and found out that he gets rockets from the air but not from his inventory. Thats pretty strange and I think that it would be more interesting if he could run out of ammo so in some occasions players should be able to endure enough time and then kill him.
Logged
0.9.9.7 Imp Corporal
[6/3/2/1/1/0]
0.9.9.6 Cyberdemon God Hand
[24/22/22/17/15]

yaflhdztioxo

  • Programmer
  • Elder Chaos Guard
  • Captain
  • *
  • *
  • Offline Offline
  • Posts: 298
  • Lost Sole
    • View Profile
Re: Out of ammo formers going infinite loops
« Reply #4 on: December 02, 2012, 06:19 »

He used to run out of ammo, but that was changed some time ago.
Logged

Evilpotatoe

  • Backer
  • Major
  • *
  • *
  • Offline Offline
  • Posts: 316
  • Lost Soul corpse
    • View Profile
Re: Out of ammo formers going infinite loops
« Reply #5 on: December 02, 2012, 08:51 »

Cybie running out of ammo ? Dodgemaster build must had been quite cool in thoses times... If only I discovered doomRL before 0.9.9.6...
(well, in fact, I would'nt have bothered trying it, ascii is too much for me. I waited something like 10 or years  before trying Angband, just because I wouldn't play it as ascii...)
Logged
Badges - [26/26/26/22/9/2] - 42/43

Klear

  • Elder
  • Lieutenant General
  • *
  • *
  • Offline Offline
  • Posts: 1319
  • Twisted passages carry the smell of dapperness...
    • View Profile
Re: Out of ammo formers going infinite loops
« Reply #6 on: December 02, 2012, 08:56 »

Cybie running out of ammo ? Dodgemaster build must had been quite cool in thoses times... If only I discovered doomRL before 0.9.9.6...
(well, in fact, I would'nt have bothered trying it, ascii is too much for me. I waited something like 10 or years  before trying Angband, just because I wouldn't play it as ascii...)

Dodgemaster is still quite cool against Cybie. If he can't ever hit you, it doesn't matter if he has ammo or not.
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".

Evilpotatoe

  • Backer
  • Major
  • *
  • *
  • Offline Offline
  • Posts: 316
  • Lost Soul corpse
    • View Profile
Re: Out of ammo formers going infinite loops
« Reply #7 on: December 02, 2012, 12:22 »

Indeed, tried it once, I think I didn't take a single hit.
But the whole point was to have a cyberdemon chickening out once out of ammo ! Well, maybe he used to charge you instead ? I'm sure it could still be fun with some tactical stuff, e.g., for knife throwing target practice :p.
Logged
Badges - [26/26/26/22/9/2] - 42/43
Pages: [1]