RuneStorm
https://www.runestorm.com/forums/

UDE Compiler don't like me.
https://www.runestorm.com/forums/viewtopic.php?f=69&t=74888
Page 1 of 1

Author:  Glosmostinex [ Thu Jan 22, 2009 2:06 pm ]
Post subject:  UDE Compiler don't like me.

well, I'm making a simple monster pack, and I decided to make a Slith that uses the BW Flamethrower primary. so, I've duplicated SMP Slith classes, and placed them in my package. then, I compiled it WITHOUT changing anything. it says that there is an error,
" You were missing a character in your declaration. Probably a '(' or a ')'. "
the thing is, I don't changed ANYTHING. and the thing doesn't makes the .u
(how satore(the author) compiled the pack? he used some sort of forced compile or what?)
Code:
//================================================================================
// SMPSlithAmmo.
//================================================================================

class MEUSlithAmmo extends Ammunition
   NoNativeReplication;

defaultproperties
{
    bTossed=True

    bLeadTarget=True

    bSplashDamage=True

    ProjectileClass=Class'SMPSlithProj'


}

this one is the first to give an error. so, I've placed an " ; " after the ...extends ammunition and deleted the NoNative... and it worked. then, the problem was with...

Code:
//================================================================================
// SMPSlith.
//================================================================================

class MEUSlith extends SMPMonster
   Config(User);

var() int ClawDamage;
var() Sound SLICK;
var() Sound SLASH;
var() Sound slice;
var() Sound slitherSound;
var() Sound Swim;
var() Sound DIVE;
var() Sound Surface;
var() Sound SCRATCH;
var() Sound Charge;

function Vector GetFireStart (Vector X, Vector Y, Vector Z)
{
   return UnknownFunction215(UnknownFunction215(Location,UnknownFunction213(UnknownFunction171(0.89999998,CollisionRadius),X)),UnknownFunction213(UnknownFunction171(0.81,CollisionRadius),Z));
}

function ShootTarget ()
{
   FireProjectile();
}

event PhysicsVolumeChange (PhysicsVolume NewVolume)
{
   Super.PhysicsVolumeChange(NewVolume);
   if ( NewVolume.bWaterVolume )
   {
      SetAnimAction('DIVE');
   } else {
      SetAnimAction('Surface');
   }
}

function ClawDamageTarget ()
{
   if (! MeleeDamageTarget(ClawDamage,UnknownFunction213(UnknownFunction171(ClawDamage,1000.0),UnknownFunction226(UnknownFunction216(Controller.Target.Location,Location)))) ) goto JL003E;
}

function PlayVictory ()
{
   if ( UnknownFunction155(Physics,3) )
   {
      UnknownFunction259('ChargeUp',0.31,0.1);
      UnknownFunction264(Charge,3);
   }
}

simulated function PlayDirectionalHit (Vector HitLoc)
{
   if ( UnknownFunction154(Physics,3) )
   {
      UnknownFunction294('WTakeHit',0.05);
   } else {
      UnknownFunction294('LTakeHit',0.05);
   }
}

function PlayDyingSound ()
{
   if ( bGibbed )
   {
      UnknownFunction264(GibGroupClass.GibSound(),2,UnknownFunction171(2.5,TransientSoundVolume),True,500.0);
      return;
   }
   if ( PhysicsVolume.bWaterVolume )
   {
      UnknownFunction264(DeathSound[1],2,UnknownFunction171(2.5,TransientSoundVolume),True,500.0);
   } else {
      UnknownFunction264(DeathSound[0],2,UnknownFunction171(2.5,TransientSoundVolume),True,500.0);
   }
}

function RangedAttack (Actor A)
{
   local float decision;

   if ( bShotAnim )
   {
      return;
   }
   bShotAnim = True;
   decision = UnknownFunction195();
   if ( UnknownFunction154(Physics,3) )
   {
      if ( UnknownFunction176(UnknownFunction225(UnknownFunction216(A.Location,Location)),UnknownFunction174(UnknownFunction174(MeleeRange,CollisionRadius),A.CollisionRadius)) )
      {
         if ( UnknownFunction176(decision,0.5) )
         {
            SetAnimAction('CLAW1');
         } else {
            SetAnimAction('CLAW2');
         }
      } else {
         if ( UnknownFunction176(UnknownFunction225(UnknownFunction216(A.Location,Location)),UnknownFunction174(UnknownFunction174(1000,CollisionRadius),A.CollisionRadius)) )
         {
            SetAnimAction('Shoot2');
         }
      }
   } else {
      if ( UnknownFunction176(UnknownFunction225(UnknownFunction216(A.Location,Location)),UnknownFunction174(UnknownFunction174(MeleeRange,CollisionRadius),A.CollisionRadius)) )
      {
         if ( UnknownFunction176(decision,0.5) )
         {
            SetAnimAction('Punch');
         } else {
            SetAnimAction('SLASH');
         }
         Controller.bPreparingMove = True;
         Acceleration = vect(0.00,0.00,0.00);
      } else {
         SetAnimAction('Shoot1');
      }
   }
}

