View unanswered posts | View active topics It is currently Sun Oct 06, 2024 11:07 pm



Reply to topic  [ 12 posts ] 
 Learning to mod 
Author Message

Joined: Sat Jan 03, 2009 1:12 pm
Posts: 13
Reply with quote
Post Learning to mod
Hello, I tried to make a mod step by step with the wiki and I followed it exactly, but my game keeps crashing.
Abortion in file .\system\reader.ccp line 531
Referring to an instance (magazine pistol} to copy from taht hasn't defined! in mod.rte/SMG.ini at line 141.

Line 141:
Code:
SharpLength = 90
   Magazine = Magazine // which magazine to use
      CopyOf = Magazine Pistol   [<- 141]
   Flash = Attachable // what muzzle flash to use
      CopyOf = Muzzle Flash Pistol


First part of the magazine:
Code:
AddAmmo = Magazine
   PresetName = Magazine Pistol
   Mass = 1
   HitsMOs = 0
   GetsHitByMOs = 0
   SpriteFile = ContentFile
      FilePath = Base.rte/Devices/Pistols/MagPistol.bmp


I really dont know whats wrong :???:


Mon Nov 02, 2009 3:45 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: Learning to mod
Try removing one tab from the Magazine line and the three lines below it.


Mon Nov 02, 2009 3:53 am
Profile WWW

Joined: Sat Jan 03, 2009 1:12 pm
Posts: 13
Reply with quote
Post Re: Learning to mod
Didn't work


Mon Nov 02, 2009 4:05 am
Profile
User avatar

Joined: Sun Jul 13, 2008 9:57 am
Posts: 4886
Location: some compy
Reply with quote
Post Re: Learning to mod
you might not be getting the error on the right line.
Code:
/*
do you have any
comments like this
in your mod?
*
cause that will give you a line readout error.


Mon Nov 02, 2009 4:23 am
Profile WWW
User avatar

Joined: Fri Dec 22, 2006 4:20 am
Posts: 4772
Location: Good news everyone!
Reply with quote
Post Re: Learning to mod
The magazine code has to be above the gun code.


Mon Nov 02, 2009 4:33 am
Profile WWW

Joined: Sat Jan 03, 2009 1:12 pm
Posts: 13
Reply with quote
Post Re: Learning to mod
Here is the file.


Attachments:
SMG.ini [4.25 KiB]
Downloaded 156 times
Mon Nov 02, 2009 4:55 am
Profile
Banned
User avatar

Joined: Thu May 14, 2009 9:22 pm
Posts: 826
Location: Lookin' forward to mocking people on Jan 1st 2013.
Reply with quote
Post Re: Learning to mod
Well, everything's where it should be... try copying the SMG's code from base.rte instead of the Wiki. For some reason, it simply skips over the mag code.


Mon Nov 02, 2009 12:29 pm
Profile YIM
User avatar

Joined: Fri Oct 16, 2009 7:45 pm
Posts: 72
Reply with quote
Post Re: Learning to mod
I suggest using a prebuild pistol as your base, makes these kinds of problems almost nonexistent
I can't seem to make it work
Code:
   TracerRound = Round Gun Tracer

this is the only thing that seemed wrong but changing it into
Code:
   TracerRound = Round
      CopyOf = Round Gun Tracer

is not fixing that error


Mon Nov 02, 2009 12:34 pm
Profile
User avatar

Joined: Wed Sep 09, 2009 3:16 am
Posts: 3032
Location: Somewhere in the universe
Reply with quote
Post Re: Learning to mod
@Volume, here i posted a working smg, which you can fully grasp and edit.
Theres a bunch of text off to the side in case ur wondering what there is, and a glossary, that i half done, [i admit my patience sux, its too tedius to finish :oops: ]


Attachments:
File comment: i dun know if u want it i just put it here.
Tutorial.rar [344.16 KiB]
Downloaded 143 times
Mon Nov 09, 2009 5:33 am
Profile
User avatar

Joined: Fri Feb 15, 2008 8:54 pm
Posts: 92
Location: New England
Reply with quote
Post Re: Learning to mod
Replace
Code:
   Magazine = Magazine // which magazine to use
      CopyOf = Magazine Pistol
   Flash = Attachable // what muzzle flash to use
      CopyOf = Muzzle Flash Pistol

with
Code:
   Magazine = Magazine
      CopyOf = Magazine Pistol
   Flash = Attachable
      CopyOf = Muzzle Flash Pistol

For some reason CC doesn't like those comments.


Mon Nov 09, 2009 6:00 am
Profile
User avatar

Joined: Fri Dec 22, 2006 4:20 am
Posts: 4772
Location: Good news everyone!
Reply with quote
Post Re: Learning to mod
Only thing that could break it, that makes sense, is the spaces before the comments.


Mon Nov 09, 2009 8:52 am
Profile WWW

Joined: Sat Jan 03, 2009 1:12 pm
Posts: 13
Reply with quote
Post Re: Learning to mod
Okay it worked now.
Thanks for the responses and help


Mon Nov 09, 2009 1:12 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 12 posts ] 

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.031s | 17 Queries | GZIP : Off ]