View unanswered posts | View active topics It is currently Thu Jan 09, 2025 11:33 pm



Reply to topic  [ 16 posts ]  Go to page 1, 2  Next
 What am i doing wrong? 
Author Message

Joined: Fri Jun 12, 2009 3:12 pm
Posts: 21
Reply with quote
Post 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


Last edited by HunterOfToast on Sun Jun 14, 2009 6:35 pm, edited 3 times in total.



Sun Jun 14, 2009 10:52 am
Profile
User avatar

Joined: Wed Jan 07, 2009 10:26 am
Posts: 4074
Location: That quaint little British colony down south
Reply with quote
Post 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.


Sun Jun 14, 2009 10:56 am
Profile WWW
User avatar

Joined: Sun Jul 13, 2008 9:57 am
Posts: 4886
Location: some compy
Reply with quote
Post Re: What am i doing wrong?
someone else might also comment about support not being for modding support.


Sun Jun 14, 2009 11:16 am
Profile WWW

Joined: Fri Jun 12, 2009 3:12 pm
Posts: 21
Reply with quote
Post Re: What am i doing wrong?
any Reason why it keeps crashing?


Sun Jun 14, 2009 11:28 am
Profile
User avatar

Joined: Wed Jan 07, 2009 10:26 am
Posts: 4074
Location: That quaint little British colony down south
Reply with quote
Post 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...


Sun Jun 14, 2009 11:31 am
Profile WWW

Joined: Fri Jun 12, 2009 3:12 pm
Posts: 21
Reply with quote
Post 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?


Sun Jun 14, 2009 12:40 pm
Profile
User avatar

Joined: Wed Jan 07, 2009 10:26 am
Posts: 4074
Location: That quaint little British colony down south
Reply with quote
Post Re: What am i doing wrong?
You probably want
Code:
DataModule
   ModuleName = Offhand Uzi
   IncludeFile = Modd.rte/Uzi offhand.ini


Sun Jun 14, 2009 12:46 pm
Profile WWW

Joined: Fri Jun 12, 2009 3:12 pm
Posts: 21
Reply with quote
Post 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 3445 times ]
Sun Jun 14, 2009 1:28 pm
Profile
User avatar

Joined: Fri Apr 27, 2007 4:55 pm
Posts: 1178
Location: America!
Reply with quote
Post Re: What am i doing wrong?
Set it to 1, or add a second image.


Mon Jun 15, 2009 6:04 am
Profile
User avatar

Joined: Sun Jul 13, 2008 9:57 am
Posts: 4886
Location: some compy
Reply with quote
Post 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.


Mon Jun 15, 2009 6:32 am
Profile WWW

Joined: Fri Jun 12, 2009 3:12 pm
Posts: 21
Reply with quote
Post 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


Mon Jun 15, 2009 9:37 am
Profile
User avatar

Joined: Wed Jan 07, 2009 10:26 am
Posts: 4074
Location: That quaint little British colony down south
Reply with quote
Post 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 159 times
Mon Jun 15, 2009 9:52 am
Profile WWW

Joined: Fri Jun 12, 2009 3:12 pm
Posts: 21
Reply with quote
Post Re: What am i doing wrong?
Thnks but what did you change?


Mon Jun 15, 2009 9:57 am
Profile
User avatar

Joined: Wed Jan 07, 2009 10:26 am
Posts: 4074
Location: That quaint little British colony down south
Reply with quote
Post 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.


Mon Jun 15, 2009 10:00 am
Profile WWW

Joined: Fri Jun 12, 2009 3:12 pm
Posts: 21
Reply with quote
Post Re: What am i doing wrong?
Soo simple...
Thank you Very much!


Mon Jun 15, 2009 10:14 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 16 posts ]  Go to page 1, 2  Next

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:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.050s | 16 Queries | GZIP : Off ]