[Commit 952e47c] NoiseAlert in anon function not parsed

Bugs that have been investigated and resolved somehow.

Moderator: GZDoom Developers

Forum rules
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.
Post Reply
User avatar
Matt
Posts: 9696
Joined: Sun Jan 04, 2004 5:37 pm
Preferred Pronouns: They/Them
Operating System Version (Optional): Debian Bullseye
Location: Gotham City SAR, Wyld-Lands of the Lotus People, Dominionist PetroConfederacy of Saudi Canadia
Contact:

[Commit 952e47c] NoiseAlert in anon function not parsed

Post by Matt »

Test file:

Code: Select all

actor zomn:zombieman replaces zombieman{
	states{
	pain:
//		POSS G 0 NoiseAlert(0,0)
		POSS G 0{NoiseAlert(0,0);}
		goto super::pain
	}
}
As above, trying to run it gets this:

Code: Select all

Script error, "decorate.noisealert.txt:DECORATE" line 5:
Expected ',', got '0'.
but if I comment out the other line instead it works as expected (if you use a non-alerting weapon to put the zombieman in pain then then other monsters will be awakened targeting the zombieman instead of you)
User avatar
Major Cooke
Posts: 8218
Joined: Sun Jan 28, 2007 3:55 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): Windows 10
Graphics Processor: nVidia with Vulkan support
Location: GZBoomer Town
Contact:

Re: [Commit 952e47c] NoiseAlert in anon function not parsed

Post by Major Cooke »

Try adding a space between 0 and {.
Blue Shadow
Posts: 5046
Joined: Sun Nov 14, 2010 12:59 am

Re: [Commit 952e47c] NoiseAlert in anon function not parsed

Post by Blue Shadow »

Could it be that it's expecting the function version of NoiseAlert instead of the [wiki=NoiseAlert]action special[/wiki]?
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49252
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: [Commit 952e47c] NoiseAlert in anon function not parsed

Post by Graf Zahl »

Damnit. I never considered this name clash.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49252
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: [Commit 952e47c] NoiseAlert in anon function not parsed

Post by Graf Zahl »

I renamed the internal function to SoundAlert. Not optimal but the only thing that could be done.
Post Reply

Return to “Closed Bugs [GZDoom]”