Data Realms Fan Forums
http://45.55.195.193/

Why on earth won't this pistol load?
http://45.55.195.193/viewtopic.php?f=1&t=18790
Page 1 of 1

Author:  ajlw [ Thu May 20, 2010 10:55 pm ]
Post subject:  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

Author:  CCnewplayer [ Thu May 20, 2010 11:06 pm ]
Post subject:  Re: Why on earth won't this pistol load?

I'm not understanding ... specify the problem.

Author:  ajlw [ Thu May 20, 2010 11:08 pm ]
Post subject:  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.

Author:  CCnewplayer [ Thu May 20, 2010 11:15 pm ]
Post subject:  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.

Author:  Urch [ Fri May 21, 2010 12:24 am ]
Post subject:  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.

Author:  lolinternets [ Fri May 21, 2010 2:32 am ]
Post subject:  Re: Why on earth won't this pistol load?

ouch, cross-mod dependencies. :/

Author:  Urch [ Fri May 21, 2010 3:10 am ]
Post subject:  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.

Author:  ajlw [ Mon May 24, 2010 9:58 pm ]
Post subject:  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.

Author:  dragonxp [ Mon May 24, 2010 10:39 pm ]
Post subject:  Re: Why on earth won't this pistol load?

No, thats never the problem, probably bad tab syntax.

Author:  Shook [ Tue May 25, 2010 12:05 pm ]
Post subject:  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

Author:  411570N3 [ Tue May 25, 2010 12:34 pm ]
Post subject:  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.

Author:  dragonxp [ Sun May 30, 2010 3:03 am ]
Post subject:  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.

Page 1 of 1 All times are UTC [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/