Page 1 of 1

Thats what you GET! HA!

Posted: Wed Sep 19, 2007 12:05 am
by Mindless Automaton
If a DFN entry uses GET to refer to itself, it crashes the server by doing an infinite loop-o-matic.

No errors logged. :o

Not that I'd ever cause something like that to happen.. <cough>

sample file:
(test.dfn)

[bunny]
{
GET=bunny
NAME=a fluffy bunny
STR=15
DEX=25
INT=5
HPMAX=9
DAMAGE=2 5
TOPROV=59
TOPEACE=59 5
RACE=9
}

load dfns, add npc bunny, click to place, CRASH.

Posted: Wed Sep 19, 2007 1:32 am
by Xuri
Lol :D Nice one.

Posted: Thu Sep 20, 2007 4:50 am
by giwo
Infinite loops r0xx0r!

Posted: Sat Jun 21, 2008 5:54 pm
by giwo
Relatively simple fix, I'll put it up in my next commit

Posted: Sun Jan 18, 2009 8:05 pm
by Xuri
Tested, and verified fixed in 0.98-4.0.
Console gives the following warning message when spawning the NPC, and no crash occurs:
WARNING: Infinite loop avoided with GET tag inside character script BUNNY