simulated function PlayDying (Class<DamageType> DamageType, Vector HitLoc)
{
   AmbientSound = None;
   bCanTeleport = False;
   bReplicateMovement = False;
   bTearOff = True;
   bPlayedDeath = True;
   HitDamageType = DamageType;
   TakeHitLocation = HitLoc;
   LifeSpan = RagdollLifeSpan;
   UnknownFunction113('Dying');
   UnknownFunction223(Velocity,TearOffMomentum);
   BaseEyeHeight = Default.BaseEyeHeight;
   if ( PhysicsVolume.bWaterVolume )
   {
      UnknownFunction259('Dead2',1.25,0.05);
   } else {
      UnknownFunction3970(2);
      UnknownFunction259('Dead1',1.25,0.05);
   }
}

simulated function AnimEnd (int Channel)
{
   local float decision;

   if ( UnknownFunction154(Channel,0) )
   {
      decision = UnknownFunction195();
      if ( UnknownFunction154(Physics,3) )
      {
         IdleWeaponAnim = 'Swim';
      } else {
         if ( UnknownFunction176(decision,0.81) )
         {
            IdleWeaponAnim = 'Breath';
         } else {
            if ( UnknownFunction176(decision,0.89999998) )
            {
               IdleWeaponAnim = 'SLICK';
            } else {
               IdleWeaponAnim = 'SCRATCH';
            }
         }
      }
   }
   Super.AnimEnd(Channel);
}

defaultproperties
{
    ClawDamage=25

    SLASH=Sound'satoreMonsterPackSound.Slith.yell4sl'

    slitherSound=Sound'satoreMonsterPackSound.Slith.slithr1sl'

    Swim=Sound'satoreMonsterPackSound.Slith.swim1sl'

    DIVE=Sound'satoreMonsterPackSound.Slith.dive2sl'

    Surface=Sound'satoreMonsterPackSound.Slith.surf1sl'

    SCRATCH=Sound'satoreMonsterPackSound.Slith.scratch1sl'

    ReducedDamTypes=

    ReducedDamPct=0.00

    MonsterName="Slith"

    bCanDodge=False

    HitSound(0)=Sound'satoreMonsterPackSound.Slith.injur1sl'

    HitSound(1)=Sound'satoreMonsterPackSound.Slith.injur2sl'

    DeathSound(0)=Sound'satoreMonsterPackSound.Slith.deathLsl'

    DeathSound(1)=Sound'satoreMonsterPackSound.Slith.deathWsl'

    AmmunitionClass=Class'SMPSlithAmmo'

    ScoringValue=6

    bCanStrafe=False

    Visibility=150

    SightRadius=2000.00

    MeleeRange=50.00

    GroundSpeed=370.00

    WaterSpeed=350.00

    AccelRate=1400.00

    JumpZ=120.00

    Health=210

    UnderWaterTime=-1.00

    MovementAnims(0)=SLITHER

    MovementAnims(1)=SLITHER

    MovementAnims(2)=SLITHER

    MovementAnims(3)=SLITHER

    TurnLeftAnim=SLITHER

    TurnRightAnim=SLITHER

    SwimAnims(0)=Swim

    SwimAnims(1)=Swim

    SwimAnims(2)=Swim

    SwimAnims(3)=Swim

    CrouchAnims(0)=SLITHER

    CrouchAnims(1)=SLITHER

    CrouchAnims(2)=SLITHER

    CrouchAnims(3)=SLITHER

    WalkAnims(0)=SLITHER

    WalkAnims(1)=SLITHER

    WalkAnims(2)=SLITHER

    WalkAnims(3)=SLITHER

    AirAnims(0)=Breath

    AirAnims(1)=Breath

    AirAnims(2)=Breath

    AirAnims(3)=Breath

    TakeoffAnims(0)=DIVE

    TakeoffAnims(1)=DIVE

    TakeoffAnims(2)=DIVE

    TakeoffAnims(3)=DIVE

    LandAnims(0)=Breath

    LandAnims(1)=Breath

    LandAnims(2)=Breath

    LandAnims(3)=Breath

    DoubleJumpAnims(0)=DIVE

    DoubleJumpAnims(1)=DIVE

    DoubleJumpAnims(2)=DIVE

    DoubleJumpAnims(3)=DIVE

    DodgeAnims(0)=DIVE

    DodgeAnims(1)=DIVE

    DodgeAnims(2)=DIVE

    DodgeAnims(3)=DIVE

    AirStillAnim=Falling

    TakeoffStillAnim=Surface

    CrouchTurnRightAnim=SLITHER

    CrouchTurnLeftAnim=SLITHER

    IdleCrouchAnim=SLITHER

    IdleWeaponAnim=SCRATCH

    IdleRestAnim=Breath

    AmbientSound=Sound'satoreMonsterPackSound.Slith.amb1sl'

    Mesh=VertMesh'satoreMonsterPackMeshes.Slith1'

    Skins=

    CollisionRadius=48.00

    CollisionHeight=47.00

    Mass=200.00

    Buoyancy=200.00

}


this code.
and what the hell are these "UnknownFunctionX"? why "unknown" if people use and looks like they know what it does? :blink:

it looks like Satore compiled it even with errors(and the Monster pack works perfectly) so why the UDE compiler don't ignore these errors? :roll:

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/