Data Realms Fan Forums
http://45.55.195.193/

Sprites ?
http://45.55.195.193/viewtopic.php?f=1&t=12859
Page 1 of 1

Author:  t3h_n00b [ Sun Nov 30, 2008 10:41 am ]
Post subject:  Sprites ?

Hello .

I made a sprite, that you can see below .

I tried to get it in game, with editing a default weapon's ini file (but not replacing it) .


Code:
AddAmmo = Magazine
   PresetName = Laos Magazine
   Mass = 3
   HitsMOs = 0
   GetsHitByMOs = 0
   SpriteFile = ContentFile
      FilePath = Laos.rte/Laosmag.bmp
   FrameCount = 1
   SpriteOffset = Vector
      X = -3
      Y = -4
   EntryWound = AEmitter
      CopyOf = Dent Metal
   ExitWound = AEmitter
      CopyOf = Dent Metal
   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 = 1
   JointStrength = 200
   JointStiffness = 1
   JointOffset = Vector
      X = 2
      Y = -2
   ParentOffset = Vector
      X = 2.7
      Y = 1
   DrawAfterParent = 0
   RoundCount = 7
   RTTRatio = 2
   RegularRound = Round
      CopyOf = Laos Round
   TracerRound = Round
      CopyOf = Laos Round Tracer
   AddGib = Gib
      GibParticle = MOPixel
         CopyOf = Spark Yellow 1
      Count = 5
      Spread = 2.25
      MaxVelocity = 20
      MinVelocity = 8
   AddGib = Gib
      GibParticle = MOSParticle
         CopyOf = Gib Metal Rust Micro A
      Count = 4
      Spread = 2.25
      MaxVelocity = 18
      MinVelocity = 9
   GibWoundLimit = 2

AddDevice = HDFirearm
   PresetName = Laos HMG
   AddToGroup = Weapons
   AddToGroup = Rifles
   Description = Based on the PKM - Pecheneg, the Eastern Block weapon uses 7.62MM bullets, pierces through many objects .
   Mass = 15
   HitsMOs = 0
   GetsHitByMOs = 1
   SpriteFile = ContentFile
      FilePath = Laos.rte/Laos000.bmp
   FrameCount = 2
   SpriteOffset = Vector
      X = -14
      Y = -5
   EntryWound = AEmitter
      CopyOf = Dent Metal
   ExitWound = AEmitter
      CopyOf = Dent Metal
   GoldValue = 50
   AtomGroup = AtomGroup
      AutoGenerate = 1
      Material = Material
         CopyOf = Guns
      Resolution = 4
      Depth = 0
   DeepGroup = AtomGroup
      AutoGenerate = 1
      Material = Material
         CopyOf = Guns
      Resolution = 4
      Depth = 10
   DeepCheck = 1
   JointStrength = 75
   JointStiffness = 0.5
   JointOffset = Vector
      X = -5
      Y = 2
   DrawAfterParent = 0
   StanceOffset = Vector
      X = 3
      Y = 4
   SharpStanceOffset = Vector
      X = 9
      Y = 2
   SupportOffset = Vector
      X = 5
      Y = 2
   SharpLength = 310
   Magazine = Magazine
      CopyOf = Laos Magazine
   Flash = Attachable
      CopyOf = Muzzle Flash SMG
   FireSound = Sound

      AddSample = ContentFile
         FilePath = Laos.rte/laosfire.wav

   EmptySound = Sound
      AddSample = ContentFile
         FilePath = Base.rte/Devices/EmptyClick3.wav
   ReloadStartSound = Sound
      AddSample = ContentFile
         FilePath = Base.rte/Devices/ReloadStart.wav
   ReloadEndSound = Sound
      AddSample = ContentFile
         FilePath = Base.rte/Devices/ReloadEnd.wav
   RateOfFire = 220
   ReloadTime = 2060
   FullAuto = 0
   FireIgnoresThis = 1
   ShakeRange = 10
   SharpShakeRange = 1
   NoSupportFactor = 2
   ParticleSpreadRange = 1
   ShellSpreadRange = 4
   ShellAngVelRange = 6
   MuzzleOffset = Vector
      X = 15
      Y = 0
   EjectionOffset = Vector
      X = -1
      Y = -1
   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 = 10
      Spread = 2.25
      MaxVelocity = 15
      MinVelocity = 5
   AddGib = Gib
      GibParticle = MOSParticle
         CopyOf = Gib Metal Grey Micro A
      Count = 14
      Spread = 2.25
      MaxVelocity = 15
      MinVelocity = 5
   AddGib = Gib
      GibParticle = MOSRotating
         CopyOf = Gib Device Small J
      Count = 1
      Spread = 2.25
      MaxVelocity = 10
      MinVelocity = 1
   AddGib = Gib
      GibParticle = MOSRotating
         CopyOf = Gib Device Small H
      Count = 1
      Spread = 2.25
      MaxVelocity = 10
      MinVelocity = 1
   GibWoundLimit = 6


