Jump to content
  • 0

GZDoom DECORATE acting funky


Question

actor ZombiePlasma : PlasmaBall replaces PlasmaBall
{
States
{
Spawn:
    APLS AABB 1 bright A_SpawnItemEx("APlasmaTrail", random(-1,1), random(-1,1), random(-1,1), random(-1,1), random(-1,1), random(-1,1))
    loop
Death:
    TNT1 AAAAAAAAAA 0 A_SpawnItemEx("APlasmaTrail", random(-6,6), random(-6,6), random(-6,6), random(-12,12), random(-12,12), random(-12,12))
    APBX A 2 bright
    APBX BCDE 2 bright
    stop
}
}

 

 

Execution could not continue.

Script error, line 577:
Sprite names must be exactly 4 characters
 

 

 

the sprite name is exactly 4 characters

there should be nothing else in the script making the gzdoom explode

 

but gzdoom exploded

why script error

Share this post


Link to post

6 answers to this question

Recommended Posts

  • 1

OH HECKING HECKITY HECK I FIGURED IT ALL OUT

 

IT WAS ACTUALLY A SEPERATE ACTOR WITH A STATE LABEL THAT DIDN'T HAVE A COLON AT THE END

 

 

also APLS AABB 1 bright A_SpawnItemEx("APlasmaTrail", random(-1,1), random(-1,1), random(-1,1), random(-1,1), random(-1,1), random(-1,1)) was line 557, not line 577

 

line 577 was a state label without a colon

 

i'm so goddamn dumb

 

Share this post


Link to post
  • 0

Which line is line 577?

It's possible there's actually a problem in your formatting before that line.

Edited by plums

Share this post


Link to post
  • 0

Whichever line is 577 is missing a space between the address and the reference sprite is about all I can probably glean from that. Basically its hard to tell what its wanting without knowing what exact line it is referencing.

 

Might be missing a space between Bright and A_SpawnItemEx

Edited by kalensar

Share this post


Link to post
  • 0

I copied your code sample to a WAD and it ran just fine. There must be a problem elsewhere in your file, like a missing brace.

Share this post


Link to post
  • 0
4 hours ago, watermelon eater gaming said:

Line 577 is APLS AABB 1 bright A_SpawnItemEx("APlasmaTrail", random(-1,1), random(-1,1), random(-1,1), random(-1,1), random(-1,1), random(-1,1))

 

I still have no idea why GZDoom is bombing

 

Taking these other answers in context, and having had this happen before too: The SPAWN line--- Highlight the entire line, delete it and then rewrite Spawn:

 

Ive had that happen before where there was no visible error but it was throwing an error because of some invisible character screwing it up somehow. It was the same where it was telling the line but everything looked correct. 

 

In my case the reason it happened was because it was a copy paste from a different document and SLADE kept it and GZD didn't like it. I have no idea how to explain it but the deleting the line and rewriting fixed the issue because it deleted whatever the invisible character was the Slade wasnt seeing. It may come down that you may have to hand write it rather than just copy paste it to fix it because the original source is copying a character that SLADE (or whatever you are writing in) won't register visible, but will still insert as a data point on the code line.

Edited by kalensar

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
Answer this question...

×   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...