Data Realms Fan Forums
http://45.55.195.193/

What am i doing wrong?
http://45.55.195.193/viewtopic.php?f=1&t=15361
Page 1 of 2

Author:  HunterOfToast [ Sun Jun 14, 2009 10:52 am ]
Post subject:  What am i doing wrong?

Well im trying to make an offhand uzi
but how???

I read on the wiki that you could make weapons offhand soo
i figured the uzi can wielded with a shield so it can be something like a dual
uzi thing

i did it like this is it right?
Code:
AddDevice = HDShield
   PresetName = Uzi offhand
   Description = Automatic sidearm favored by bandits. The uzi can be wielded with a shield.
   AddToGroup = Shields
   AddToGroup = Ronin Weapons
   Mass = 6
   HitsMOs = 0
   GetsHitByMOs = 1
   SpriteFile = ContentFile
      FilePath = Ronin.rte/Devices/Weapons/Sprites/UziA.bmp
   FrameCount = 2
   SpriteOffset = Vector
      X = -7
      Y = -3
   EntryWound = AEmitter
      CopyOf = Dent Metal
   ExitWound = AEmitter
      CopyOf = Dent Metal
   GoldValue = 14
   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 = 1
   JointStrength = 75
   JointStiffness = 0.5
   JointOffset = Vector
      X = -1
      Y = 3
   DrawAfterParent = 0
   OneHanded = 1
   StanceOffset = Vector
      X = 12
      Y = 0
   SharpStanceOffset = Vector
      X = 13
      Y = -2
   SupportOffset = Vector
      X = 4
      Y = 1
   SharpLength = 90
   Magazine = Magazine
      CopyOf = Magazine Uzi
   Flash = Attachable
      CopyOf = Muzzle Flash SMG
   FireSound = Sound
      AddSample = ContentFile
         FilePath = Base.rte/Devices/SMGs/Mp5 Single.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 = 1100
   ReloadTime = 1100
   FullAuto = 1
   FireIgnoresThis = 1
   ShakeRange = 8
   SharpShakeRange = 4
   NoSupportFactor = 1.4
   ParticleSpreadRange = 1.5
   ShellSpreadRange = 8
   ShellAngVelRange = 2
   MuzzleOffset = Vector
      X = 9
      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 = 5
      Spread = 2.25
      MaxVelocity = 10
      MinVelocity = 1
   AddGib = Gib
      GibParticle = MOSParticle
         CopyOf = Gib Metal Rust Micro A
      Count = 8
      Spread = 2.25
      MaxVelocity = 15
      MinVelocity = 5
   AddGib = Gib
      GibParticle = MOSParticle
         CopyOf = Gib Metal Grey Micro A
      Count = 12
      Spread = 2.25
      MaxVelocity = 15
      MinVelocity = 5
   AddGib = Gib
      GibParticle = MOSRotating
         CopyOf = Ronin Gib I
      Count = 1
      Spread = 2.25
      MaxVelocity = 10
      MinVelocity = 1
   GibWoundLimit = 3


And my index.ini looks like this ;
DataModule
ModuleName = Offhand Uzi
IncludeFile = Uzi offhand.ini
Please im trying to figure this out for a while
[Sorry for all these noobie questions :-( ]
Ps the files are here->C:\Program Files\Data Realms\Cortex Command2\Modd.rte

Author:  411570N3 [ Sun Jun 14, 2009 10:56 am ]
Post subject:  Re: What am i doing wrong?

You don't want AddToGroup = Weapons. You want AddToGroup = Shields.
Also, you don't need to copy anything apart from the AddDevice = HDFirearm line and below.
Oh and some people might reccomend you post massive blocks of code off-site, a site for which I suppose someone will suggest to you soon enough.

Author:  Geti [ Sun Jun 14, 2009 11:16 am ]
Post subject:  Re: What am i doing wrong?

someone else might also comment about support not being for modding support.

Author:  HunterOfToast [ Sun Jun 14, 2009 11:28 am ]
Post subject:  Re: What am i doing wrong?

any Reason why it keeps crashing?

Author:  411570N3 [ Sun Jun 14, 2009 11:31 am ]
Post subject:  Re: What am i doing wrong?

Well there probably is a reason it keeps crashing. Though unfortunately none of us can figure out this reason unless you tell us some more information...

Author:  HunterOfToast [ Sun Jun 14, 2009 12:40 pm ]
Post subject:  Re: What am i doing wrong?

well i know its the mod that let's the game crash soo...
Here is the Index.ini
It's probably wrong...
Code:
DataModule
   ModuleName = Offhand Uzi
   IncludeFile = Uzi offhand.ini


Is it wrong or not?

Author:  411570N3 [ Sun Jun 14, 2009 12:46 pm ]
Post subject:  Re: What am i doing wrong?

You probably want
Code:
DataModule
   ModuleName = Offhand Uzi
   IncludeFile = Modd.rte/Uzi offhand.ini

Author:  HunterOfToast [ Sun Jun 14, 2009 1:28 pm ]
Post subject:  Re: What am i doing wrong?

Quote:
Well there probably is a reason it keeps crashing. Though unfortunately none of us can figure out this reason unless you tell us some more information...


Must i Give any more info?
Still don't know whats what

Ps.thank you for all the help!

Sigh....

I moved the sprites and the sounds in the mod folder
changed the Offhand uzi.ini to read the sprites a sounds in the mod folder...
and
Still not working still giving the same error...

I counted to line 175 many times and i keep getting...
Code:
FrameCount = 2

Can this be causing a problem?

Attachments:
Sigh....bmp
Sigh....bmp [ 392.22 KiB | Viewed 3454 times ]

Author:  Lord Tim [ Mon Jun 15, 2009 6:04 am ]
Post subject:  Re: What am i doing wrong?

Set it to 1, or add a second image.

Author:  Geti [ Mon Jun 15, 2009 6:32 am ]
Post subject:  Re: What am i doing wrong?

also, dont count out lines! thats a massive waste of time. turn off word wrap if you're using notepad, and then press ctrl+G.

Author:  HunterOfToast [ Mon Jun 15, 2009 9:37 am ]
Post subject:  Re: What am i doing wrong?

This is getting a pain in the :razz: ...
I did that Ctl-g thing tiped line 175 and got
Code:
Magazine = Magazine
      CopyOf = Magazine Uzi

What could be wrong with that

Author:  411570N3 [ Mon Jun 15, 2009 9:52 am ]
Post subject:  Re: What am i doing wrong?

Replace the Uzi.ini in Cortex Command/Ronin.rte/Devices/Weapons/Machineguns/ with this one. Then it will work fine.

Attachments:
Uzi.ini [7.38 KiB]
Downloaded 160 times

Author:  HunterOfToast [ Mon Jun 15, 2009 9:57 am ]
Post subject:  Re: What am i doing wrong?

Thnks but what did you change?

Author:  411570N3 [ Mon Jun 15, 2009 10:00 am ]
Post subject:  Re: What am i doing wrong?

I just copied the AddDevice = HDFirearm entry, pasted it just below, changed AddToGroup = Weapons to AddToGroup = Shields and changed the PresetName so it didn't collide with the original.

Author:  HunterOfToast [ Mon Jun 15, 2009 10:14 am ]
Post subject:  Re: What am i doing wrong?

Soo simple...
Thank you Very much!

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