Well, when I put my RTE file and run CC, it always crashes when reading the Laos.rte file .

Can anyone help me ?

Thanks .

Author:  t3h_n00b [ Sun Nov 30, 2008 10:44 am ]
Post subject:  Re: Sprites ?

Tried replacing a mod's sprites with my ones, but the sprite looks like sh*t in game .

What is wrong ?

Author:  grenade [ Sun Nov 30, 2008 10:56 am ]
Post subject:  Re: Sprites ?

It is not converted to cc palete . To convert

1. copy+paste palete bmp file in your laos rte (the palete is in base.rte)

2.Using paint open+cut everything and save .

3. than open your copy of palete and paste your sprite there .

4. than make everything that you need (i think this part dont need explaination)

Author:  MaGmA [ Sun Nov 30, 2008 4:11 pm ]
Post subject:  Re: Sprites ?

I do not feel like downloading your mod just to find one thing. So can you please tell me what line it said the game crashed on in the error message that comes up?


Sprite looks good also.

Edit: After briefly looking through your code, I couldn't really see anything wrong. So the Line with the error with help. And unless you want a HMG that fires a 7 round clip semi-automatic, I suggest you change FullAuto = 0 and RoundCount = 7.

Author:  t3h_n00b [ Sun Nov 30, 2008 5:08 pm ]
Post subject:  Re: Sprites ?

I don't :]

As I said, it is based on a default gun's INI, that I would change later .

Well, here it is:

Author:  Roon3 [ Sun Nov 30, 2008 5:25 pm ]
Post subject:  Re: Sprites ?

Change your ini's "name" to "Index.ini" (without quotes) and add "DataModule" at the top (once again without quotes)

Author:  t3h_n00b [ Sun Nov 30, 2008 5:37 pm ]
Post subject:  Re: Sprites ?

OK, I changed the INI a little .


Contents of "Index.INI"
Code:
DataModule
AddAmmo = Magazine
   PresetName = Laos Magazine
   Mass = 3
   HitsMOs = 0
   GetsHitByMOs = 0
   SpriteFile = ContentFile
      FilePath = Laos.rte/Laosmag.bmp
   FrameCount = 1
   SpriteOffset = Vector
      X = -3
      Y = -4
   EntryWound = AEmitter
      CopyOf = Dent Metal
   ExitWound = AEmitter
      CopyOf = Dent Metal
   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 = 1
   JointStrength = 200
   JointStiffness = 1
   JointOffset = Vector
      X = 2
      Y = -2
   ParentOffset = Vector
      X = 2.7
      Y = 1
   DrawAfterParent = 0
   RoundCount = 120
   RTTRatio = 2
   RegularRound = Round
      CopyOf = Round
   TracerRound = Round
      CopyOf = Round Tracer
   AddGib = Gib
      GibParticle = MOPixel
         CopyOf = Spark Yellow 1
      Count = 5
      Spread = 2.25
      MaxVelocity = 20
      MinVelocity = 8
   AddGib = Gib
      GibParticle = MOSParticle
         CopyOf = Gib Metal Rust Micro A
      Count = 4
      Spread = 2.25
      MaxVelocity = 18
      MinVelocity = 9
   GibWoundLimit = 2

