Data Realms Fan Forums
http://45.55.195.193/

Help me with my gun plz
http://45.55.195.193/viewtopic.php?f=1&t=11808
Page 1 of 1

Author:  piefaced [ Sun Jul 27, 2008 5:18 pm ]
Post subject:  Help me with my gun plz

Hi im new, this is my first time trying to make a mod can someone tell em how to fix it plz
Here is the problem

|Referring to an instance ('Magazine Pug') to copy from that hasn't been defined! in pugcannon.rte/pugcannon.ini at line 13!|

Code:
   Magazine = Magazine
     line 13     > CopyOf = Magazine Pug


The magazine
Code:
AddAmmo = Magazine
   InstanceName = Magazine Pug
   Mass = 20
   HitsMOs = 0
   GetsHitByMOs = 0
   SpriteFile = ContentFile
      FilePath = pugcannon.rte/cannonpugmag.bmp
   FrameCount = 1
   SpriteOffset = Vector
      X = -4
      Y = -3
   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
   DrawAfterParent = 0
   RoundCount = 1
   RTTRatio = 0
   RegularRound = Round
      CopyOf = Pug Round
   TracerRound = None

Author:  Erathoniel [ Sun Jul 27, 2008 5:42 pm ]
Post subject:  Re: Help me with my gun plz

Is the magazine above the gun in the .txt file? If so, it should work. I've had this problem.

Author:  Gotcha! [ Sun Jul 27, 2008 6:26 pm ]
Post subject:  Re: Help me with my gun plz

Are you sure the magazine is defined before the actual gun itself?
If this doesn't help, I'd need to see the ini files themself to help you further.

Author:  piefaced [ Sun Jul 27, 2008 7:39 pm ]
Post subject:  Re: Help me with my gun plz

I have tried it but it doesn't work :(
Well here's the file

Also where is a more detailed tutorial on how to make guns because i only know the one Lord Tim made

Author:  Gotcha! [ Sun Jul 27, 2008 7:53 pm ]
Post subject:  Re: Help me with my gun plz

You need to keep in mind in what order your mod gets loaded.
Your index.ini loads the file pugcannon.ini first, after which it would load ammo.ini.
However, ammo.ini has stuff in it that pugcannon.ini is dependent of, so pugcannon.ini can't load. Make sure your ammo.ini gets loaded first.

In plain simple words, switch the two lines in your index.ini file.

Edit:
Also: These lines won't work:
Shell = MOSRotating
CopyOf = Pug.bmp

See the wiki for more details.

Author:  piefaced [ Mon Jul 28, 2008 2:37 pm ]
Post subject:  Re: Help me with my gun plz

k thx for the help :grin:

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