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



Reply to topic  [ 8 posts ] 
 Weapons wont categorize 
Author Message
User avatar

Joined: Sun Aug 02, 2009 11:16 pm
Posts: 7
Location: Purgatory
Reply with quote
Post Weapons wont categorize
Well you see, Vex finished the coding for the gun and then we worked our way through some errors, but in the end both of us couldn't find the gun in the guns section. I made sure that it had the AddToGroup = Private and it still didn't work :oops: . Any suggestions?


Sun Aug 09, 2009 8:25 am
Profile
User avatar

Joined: Sun Jan 11, 2009 10:54 am
Posts: 365
Reply with quote
Post Re: Weapons wont categorize
it should be
AddDevice = HDFirearm
PresetName = name
Description = blahblah
AddToGroup = your group

AND
Buyable = 1
for Buyable = 0 the weapon will obiously not show up in the list and for 1 it will show up


Sun Aug 09, 2009 8:29 am
Profile
User avatar

Joined: Sun Aug 02, 2009 11:16 pm
Posts: 7
Location: Purgatory
Reply with quote
Post Re: Weapons wont categorize
It still wont work even when I put Buyable = 1
Heres the code for the gun. *Note that there is stuff above it like magazines and such.
Code:
//////////
// Devices

AddDevice = HDFirearm
   PresetName = PTRS
   Description = A high caliber Russian sniper rifle, was originally manufactured in 1941 for use against Nazi Germany. Although likely to jam and all around obsolete, it still packs one hell of a punch.
   AddToGroup = V2 Arms Inc
Buyable = 1
   Mass = 16
   HitsMOs = 0
   GetsHitByMOs = 1
   SpriteFile = ContentFile
      FilePath = V2 Arms Inc.rte/Devices/Sprites/PTRS-sprite-gun.bmp
   FrameCount = 1
   SpriteOffset = Vector
      X = -17
      Y = -6
   EntryWound = AEmitter
      CopyOf = Dent Metal
   ExitWound = AEmitter
      CopyOf = Dent Metal
   GoldValue = 90
   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 = 75
   JointStiffness = 0.5
   JointOffset = Vector
      X = -8
      Y = 4
   DrawAfterParent = 0
   StanceOffset = Vector
      X = 3
      Y = 8
   SharpStanceOffset = Vector
      X = 6
      Y = 1
   SupportOffset = Vector
      X = 1
      Y = 4
   SharpLength = 520
   Magazine = Magazine
      CopyOf = Magazine Coalition Sniper Rifle
   Flash = Attachable
      CopyOf = Muzzle Flash Shotgun
   FireSound = Sound
      AddSample = ContentFile
         FilePath = V2 Arms Inc.rte/Devices/Sounds/sMilSniper_Fire.wav
   EmptySound = Sound
      AddSample = ContentFile
         FilePath = Base.rte/Devices/EmptyClick3.wav
   ReloadStartSound = Sound
      AddSample = ContentFile
         FilePath = V2 Arms Inc.rte/Devices/Sounds/GenReload00b.wav
   ReloadEndSound = Sound
      AddSample = ContentFile
         FilePath = V2 Arms Inc.rte/Devices/Sounds/GenReload12.wav
   RateOfFire = 45
   ReloadTime = 2800
   FullAuto = 0
   FireIgnoresThis = 1
   ShakeRange = 8
   SharpShakeRange = 0
   NoSupportFactor = 2.5
   ParticleSpreadRange = 0
   ShellSpreadRange = 4
   ShellAngVelRange = 2
   MuzzleOffset = Vector
      X = 16
      Y = -1
   EjectionOffset = Vector
      X = -1
      Y = -1


Sun Aug 09, 2009 8:52 am
Profile
User avatar

Joined: Sun Jan 11, 2009 10:54 am
Posts: 365
Reply with quote
Post Re: Weapons wont categorize
whait a sec...
does the mod eaven loads?
might want to check your .ini file again...


Sun Aug 09, 2009 9:40 am
Profile
User avatar

Joined: Sun Aug 02, 2009 11:16 pm
Posts: 7
Location: Purgatory
Reply with quote
Post Re: Weapons wont categorize
I thought that too, unfortunately it loads too fast so I can't catch it in time. Here's my .ini file, I don't see anything wrong with it... do you?
Code:
DataModule
   Author = Vexont and Zephyr
   ModuleName = V2-Arms-Inc
   IconFile = ContentFile
      Path = V2 Arms Inc.rte/ModuleIcon.bmp
IncludeFile = V2 Arms Inc.rte/Devices/Weapons/Index.ini


I have also tried the module name with:
V2 Arms Inc.
and V2 Arms Inc

EDIT:
I got it to work, but the sprite is messed up. I know why, but I forget how to get the palette... something to do with opening up another sprite with Paint...?


Mon Aug 10, 2009 1:53 am
Profile
User avatar

Joined: Mon Oct 06, 2008 2:04 am
Posts: 1559
Reply with quote
Post Re: Weapons wont categorize
Base.rte/palette.bmp


Mon Aug 10, 2009 2:13 am
Profile
User avatar

Joined: Wed May 20, 2009 10:06 am
Posts: 163
Location: Sweden
Reply with quote
Post Re: Weapons wont categorize
Because I'm somewhat of a nerd, I just thought I'd tell you that the PTRS is NOT a Sniper Rifle, and using it in such a way (as in CoD:WaW, which probably gave you the idea of making it), is not possible for a normal human, mainly because it's barrel weighs too much, thus making the gun imbalanced. The PTRS is in fact an Anti-Tank Rifle designed to be used with a bipod whilst lying down.
Fun fact: While a Barret M107 fires 12.7 bullets (50 caliber), the PTRS fires 14.5 bullets

Sorry for not contributing to the thread in a way you want, but I thought I'd give you some feedback on the gun anyways


Wed Aug 12, 2009 6:39 pm
Profile
User avatar

Joined: Sun Aug 02, 2009 11:16 pm
Posts: 7
Location: Purgatory
Reply with quote
Post Re: Weapons wont categorize
Woah, nice feedback. I didn't know that, but thanks! Now I know more about the PTRS and I know another gun nerd :J.


Sat Aug 15, 2009 11:24 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 8 posts ] 

Who is online

Users browsing this forum: No registered users


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.059s | 13 Queries | GZIP : Off ]