Data Realms Fan Forums
http://45.55.195.193/

Small problem with an AEmitter. (fixed)
http://45.55.195.193/viewtopic.php?f=1&t=46233
Page 1 of 1

Author:  gridbull [ Wed Dec 20, 2017 4:20 am ]
Post subject:  Small problem with an AEmitter. (fixed)

It's crashing on startup, and I cannot figure out why after several hours. I'd greatly appreciate some help. :(

Code:
AddEffect = MOPixel
   PresetName = ComboRifle Particle Small
   Mass = 100
   AirResistance = 0.1
   GlobalAccScalar = 0
   Sharpness = 0
   LifeTime = 100
   RestThreshold = 500
   HitsMOs = 1
   GetsHitByMOs = 0
   Color = Color
      R = 255
      G = 0
      B = 255
   Atom = Atom
      Material = Material
         CopyOf = Bullet Metal
      TrailColor = Color
         R = 255
         G = 226
         B = 0
      TrailLength = 1
   ScreenEffect = ContentFile
      FilePath = cindy.rte/weapons/ComboRifle/Glow.bmp
   EffectStartTime = 0
   EffectStopTime = 1000
   EffectStartStrength = 0.14
   EffectStopStrength = 0.0
   EffectAlwaysShows = 1

AddEffect = MOPixel
   PresetName = ComboRifle Shot Hit Glow
   Mass = 4
   PinStrength = 100
   LifeTime = 130
   RestThreshold = 500
   HitsMOs = 0
   GetsHitByMOs = 0
   Color = Color
      R = 255
      G = 0
      B = 255
   Atom = Atom
      Material = Material
         CopyOf = Bullet Metal
      TrailColor = Color
         R = 255
         G = 0
         B = 255
      TrailLength = 10
   ScreenEffect = ContentFile
      FilePath = cindy.rte/weapons/ComboRifle/Glow.bmp
   EffectStartTime = 0
   EffectStopTime = 100
   EffectStartStrength = 1.0
   EffectStopStrength = 0.0
   EffectAlwaysShows = 1


AddEffect = MOPixel
   PresetName = ComboRifle Shot Trail Glow
   Mass = 1
   AirResistance = 0.2
   LifeTime = 90
   RestThreshold = 500
   Sharpness = 15
   HitsMOs = 1
   GetsHitByMOs = 0
   Color = Color
      R = 255
      G = 0
      B = 255
   Atom = Atom
      Material = Material
         CopyOf = Bullet Metal
      TrailColor = Color
         R = 255
         G = 0
         B = 255
      TrailLength = 10
   EffectStartTime = 0
   EffectStopTime = 100
   EffectStartStrength = 0.5
   EffectStopStrength = 0.1
   EffectAlwaysShows = 1


AddEffect = MOPixel
   PresetName = ComboRifle Shot End Particle
   Mass = 0.79
   AirResistance = 0.06
   GlobalAccScalar = -0.05
   Sharpness = 19
   LifeTime = 250
   RestThreshold = 500
   HitsMOs = 1
   GetsHitByMOs = 0
   Color = Color
      R = 255
      G = 226
      B = 0
   Atom = Atom
      Material = Material
         CopyOf = Air
      TrailLength = 0

AddEffect = AEmitter
   PresetName = ComboRifle Blast   <---- it's breaking here, and I have no clue why.
   Mass = 0.5
   RestThreshold = -1
   LifeTime = 800
   HitsMOs = 1
   GlobalAccScalar = -0.051
   OrientToVel = 1
   AirResistance = 0.29
   GetsHitByMOs = 0
   FrameCount = 1
   SpriteOffset = Vector
      X = -8
      Y = -3
   AtomGroup = AtomGroup
      AutoGenerate = 1
      Material = Material
         CopyOf = Bullet Metal
      Resolution = 2
      Depth = 0
   DeepGroup = AtomGroup
      AutoGenerate = 1
      Material = Material
         CopyOf = Bullet Metal
      Resolution = 4
      Depth = 1
   DeepCheck = 0
   JointStrength = 10000
   JointStiffness = 1
   DrawAfterParent = 1
   EmissionAngle = Matrix
      AngleDegrees = 180
   AddEmission = Emission
      EmittedParticle = MOPixel
         CopyOf = ComboRifle Shot Trail Glow
      StopTimeMS = 750
      ParticlesPerMinute = 3600
      BurstSize = 3
      Spread = 0
      MaxVelocity = 10
      MinVelocity = 10
      PushesEmitter = 0
   AddEmission = Emission
      EmittedParticle = MOPixel
         CopyOf = ComboRifle Shot End Particle
      StartTimeMS = 740
      ParticlesPerMinute = 3700
      Spread = 3.14
      MaxVelocity = 16
      MinVelocity = 16
      PushesEmitter = 0
   EmissionEnabled = 1
   EmissionsIgnoreThis = 1
   BurstScale = 1
   BurstTriggered = 1
   Flash = None
   FlashOnlyOnBurst = 0
   GibImpulseLimit = 1
   AddGib = Gib
      GibParticle = MOPixel
         CopyOf = ComboRifle Particle Small
         PresetName = ComboRifle Vapour Particle Small
         Mass = 5
         LifeTime = 500
         GlobalAccScalar = 1.0
         AirResistance = 0.2
         EffectStopTime = 500
         Atom = Atom
            Material = Material
               CopyOf = Bullet Metal
            TrailColor = Color
               R = 255
               G = 0
               B = 255
         ScreenEffect = ContentFile
            FilePath = cindy.rte/weapons/ComboRifle/Glow.bmp
      Count = 12
      Spread = 3.14
      MaxVelocity = 10
      MinVelocity = 20
      InheritsVel = 0
   AddGib = Gib
      GibParticle = MOPixel
         CopyOf = ComboRifle Shot Hit Glow
      Count = 3
      InheritsVel = 0

AddAmmo = AEmitter
   PresetName = ComboRifle Ammo
   Mass = 0.00999
   HitsMOs = 0
   GetsHitByMOs = 0
   PinStrength = 1000
   SpriteFile = ContentFile
      FilePath = Base.rte/Null.bmp
   AirResistance = 0.02
   AirThreshold = 70
   LifeTime = 820
   FrameCount = 1
   SpriteOffset = Vector
      X = -1
      Y = -1
   AtomGroup = AtomGroup
      AutoGenerate = 1
      Material = Material
         CopyOf = Military Stuff
      Resolution = 2
      Depth = 0
   DeepGroup = AtomGroup
      AutoGenerate = 1
      Material = Material
         CopyOf = Military Stuff
      Resolution = 4
      Depth = 1
   DeepCheck = 0
   AddEmission = Emission
      EmittedParticle = AEmitter
         CopyOf = ComboRifle Blast
      ParticlesPerMinute = 1
      BurstSize = 14
      Spread = 0.2
      MaxVelocity = 130
      MinVelocity = 180
      PushesEmitter = 0
   EmissionEnabled = 1
   EmissionsIgnoreThis = 1
   BurstTriggered = 1
   AddEmission = Emission
      EmittedParticle = AEmitter
         CopyOf = ComboRifle Blast
      ParticlesPerMinute = 1
      BurstSize = 8
      Spread = 0.2
      MaxVelocity = 200
      MinVelocity = 230
      PushesEmitter = 0
   EmissionEnabled = 1
   EmissionsIgnoreThis = 1
   BurstTriggered = 1
   AddEmission = Emission
      EmittedParticle = AEmitter
         CopyOf = ComboRifle Blast
      ParticlesPerMinute = 1
      BurstSize = 8
      Spread = 0.3
      MaxVelocity = 130
      MinVelocity = 190
      PushesEmitter = 0
   EmissionEnabled = 1
   EmissionsIgnoreThis = 1
   BurstTriggered = 1
   AddEmission = Emission
      EmittedParticle = AEmitter
         CopyOf = ComboRifle Blast
      ParticlesPerMinute = 1
      BurstSize = 4
      Spread = 0.2
      MaxVelocity = 250
      MinVelocity = 290
      PushesEmitter = 0
   EmissionEnabled = 1
   EmissionsIgnoreThis = 1
   BurstTriggered = 1

AddAmmo = Round
   PresetName = Round ComboRifle
   ParticleCount = 1
   Particle = AEmitter
      CopyOf = ComboRifle Ammo
   Shell = MOSParticle
      CopyOf = Small Smoke Ball 1
   FireVelocity = 45
   ShellVelocity = 0
   Separation = 5

AddAmmo = Magazine
   PresetName = Magazine ComboRifle
   Mass = 2
   HitsMOs = 0
   GetsHitByMOs = 0
   SpriteFile = ContentFile
      FilePath = Base.rte/Null.bmp
   FrameCount = 1
   SpriteOffset = Vector
      X = -1
      Y = -1
   ParentOffset = Vector
      X = 0
      Y = 0
   AtomGroup = AtomGroup
      AutoGenerate = 1
      Material = Material
         CopyOf = Bullet Metal
      Resolution = 2
      Depth = 0
   DeepGroup = AtomGroup
      AutoGenerate = 1
      Material = Material
         CopyOf = Bullet Metal
      Resolution = 3
      Depth = 1
   DeepCheck = 0
   JointStrength = 200
   JointStiffness = 1
   DrawAfterParent = 1
   RoundCount = 4
   RTTRatio = 0
   RegularRound = Round
      CopyOf = Round ComboRifle
   TracerRound = None
   Discardable = 0

AddDevice = HDFirearm
   PresetName = Combo Rifle
   Description = A compact shotgun with a mini-digger attachment. WIP
   AddToGroup = Weapons
   AddToGroup = Primary Weapons
   AddToGroup = Light Weapons
   Mass = 12
   HitsMOs = 0
   GetsHitByMOs = 1
   ScriptPath = Base.rte/Scripts/ShotgunReload.lua
   SpriteFile = ContentFile
      FilePath = cindy.rte/weapons/ComboRifle/ComboRifle.bmp
   FrameCount = 1
   SpriteOffset = Vector
      X = -15
      Y = -4
   EntryWound = AEmitter
      CopyOf = Dent Metal
   ExitWound = AEmitter
      CopyOf = Dent Metal
   GoldValue = 140
   AtomGroup = AtomGroup
      AutoGenerate = 1
      Material = Material
         CopyOf = Military Stuff
      Resolution = 4
      Depth = 0
   DeepGroup = AtomGroup
      AutoGenerate = 1
      Material = Material
         CopyOf = Military Stuff
      Resolution = 4
      Depth = 10
   DeepCheck = 0
   JointStrength = 100
   JointStiffness = 0.5
   JointOffset = Vector
      X = -9
      Y = 3
   DrawAfterParent = 0
   StanceOffset = Vector
      X = 1
      Y = 6
   SharpStanceOffset = Vector
      X = 3
      Y = 0
   SupportOffset = Vector
      X = 4
      Y = 3
   SharpLength = 150
   Magazine = Magazine
      CopyOf = Magazine ComboRifle
   Flash = Attachable
      CopyOf = Muzzle Flash Shotgun
   FireSound = Sound
      AddSample = ContentFile
         FilePath = cindy.rte/weapons/ComboRifle/ComboRifleFire.wav
   EmptySound = Sound
      AddSample = ContentFile
         FilePath = Base.rte/Devices/EmptyClick3.wav
   ReloadStartSound = Sound
      AddSample = ContentFile
         FilePath = Base.rte/Devices/ShotgunShellIn.wav
   RateOfFire = 150
   ReloadTime = 300
   FullAuto = 0
   FireIgnoresThis = 1
   ShakeRange = 3
   SharpShakeRange = 2
   NoSupportFactor = 1.5
   ParticleSpreadRange = 0
   ShellSpreadRange = 8
   ShellAngVelRange = 2
   MuzzleOffset = Vector
      X = 15
      Y = 0
   EjectionOffset = Vector
      X = -4
      Y = -1
   AddPieSlice = Slice
      Description = Shotgun Mode
      Direction = 2
      Icon = Icon
         PresetName = Shotgun Mode
         FrameCount = 1
         BitmapFile = ContentFile
            FilePath = cindy.rte/weapons/ComboRifle/IconShotgun.bmp
      ScriptPath = cindy.rte/weapons/ComboRifle/ComboRifleSwitch.lua
      FunctionName = Shotgun
   AddPieSlice = Slice
      Description = Digger Mode
      Direction = 2
      Icon = Icon
         PresetName = Digger Mode
         FrameCount = 1
         BitmapFile = ContentFile
            FilePath = cindy.rte/weapons/ComboRifle/IconDigger.bmp
      ScriptPath = cindy.rte/weapons/ComboRifle/ComboRifleSwitch.lua
      FunctionName = Digger
   AddGib = Gib
      GibParticle = MOPixel
         CopyOf = Spark Yellow 1
      Count = 6
      Spread = 2.25
      MaxVelocity = 20
      MinVelocity = 8
   AddGib = Gib
      GibParticle = MOPixel
         CopyOf = Spark Yellow 2
      Count = 5
      Spread = 2.25
      MaxVelocity = 20
      MinVelocity = 8
   AddGib = Gib
      GibParticle = MOPixel
         CopyOf = Drop Oil
      Count = 4
      Spread = 2.25
      MaxVelocity = 10
      MinVelocity = 1
   AddGib = Gib
      GibParticle = MOSParticle
         CopyOf = Gib Metal Rust Micro A
      Count = 6
      Spread = 2.25
      MaxVelocity = 15
      MinVelocity = 5
   AddGib = Gib
      GibParticle = MOSParticle
         CopyOf = Gib Metal Grey Micro A
      Count = 5
      Spread = 2.25
      MaxVelocity = 15
      MinVelocity = 5
   AddGib = Gib
      GibParticle = MOSRotating
         CopyOf = Gib Device Small H
      Count = 1
      Spread = 2.25
      MaxVelocity = 10
      MinVelocity = 1
   AddGib = Gib
      GibParticle = MOSRotating
         CopyOf = Gib Device Small J
      Count = 1
      Spread = 2.25
      MaxVelocity = 10
      MinVelocity = 1
   GibWoundLimit = 7


it's giving me this error message:
Code:
---------------------------
RTE Aborted! (x_x)
---------------------------
Reading of a preset instance "ComboRifle Blast" of class AEmitter failed in file cindy.rte/weapons/ComboRifle/ComboRifle.ini, shortly before line #195

The last frame has been dumped to 'abortscreen.bmp'

You can copy this message with Ctrl+C
---------------------------
OK   
---------------------------


Thanks in advance.

Author:  CaveCricket48 [ Wed Dec 20, 2017 11:08 pm ]
Post subject:  Re: Small problem with an AEmitter.

I'm not seeing anything immediately obvious. Can you post the full mod?

Author:  gridbull [ Thu Dec 21, 2017 12:44 am ]
Post subject:  Re: Small problem with an AEmitter.

CaveCricket48 wrote:
I'm not seeing anything immediately obvious. Can you post the full mod?

After playing around with it for day or so I realized I'd forgotten a spritefile for it, I wasn't actually aware AEmitters needed a sprite, but there ya go. it's fixed now.

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