Jump to content

Decorate incompatibility


printz

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...