Page 1 of 1

Decorate. An Issue.

Posted: Sat Nov 10, 2018 10:39 pm
by Beetow Brode
Okay so I renamed an already put in actor for a weapon I'm trying to make, and I don't understand why it keeps saying unexpected end of file.

Code: Select all

Actor LocketRauncher : Weapon
{
  Obituary "%o was obliterated by %k's HellStorm Cannon!"
  Weapon.SelectionOrder 2500
  Weapon.AmmoUse 1
  Weapon.AmmoGive 3
  Weapon.AmmoType "Rockets"
  +Weapon.NoAutoFire
  +Weapon.NoAutoAim
  Inventory.PickupMessage "You got the HellStorm Cannon"
  States
  {
  Ready:
    HSTM B 1 A_WeaponReady
    Loop
  Deselect:
    HSTM B 1 A_Lower
    Loop
  Select:
    HSTM B 1 A_Raise
    Loop
  Fire:
    HSTM C 4 Bright A_GunFlash
    HSTM D 0 Bright A_PlayWeaponSound("HellStorm/Fire")
    HSTM D 5 Bright A_FireCustomMissile("Reckket")
    HSTM EF 6 Bright
    HSTM B 6
    HSTM B 45 A_PlaySoundEx("HellStorm/Reload", "SoundSlot6", 0)
    Goto Ready
  Flash:
    TNT1 A 1
    Stop
  Spawn:
    HSTM A -1
    Stop
  }
}

ACTOR Reckket
{
  Radius 11
  Height 8
  Speed 20
  Damage 20
  Projectile
  +RANDOMIZE
  +DEHEXPLOSION
  +ROCKETTRAIL
  SeeSound "weapons/rocklf"
  DeathSound "weapons/rocklx"
  Obituary "$OB_MPROCKET" // "%o rode %k's rocket."
  States
  {
  Spawn:
    MISL A 1 Bright
    Loop
  Death:
    MISL B 8 Bright A_Explode
    MISL C 6 Bright
    MISL D 4 Bright
    Stop
}

Re: Decorate. An Issue.

Posted: Sat Nov 10, 2018 10:44 pm
by Arctangent
Your Reckket actor definition isn't closed. It has two open curly braces - which it should have - but only one has a closed one afterwards. Hence, the parser finds the end of the file when it doesn't expect it - because it expects the Reckket definition to be closed before that.

Re: Decorate. An Issue.

Posted: Sat Nov 10, 2018 10:52 pm
by Beetow Brode
oh my god, the sleep deprivation is getting to me...