watermelon eater gaming Posted May 6, 2024 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 0 Quote Share this post Link to post
1 watermelon eater gaming Posted May 7, 2024 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 1 Quote Share this post Link to post
0 plums Posted May 6, 2024 (edited) Which line is line 577? It's possible there's actually a problem in your formatting before that line. Edited May 6, 2024 by plums 0 Quote Share this post Link to post
0 kalensar Posted May 6, 2024 (edited) 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 May 6, 2024 by kalensar 0 Quote Share this post Link to post
0 watermelon eater gaming Posted May 6, 2024 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 0 Quote Share this post Link to post
0 Shepardus Posted May 6, 2024 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. 0 Quote Share this post Link to post
0 kalensar Posted May 7, 2024 (edited) 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 May 7, 2024 by kalensar 0 Quote Share this post Link to post
Question
watermelon eater gaming
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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.