Author |
Message |
volume
Joined: Sat Jan 03, 2009 1:12 pm Posts: 13
|
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 |
|
|
411570N3
Joined: Wed Jan 07, 2009 10:26 am Posts: 4074 Location: That quaint little British colony down south
|
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 |
|
|
volume
Joined: Sat Jan 03, 2009 1:12 pm Posts: 13
|
Re: Learning to mod
Didn't work
|
Mon Nov 02, 2009 4:05 am |
|
|
Geti
Joined: Sun Jul 13, 2008 9:57 am Posts: 4886 Location: some compy
|
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 |
|
|
CrazyMLC
Joined: Fri Dec 22, 2006 4:20 am Posts: 4772 Location: Good news everyone!
|
Re: Learning to mod
The magazine code has to be above the gun code.
|
Mon Nov 02, 2009 4:33 am |
|
|
volume
Joined: Sat Jan 03, 2009 1:12 pm Posts: 13
|
Re: Learning to mod
Here is the file.
Attachments:
SMG.ini [4.25 KiB]
Downloaded 160 times
|
Mon Nov 02, 2009 4:55 am |
|
|
Metal Meltdown
Banned
Joined: Thu May 14, 2009 9:22 pm Posts: 826 Location: Lookin' forward to mocking people on Jan 1st 2013.
|
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 |
|
|
dutchsmoker
Joined: Fri Oct 16, 2009 7:45 pm Posts: 72
|
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 |
|
|
dragonxp
Joined: Wed Sep 09, 2009 3:16 am Posts: 3032 Location: Somewhere in the universe
|
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 ]
Attachments:
File comment: i dun know if u want it i just put it here.
Tutorial.rar [344.16 KiB]
Downloaded 147 times
|
Mon Nov 09, 2009 5:33 am |
|
|
The Cling Clang
Joined: Fri Feb 15, 2008 8:54 pm Posts: 92 Location: New England
|
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 |
|
|
CrazyMLC
Joined: Fri Dec 22, 2006 4:20 am Posts: 4772 Location: Good news everyone!
|
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 |
|
|
volume
Joined: Sat Jan 03, 2009 1:12 pm Posts: 13
|
Re: Learning to mod
Okay it worked now. Thanks for the responses and help
|
Mon Nov 09, 2009 1:12 pm |
|
|
|