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



Reply to topic  [ 12 posts ] 
 Why on earth won't this pistol load? 
Author Message

Joined: Mon Mar 15, 2010 11:46 pm
Posts: 67
Reply with quote
Post Why on earth won't this pistol load?
Code:
AddEffect = MOPixel
   PresetName = Tracer Beagle
   Mass = 0.52
   LifeTime = 750
   Sharpness = 3
   HitsMOs = 1
   GetsHitByMOs = 0
   Color = Color
      R = 248
      G = 232
      B = 120
   Atom = Atom
      Material = Material
         CopyOf = Bullet Metal
      TrailColor = Color
         R = 248
         G = 232
         B = 120
      TrailLength = 30

AddAmmo = Round
   PresetName = Tracer PSTL2
   ParticleCount = 2
   Particle = MOPixel
      CopyOf = Tracer Beagle
   Shell = MOSParticle
      CopyOf = 1UniTec.rte/UniTec Casing
   FireVelocity = 125
   ShellVelocity = 10
   Separation = 5



Any reason why on earth this bit of coding can make my weapon UNSPAWNABLE?

If I remove it, everything works! O.o

Also, the game loads without an error O.o


Thu May 20, 2010 10:55 pm
Profile
User avatar

Joined: Wed Feb 24, 2010 11:00 pm
Posts: 255
Location: Unknow
Reply with quote
Post Re: Why on earth won't this pistol load?
I'm not understanding ... specify the problem.


Thu May 20, 2010 11:06 pm
Profile

Joined: Mon Mar 15, 2010 11:46 pm
Posts: 67
Reply with quote
Post Re: Why on earth won't this pistol load?
If I insert this piece of coding into a weapon... (ADDING A TRACER), the weapon will not show up in the spawn menu, or in the buy menu.


If I remove it (AND DISABLE THE TRACER) it works with no problem.

Edit:
Also, the game doesn't crash even though it's clearly not correct somehow.


Last edited by ajlw on Thu May 20, 2010 11:16 pm, edited 2 times in total.



Thu May 20, 2010 11:08 pm
Profile
User avatar

Joined: Wed Feb 24, 2010 11:00 pm
Posts: 255
Location: Unknow
Reply with quote
Post Re: Why on earth won't this pistol load?
ajlw wrote:
=.=


If I insert this piece of coding into a weapon... (ADDING A TRACER), the weapon will not show up in the spawn menu, or in the buy menu.


If I remove it (AND DISABLE THE TRACER) it works with no problem.

Get it now?


Another tracer may have the same name , change the name.


Thu May 20, 2010 11:15 pm
Profile
User avatar

Joined: Mon Sep 28, 2009 2:15 am
Posts: 720
Location: A fucking desert.
Reply with quote
Post Re: Why on earth won't this pistol load?
Quote:
AddEffect = MOPixel
PresetName = Tracer Beagle
Mass = 0.52
LifeTime = 750
Sharpness = 3
HitsMOs = 1
GetsHitByMOs = 0
Color = Color
R = 248
G = 232
B = 120
Atom = Atom
Material = Material
CopyOf = Bullet Metal
TrailColor = Color
R = 248
G = 232
B = 120
TrailLength = 30

AddAmmo = Round
PresetName = Tracer PSTL2
ParticleCount = 2
Particle = MOPixel
CopyOf = Tracer Beagle
Shell = MOSParticle
CopyOf = 1UniTec.rte/UniTec Casing
FireVelocity = 125
ShellVelocity = 10
Separation = 5

that is likely part of the problem.


Fri May 21, 2010 12:24 am
Profile

Joined: Mon May 17, 2010 9:16 pm
Posts: 51
Reply with quote
Post Re: Why on earth won't this pistol load?
ouch, cross-mod dependencies. :/


Fri May 21, 2010 2:32 am
Profile
User avatar

Joined: Mon Sep 28, 2009 2:15 am
Posts: 720
Location: A fucking desert.
Reply with quote
Post Re: Why on earth won't this pistol load?
lolinternets wrote:
ouch, cross-mod dependencies. :/

that's not it. it's just that, copy of doesn't use filepaths, it uses preset names. although cross-dependencies should be removed at some point.


Fri May 21, 2010 3:10 am
Profile

Joined: Mon Mar 15, 2010 11:46 pm
Posts: 67
Reply with quote
Post Re: Why on earth won't this pistol load?
Urch wrote:
lolinternets wrote:
ouch, cross-mod dependencies. :/

that's not it. it's just that, copy of doesn't use filepaths, it uses preset names. although cross-dependencies should be removed at some point.



I fixed it... apparently the file size was getting way too big >.>;
Slamming it into a seperate text file fixed it.


Mon May 24, 2010 9:58 pm
Profile
User avatar

Joined: Wed Sep 09, 2009 3:16 am
Posts: 3032
Location: Somewhere in the universe
Reply with quote
Post Re: Why on earth won't this pistol load?
No, thats never the problem, probably bad tab syntax.


Mon May 24, 2010 10:39 pm
Profile
User avatar

Joined: Fri Feb 16, 2007 8:43 pm
Posts: 1695
Location: AH SHIT FUCK AUGH
Reply with quote
Post Re: Why on earth won't this pistol load?
No, bad tabbing will cause a crash. Hell, if ANYTHING is wrong, it will crash. I know code is meant to be flawless, but holy ♥♥♥♥ Cortex Command has a huge pole up its ass about it. What ajlw says about the text file being too big may actually be true, as i've had some problems with gianormous INI files in the past too.

Anyways, you say you fixed it. Good. That means i won't have to drone on about dumb things. :U


Tue May 25, 2010 12:05 pm
Profile WWW
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: Why on earth won't this pistol load?
Actually, I've found that certain incorrect tabbings will just have Cortex Command ignore everything after the incorrect passage.


Tue May 25, 2010 12:34 pm
Profile WWW
User avatar

Joined: Wed Sep 09, 2009 3:16 am
Posts: 3032
Location: Somewhere in the universe
Reply with quote
Post Re: Why on earth won't this pistol load?
411570N3 wrote:
Actually, I've found that certain incorrect tabbings will just have Cortex Command ignore everything after the incorrect passage.


I say what i said earlier on terms of this.
http://forums.datarealms.com/viewtopic.php?f=1&t=17301

Control had bad tabbing syntax, which led to no crashes but CC to ignore all the code except the first block.


Sun May 30, 2010 3:03 am
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.044s | 14 Queries | GZIP : Off ]