AddDevice = HDFirearm
   PresetName = Laos HMG
   AddToGroup = Weapons
   AddToGroup = Rifles
   Description = Based on the PKM - Pecheneg, the Eastern Block weapon uses 7.62MM bullets, pierces through many objects .
   Mass = 15
   HitsMOs = 0
   GetsHitByMOs = 1
   SpriteFile = ContentFile
      FilePath = Laos.rte/Laos000.bmp
   FrameCount = 2
   SpriteOffset = Vector
      X = -14
      Y = -5
   EntryWound = AEmitter
      CopyOf = Dent Metal
   ExitWound = AEmitter
      CopyOf = Dent Metal
   GoldValue = 50
   AtomGroup = AtomGroup
      AutoGenerate = 1
      Material = Material
         CopyOf = Guns
      Resolution = 4
      Depth = 0
   DeepGroup = AtomGroup
      AutoGenerate = 1
      Material = Material
         CopyOf = Guns
      Resolution = 4
      Depth = 10
   DeepCheck = 1
   JointStrength = 75
   JointStiffness = 0.5
   JointOffset = Vector
      X = -5
      Y = 2
   DrawAfterParent = 0
   StanceOffset = Vector
      X = 3
      Y = 4
   SharpStanceOffset = Vector
      X = 9
      Y = 2
   SupportOffset = Vector
      X = 5
      Y = 2
   SharpLength = 310
   Magazine = Magazine
      CopyOf = Laos Magazine
   Flash = Attachable
      CopyOf = Muzzle Flash SMG
   FireSound = Sound

      AddSample = ContentFile
         FilePath = Laos.rte/laosfire.wav

   EmptySound = Sound
      AddSample = ContentFile
         FilePath = Base.rte/Devices/EmptyClick3.wav
   ReloadStartSound = Sound
      AddSample = ContentFile
         FilePath = Base.rte/Devices/ReloadStart.wav
   ReloadEndSound = Sound
      AddSample = ContentFile
         FilePath = Base.rte/Devices/ReloadEnd.wav
   RateOfFire = 300
   ReloadTime = 2500
   FullAuto = 1
   FireIgnoresThis = 1
   ShakeRange = 10
   SharpShakeRange = 1
   NoSupportFactor = 2
   ParticleSpreadRange = 1
   ShellSpreadRange = 4
   ShellAngVelRange = 6
   MuzzleOffset = Vector
      X = 15
      Y = 0
   EjectionOffset = Vector
      X = -1
      Y = -1
   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 = 10
      Spread = 2.25
      MaxVelocity = 15
      MinVelocity = 5
   AddGib = Gib
      GibParticle = MOSParticle
         CopyOf = Gib Metal Grey Micro A
      Count = 14
      Spread = 2.25
      MaxVelocity = 15
      MinVelocity = 5
   AddGib = Gib
      GibParticle = MOSRotating
         CopyOf = Gib Device Small J
      Count = 1
      Spread = 2.25
      MaxVelocity = 10
      MinVelocity = 1
   AddGib = Gib
      GibParticle = MOSRotating
         CopyOf = Gib Device Small H
      Count = 1
      Spread = 2.25
      MaxVelocity = 10
      MinVelocity = 1
   GibWoundLimit = 6


But this time I get this;

Author:  Roon3 [ Sun Nov 30, 2008 5:45 pm ]
Post subject:  Re: Sprites ?

Code:
   RegularRound = Round
      CopyOf = Round
   TracerRound = Round
      CopyOf = Round Tracer


"Round" isn't defined, create a MOPixel, then a round with "Round" as its name. (Do the same for "Round Tracer")

Author:  t3h_n00b [ Sun Nov 30, 2008 5:58 pm ]
Post subject:  Re: Sprites ?

Code:
   RegularRound = Round
      CopyOf = Round1
   AddGib = Gib
      GibParticle = MOPixel
         CopyOf = Round1
      Count = 5
      Spread = 2.25
      MaxVelocity = 20
      MinVelocity = 8
        AddEffect = MOPixel
       CopyOf = Round1
       PresetName = Round1
       Mass = 0.4
       Sharpness = 14
       Color = Color
      R = 255
      G = 226
      B = 0
          Atom = Atom
      Material = Material
         CopyOf = Round
      TrailColor = Color
         R = 255
         G = 226
         B = 0
      TrailLength = 45


Tried both gib and MOPixel, it doesn't run ?

Author:  Toes from Europe [ Sun Nov 30, 2008 6:30 pm ]
Post subject:  Re: Sprites ?

Code:
AddEffect = MOPixel
   PresetName = Bullet [name]
   Mass = 0.8
   LifeTime = 750
   Sharpness = 2
   HitsMOs = 1
   GetsHitByMOs = 0
   Color = Color
      R = 210
      G = 198
      B = 178
   Atom = Atom
      Material = Material
         CopyOf = Bullet Metal
      TrailColor = Color
         R = 210
         G = 198
         B = 178
      TrailLength = 27

AddAmmo = Round
   PresetName = Round [name]
   ParticleCount = 1
   Particle = MOPixel
      CopyOf = Bullet [name]
   Shell = MOSParticle
      CopyOf = Shell
   FireVelocity = 100
   ShellVelocity = 0
   Separation = 4

Try using this

Author:  t3h_n00b [ Sun Nov 30, 2008 9:12 pm ]
Post subject:  Re: Sprites ?

Nah . Doesn't work .

Author:  Toes from Europe [ Sun Nov 30, 2008 9:18 pm ]
Post subject:  Re: Sprites ?

It has to go first, in front of the magazine, so it can preset it for your CopyOf's

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