That's a pity
Thanks for the fast reply, @boris, much appreciated.
Code: Select all
ZSCRIPT error in "00BaseControlText.pk3\zscript\Weapons\NJZS_Weapons.zs", line 3180. Expected identifier, got <Token.Whitespace ( )>.
Code: Select all
CLASS NJBluePuff : NJBulletPuff {
Default {
Scale 0.5;
RenderStyle "Add";
Alpha 0.7;
}
States
{
Spawn:
BPFF A 1 Bright;
BPFF A 0 A_Jump(24, "Rick01", "Rick02");
BPFF A 3 Bright;
BPFF B 4;
goto Melee;
Rick01:
BPFF A 0 Bright A_StartSound("puff/ricalways");
BPFF A 0 BRIGHT A_SpawnItemEx ("NJPuffSparkBlue", 0, 0, 0, frandom(7, 16)*((random(0, 1)*2)-1), frandom(7, 16)*((random(0, 1)*2)-1), frandom(7, 16)*((random(0, 1)*2)-1), 0, SXF_NOCHECKPOSITION, 0);
BPFF A 3 Bright;
BPFF B 4;
goto Melee;
Rick02:
BPFF A 0 Bright A_StartSound("puff/ricalways");
BPFF AA 0 BRIGHT A_SpawnItemEx ("NJPuffSparkBlue", 0, 0, 0, frandom(7, 16)*((random(0, 1)*2)-1), frandom(7, 16)*((random(0, 1)*2)-1), frandom(7, 16)*((random(0, 1)*2)-1), 0, SXF_NOCHECKPOSITION, 0);
BPFF A 3 Bright;
BPFF B 4;
goto Melee;
Melee:
BPFF C 4 A_SetTranslucent(0.4, 0);
BPFF D 4;
Stop;
}
}
Code: Select all
MODELDEF warning in "BaseModels.pk3\MODELDEF.000.TXT", line 224. DECORATE class "YellowTracer" does not exist.
Code: Select all
///////////////////////////////////////
//Yellow Tracer
///////////////////////////////////////
CLASS YellowTracer : FastProjectile {
Default {
Radius 4;
Height 4;
Scale 0.3;
Speed 75;
Damage 2;
PROJECTILE;
+FORCEXYBILLBOARD;
RenderStyle "Add";
Alpha 0.9;
}
States
{
Spawn:
YEL2 A 1 Bright;
Loop;
Death:
YEL2 A 1 Bright;
Stop;
}
}
Code: Select all
Model YellowTracer
{
Path "models"
SKIN 0 "tracery.png"
MODEL 0 "tracer.md3"
Scale 1.5 1.5 1.5
PITCHFROMMOMENTUM
FrameIndex YEL2 A 0 0
}
Code: Select all
GLDEFS warning in "00BaseControlText.pk3\gldefs/lights.txt", line 7179. DECORATE class "SpaceGlobe" does not exist.
UDB doesn't like if you have whitespace before flags or in dotted identifiert. So something like this is valid ZScript, but results in the error in UDB:Enjay wrote: ↑Mon Feb 17, 2025 3:42 pm
Here's an example:
UDB Warning:Code: Select all
ZSCRIPT error in "00BaseControlText.pk3\zscript\Weapons\NJZS_Weapons.zs", line 3180. Expected identifier, got <Token.Whitespace ( )>.
Code: Select all
+ FLATSPRITE
Armor. Saveamount 5;
Code: Select all
+FLATSPRITE
Armor.Saveamount 5;
When UDB encounters an error it'll stop parsing, so it doesn't know of the classes that are later used in MAPINFO or MODELDEF. The warnings should go away once the ZScript is parsed correctly.Enjay wrote: ↑Mon Feb 17, 2025 3:42 pm The following error is typical of one that gets repeated several hundred times:Code: Select all
MODELDEF warning in "BaseModels.pk3\MODELDEF.000.TXT", line 224. DECORATE class "YellowTracer" does not exist.
Code: Select all
States
{
Spawn:
TNT1 A 0;
POSS A 0 A_JumpIf(args[0] == 0, "12Plates");
POSS A 0 A_JumpIf(args[0] == 1, "09Plates");
POSS A 0 A_JumpIf(args[0] == 2, "06Plates");
POSS A 0 A_JumpIf(args[0] == 3, "03Plates");
12Plates:
POSS A -1;
Stop;
09Plates:
POSS B -1;
Stop;
06Plates:
POSS C -1;
Stop;
03Plates:
POSS D -1;
Stop;
}
Perhaps UDB thinks it's not reasonable to start a state label with a number?Wiki" wrote:A state label can be any alphanumeric string (within reason) and is not case sensitive.
Code: Select all
actor~:Medikit"replaces""Zombieman""600" {
inventory "." "amount" "1"
+"ACTOR" "." SHOOTABLE
states {
"Death" ".": :
\::\["RANDOM""(""1"",""2"")"
loop
}
}