View unanswered posts | View active topics It is currently Tue Jan 07, 2025 1:00 am



Reply to topic  [ 12 posts ] 
 Sprites ? 
Author Message
User avatar

Joined: Sat Nov 03, 2007 7:58 pm
Posts: 64
Location: Izmir, Turkey .
Reply with quote
Post 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 .


Last edited by t3h_n00b on Sun Nov 30, 2008 10:56 am, edited 1 time in total.



Sun Nov 30, 2008 10:41 am
Profile WWW
User avatar

Joined: Sat Nov 03, 2007 7:58 pm
Posts: 64
Location: Izmir, Turkey .
Reply with quote
Post Re: Sprites ?
Tried replacing a mod's sprites with my ones, but the sprite looks like sh*t in game .

What is wrong ?


Sun Nov 30, 2008 10:44 am
Profile WWW
User avatar

Joined: Mon Aug 18, 2008 5:29 pm
Posts: 607
Location: Ukraine,Odessa in the ASC bunker-base
Reply with quote
Post 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)


Sun Nov 30, 2008 10:56 am
Profile
User avatar

Joined: Fri Mar 21, 2008 4:09 am
Posts: 65
Reply with quote
Post 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.


Sun Nov 30, 2008 4:11 pm
Profile
User avatar

Joined: Sat Nov 03, 2007 7:58 pm
Posts: 64
Location: Izmir, Turkey .
Reply with quote
Post 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:


Sun Nov 30, 2008 5:08 pm
Profile WWW
User avatar

Joined: Sun May 11, 2008 12:50 pm
Posts: 899
Reply with quote
Post Re: Sprites ?
Change your ini's "name" to "Index.ini" (without quotes) and add "DataModule" at the top (once again without quotes)


Sun Nov 30, 2008 5:25 pm
Profile WWW
User avatar

Joined: Sat Nov 03, 2007 7:58 pm
Posts: 64
Location: Izmir, Turkey .
Reply with quote
Post 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;


Sun Nov 30, 2008 5:37 pm
Profile WWW
User avatar

Joined: Sun May 11, 2008 12:50 pm
Posts: 899
Reply with quote
Post 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")


Sun Nov 30, 2008 5:45 pm
Profile WWW
User avatar

Joined: Sat Nov 03, 2007 7:58 pm
Posts: 64
Location: Izmir, Turkey .
Reply with quote
Post 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 ?


Sun Nov 30, 2008 5:58 pm
Profile WWW
User avatar

Joined: Wed Feb 14, 2007 9:34 pm
Posts: 883
Location: America
Reply with quote
Post 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


Sun Nov 30, 2008 6:30 pm
Profile
User avatar

Joined: Sat Nov 03, 2007 7:58 pm
Posts: 64
Location: Izmir, Turkey .
Reply with quote
Post Re: Sprites ?
Nah . Doesn't work .


Sun Nov 30, 2008 9:12 pm
Profile WWW
User avatar

Joined: Wed Feb 14, 2007 9:34 pm
Posts: 883
Location: America
Reply with quote
Post Re: Sprites ?
It has to go first, in front of the magazine, so it can preset it for your CopyOf's


Sun Nov 30, 2008 9:18 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 12 posts ] 

Who is online

Users browsing this forum: Google [Bot]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.055s | 14 Queries | GZIP : Off ]