This actor crashes MAP01 of Doom 2 after 35 tics (A_TestScript is a dummy library-based script that returns a value of 1).
Code: Select all
ACTOR Test replaces ZombieMan
{
States
{
Spawn:
UNKN A 35
TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("A_TestScript") > 0, "Done")
Loop
Done:
TNT1 A 0
Stop
}
}Occasionally, the crash happens as the game is loading, with a "Script error, "Test.pk7:decorate.txt" line 7: Numeric type expected" notation in the log file.
Another oddity: If I replace the call with CallACS instead of ACS_NamedExecuteWithResult, the crashes (and jump errors) go away in all instances that I've checked.
Example here. Just load a map with a ZombieMan actor and wait for the crash.
EDIT: I was running the 64-bit build and not getting crash dumps. Trying with the 32-bit build actually gave me crash reports (one is attached).
