Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Sign in to follow this  
printz

Decorate incompatibility

Recommended Posts

There's a major incompatibility: it thinks that BRIGHT is a codepointer and quits processing the DECORATE states in the EDF thingtype block. How has Essel coped with this during his importing of realm667 monsters into his mod?

Here's the warning/error output:

E_ProcessEDF: Loading root lump.

Error on line 3 of DECORATE state block:
  Expected an end of line or ( but found a text token with value 'A_Look'
Warning: couldn't attach DECORATE states to thing 'BruiserDemon'.
DoPSNeedBrightOrAction: unknown action Bright
Warning: couldn't attach DECORATE states to thing 'BruiserBall'.
DoPSNeedBrightOrAction: unknown action BRIGHT
Warning: couldn't attach DECORATE states to thing 'BruiserBall2'.
DoPSNeedBrightOrAction: unknown action Bright
Warning: couldn't attach DECORATE states to thing 'BruiserBallTrail'.
Error on line 4 of DECORATE state block:
  Expected an end of line or ( but found a text token with value 'A_PlaySoundEx'

Warning: couldn't attach DECORATE states to thing 'BruiserFire'.
 10 warnings occured during EDF processing.

Share this post


Link to post

Here's for BruiserBall2:

	States
	@"
	Spawn: 
		BRB2 AB 6 BRIGHT 
		Loop
	Death:
		BRB2 CDEFGHI 3 Bright
		Stop
	"@
Were you never faced with the case when you had to use BRIGHT Decorate syntax frames?

The BruiserDemon and the BruiserFire objects show different error messages simply because the first caught Bright states also had codepointers:
BruiserDemon:
	States
	@"
	Spawn:
		BRUS AB 10 Bright A_Look 
		Loop
BruiserFire:
    	States
    	@"
    	Spawn:
		XXBF A 0 Bright
		XXBF A 0 Bright A_PlaySoundEx(barexp, chan_auto)

Share this post


Link to post

Like the last time you found an error such as this, it was the case sensitivity of a string comparison operation being accidentally enforced:

// Original code:
if(!QStrCaseCmp(ps->tokenbuffer, "bright"))

// Incorrect code translated to C++ qstring class:
if(*ps->tokenbuffer == "bright")

// Corrected code I'm about to commit:
if(!ps->tokenbuffer->strCaseCmp("bright"))

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  
×