View unanswered posts | View active topics It is currently Sun Jan 05, 2025 2:26 am



Reply to topic  [ 6 posts ] 
 Help me with my gun plz 
Author Message
User avatar

Joined: Sun Jul 27, 2008 4:33 pm
Posts: 13
Location: behind you
Reply with quote
Post 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


Sun Jul 27, 2008 5:18 pm
Profile

Joined: Thu Jul 24, 2008 6:40 pm
Posts: 5
Reply with quote
Post 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.


Sun Jul 27, 2008 5:42 pm
Profile
User avatar

Joined: Tue Apr 01, 2008 4:49 pm
Posts: 1972
Location: The Netherlands
Reply with quote
Post 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.


Sun Jul 27, 2008 6:26 pm
Profile
User avatar

Joined: Sun Jul 27, 2008 4:33 pm
Posts: 13
Location: behind you
Reply with quote
Post 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


Sun Jul 27, 2008 7:39 pm
Profile
User avatar

Joined: Tue Apr 01, 2008 4:49 pm
Posts: 1972
Location: The Netherlands
Reply with quote
Post 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.


Sun Jul 27, 2008 7:53 pm
Profile
User avatar

Joined: Sun Jul 27, 2008 4:33 pm
Posts: 13
Location: behind you
Reply with quote
Post Re: Help me with my gun plz
k thx for the help :grin:


Mon Jul 28, 2008 2:37 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 6 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.032s | 13 Queries | GZIP : Off ]