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



Reply to topic  [ 7 posts ] 
 Difining stuff 
Author Message
User avatar

Joined: Mon Jul 21, 2008 12:02 am
Posts: 3
Location: The Netherlands
Reply with quote
Post Difining stuff
Good day..

This is my first time here, and to be honnest i have been playing CC for a couple of times now (lets say 7 months)
i have done a few mods for my self for fun, the basic crap.

But i still have these stupid problems with defining a couple of things, like Magazine etc.
Ive looked at Wiki, used Search on this forum but i didnt had the anwsers i looked for.
Could someone please explain me what it really means and how i fix it ?


Mon Jul 21, 2008 12:12 am
Profile
User avatar

Joined: Wed Dec 26, 2007 6:33 am
Posts: 1743
Location: Trapped in UCP. Send help.
Reply with quote
Post Re: Difining stuff
Use spellcheck.
Also, in your post, you didn't use specifics. Give an example on what's giving you trouble.


Mon Jul 21, 2008 12:33 am
Profile WWW
User avatar

Joined: Tue Apr 01, 2008 4:49 pm
Posts: 1972
Location: The Netherlands
Reply with quote
Post Re: Difining stuff
Hi, can you be more specific?


Mon Jul 21, 2008 12:45 am
Profile
User avatar

Joined: Mon Jul 21, 2008 12:02 am
Posts: 3
Location: The Netherlands
Reply with quote
Post Re: Difining stuff
ok i've been trying to make a machine gun..
but when i try to rename the magazine of the gun it says i need to define it ..


Quote:
AddAmmo = Magazine
InstanceName = Magazine MMG
Mass = 2
HitsMOs = 0
GetsHitByMOs = 0
SpriteFile = ContentFile
FilePath = MMgun.rte/SMGs/MagSMG2.bmp
FrameCount = 1
SpriteOffset = Vector
X = 5
Y = -4
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
JointOffset = Vector
X = 0
Y = -3
ParentOffset = Vector
X = 1
Y = 0
DrawAfterParent = 0
RoundCount = 30
RTTRatio = 8
RegularRound = Round
CopyOf = Round MMG
TracerRound = Round
InstanceName = Round MMG Tracer
AddGib = Gib
GibParticle = MOPixel
CopyOf = Spark Yellow 1
Count = 5
Spread = 2.25
MaxVelocity = 20
MinVelocity = 8
AddGib = Gib
GibParticle = MOSParticle
CopyOf = Gib Metal Rust Micro A
Count = 4
Spread = 2.25
MaxVelocity = 15
MinVelocity = 5
GibWoundLimit = 1


Mon Jul 21, 2008 12:45 am
Profile
User avatar

Joined: Tue Apr 01, 2008 4:49 pm
Posts: 1972
Location: The Netherlands
Reply with quote
Post Re: Difining stuff
You need to make sure that the instance "Magazine MMG" is placed before the actual gun. Also make sure that the magazine is also defined in the gun itself. If you renamed the magazine, you'll have to rename the instance name present in the gun part as well.

I hope that helps. You can pm me your file if you need more help. I'll look it over. :)

Edit: Example, taken from some random gun:

AddAmmo = Magazine
InstanceName = Colt M16 Mag <- has to match

AddDevice = HDFirearm
Magazine = Magazine
CopyOf = Colt M16 Mag <- has to match


Mon Jul 21, 2008 12:52 am
Profile
User avatar

Joined: Fri May 11, 2007 4:30 pm
Posts: 1040
Location: England
Reply with quote
Post Re: Difining stuff
The error says simply:

"Hey there, sorry but this code won't work, because:

Looks like you've put an instance name to copy from before it's been defined or that hasn't been defined at all. There's also the chance that you made a little spelling mistake, causing it to refer to an instance which is non-existent.

The error occurs on line 53, I recommend that you turn off word wrap and use the "Go To..." (ctrl+G) command in notepad to look at this line. If the line of code is incorrect I did a printscreen when this error occurred, I saved it as "abortscreen.bmp" for your convenience. This may show the correct line that the error occurred on.

Have a good day."

I hope this gave you a better understanding of the error messages.


Mon Jul 21, 2008 1:11 am
Profile
User avatar

Joined: Mon Jul 21, 2008 12:02 am
Posts: 3
Location: The Netherlands
Reply with quote
Post Re: Difining stuff
After some help from Gotcha and the help from you guys it now works.
so i here by iam thanking you guys, its really kind of you :)
now i know alot more about CC.


Mon Jul 21, 2008 1:12 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 7 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.046s | 13 Queries | GZIP : Off ]