Page 1 of 1
Decorate Error!
Posted: Thu Aug 13, 2015 9:01 pm
by DatFnafFan
Soo. I Was Working On My Newest Wad And.
Script error, "RedOMG.wad:DECORATE" line 18:
Unexpected '.' in definition of 'Red'
i dont even know how to fix it. i tried everything i could.
heres the red player script
Spoiler: Script (Open)ACTOR Red : Doomplayer replaces Doomplayer
{
Speed 1.2
Health 150
Radius 16
Height 56
Mass 100
PainChance 255
Player.DisplayName "Red"
Player.DamageScreenColor "Black"
Player.CrouchSprite "PLYC"
Player.StartItem "Fist2"
Player.StartItem "Clip", 50
Player.WeaponSlot 1, Fist2, Chainsaw2
Player.WeaponSlot 2, Pistol2
Player.WeaponSlot 3, Shotgun2, SuperShotgun2,
Player.WeaponSlot 4, Chaingun2
Player.WeaponSlot 5, RPG2
Player.WeaponSlot 6, PSMRF2
Player.WeaponSlot 7, BFG90002
}
oh lord, i added this THREAD on the wrong thing. i dont even know if i did. im stupid XP
RE: Decorate Error!
Posted: Thu Aug 13, 2015 9:16 pm
by Catastrophe
Player.WeaponSlot 3, Shotgun2, SuperShotgun2,
Why do you have a comma for SuperShotgun2?
RE: Decorate Error!
Posted: Thu Aug 13, 2015 9:28 pm
by DatFnafFan
Catastrophe wrote:
Player.WeaponSlot 3, Shotgun2, SuperShotgun2,
Why do you have a comma for SuperShotgun2?
Oh.. XD IT EVEN FIXED MY PROBLEM!

now you know how much stupidity i have.
13%
RE: Decorate Error!
Posted: Thu Aug 13, 2015 10:39 pm
by Ænima
Well yeah, you basically fooled the engine into thinking that the next word (even though it's on the next line) was the next weapon for that slot, because of the comma.
Any time you get weird syntax errors at startup, look at the lines before and after the one it's reporting to you. Sometimes it's as simple as forgetting a parenthesis or having too many commas.