Decorate Error!

Discuss all aspects related to modding Zandronum here.
Post Reply
DatFnafFan
New User
Posts: 5
Joined: Wed Aug 12, 2015 5:33 am
Location: Anywhere

Decorate Error!

#1

Post by DatFnafFan » Thu Aug 13, 2015 9:01 pm

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
Last edited by DatFnafFan on Thu Aug 13, 2015 9:05 pm, edited 1 time in total.
Zandronum, Best Doom Program Ever! :v:

Catastrophe
Retired Staff / Community Team Member
Posts: 2571
Joined: Sat Jun 02, 2012 2:44 am

RE: Decorate Error!

#2

Post by Catastrophe » Thu Aug 13, 2015 9:16 pm

Player.WeaponSlot 3, Shotgun2, SuperShotgun2,
Why do you have a comma for SuperShotgun2?
Last edited by Catastrophe on Thu Aug 13, 2015 9:16 pm, edited 1 time in total.

DatFnafFan
New User
Posts: 5
Joined: Wed Aug 12, 2015 5:33 am
Location: Anywhere

RE: Decorate Error!

#3

Post by DatFnafFan » Thu Aug 13, 2015 9:28 pm

Catastrophe wrote:
Player.WeaponSlot 3, Shotgun2, SuperShotgun2,
Why do you have a comma for SuperShotgun2?
Oh.. XD IT EVEN FIXED MY PROBLEM!
:wonk: now you know how much stupidity i have.
13%
Zandronum, Best Doom Program Ever! :v:

User avatar
Ænima
Addicted to Zandronum
Posts: 3583
Joined: Tue Jun 05, 2012 6:12 pm

RE: Decorate Error!

#4

Post by Ænima » Thu Aug 13, 2015 10:39 pm

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.
Reinforcements: midgame Survival joining/respawning
Doom64: Unabsolved: Doom64 + Diablo II
ZandroSkins: a pack made by our community
AeniPuffs: 3D blood and bullet puff effects, free to use for your own mods
Squad Radio: a WASD-based radio chat menu, add your own custom sounds!
Mercenaries (on hold)
Image

Post Reply