[ZScript] A_Jump broken

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
Major Cooke
Posts: 8209
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:

[ZScript] A_Jump broken

Post by Major Cooke »

Using this newest commit, I compiled zdoom once more and it turns out that A_Jump statements are completely broken (using the D4D mod I sent you, Graf).

Code: Select all

"D4D.pk3:decorate/weapons/pistol.aed" line 476:
Too many arguments in call to A_Jump
Also:

Code: Select all

15>C:\Games\doom 2\zdoom\src\scripting\thingdef_data.cpp(455): warning C4018: '<': signed/unsigned mismatch
User avatar
Major Cooke
Posts: 8209
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: [ZScript] A_Jump broken

Post by Major Cooke »

This still persists after all the recent changes.

Code: Select all

Actor A
{
	var int user_a;
	+NOINTERACTION
	RenderStyle Add
	States
	{
	Spawn:
		PLAY A -1 NoDelay
		{
			return A_Jump(256,"S1","S2","S3");
		}
		
	S1:
	S2:
	S3:
		PLAY A 5
		Stop
	}
}
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49226
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: [ZScript] A_Jump broken

Post by Graf Zahl »

I haven't looked into it yet.
User avatar
Leonard2
Posts: 313
Joined: Tue Aug 14, 2012 6:10 pm

Re: [ZScript] A_Jump broken

Post by Leonard2 »

Here.
Should also make sure to disallow ellipses before the last parameter and print an error for that.
User avatar
Major Cooke
Posts: 8209
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: [ZScript] A_Jump broken

Post by Major Cooke »

Thanks for this!
Post Reply

Return to “Closed Bugs [GZDoom]”