Data Realms Fan Forums
http://45.55.195.193/

Crashing due to attachable ?
http://45.55.195.193/viewtopic.php?f=1&t=21052
Page 1 of 1

Author:  Glowsticks [ Fri Jan 07, 2011 5:44 pm ]
Post subject:  Crashing due to attachable ?

This is a (hopefully) somewhat simple fix. I'm trying to attach an antenna to a jetpack, but when using the code necessary it crashes my CC. I commented it out and it runs fine, so why is this simple attachable crashing?

Code:
Jetpack = AEmitter
      CopyOf = Robot Jetpack
      ParentOffset = Vector
         X = -9
         Y = 8
   JumpTime = 8
      //AddAttachable = Attachable
         //CopyOf = Antenna
         //ParentOffset = Vector
            //X = -2
            //Y = -16

Author:  Roast Veg [ Fri Jan 07, 2011 6:17 pm ]
Post subject:  Re: Crashing due to attachable ?

Post the .ini of the attachable itself.

Author:  Lizardheim [ Fri Jan 07, 2011 6:18 pm ]
Post subject:  Re: Crashing due to attachable ?

Add the attachable to the torso instead of the jetpack.

Author:  Roast Veg [ Fri Jan 07, 2011 6:19 pm ]
Post subject:  Re: Crashing due to attachable ?

Oops. Misread the code. Yea what he said.

Author:  Shook [ Fri Jan 07, 2011 6:36 pm ]
Post subject:  Re: Crashing due to attachable ?

Pretty sure JumpTime is for the torso too. The tabbing also seems pretty wonky; you should only add one tab each time you go a step deeper in the code. As in:
Code:
blah = bleh
   CopyOf = bloh
   PresetName = blerf
   Offset = Vector
      X = 0
      Y = 0
   GoldCost = 5

And so on. Also, be sure to add a name to the jetpack, otherwise screwups will happen.

Author:  Glowsticks [ Sun Jan 09, 2011 9:43 pm ]
Post subject:  Re: Crashing due to attachable ?

Thanks guys. It seemed I had a problem with my tabbing and the location of JumpTime, and after those were fixed the Attachable was able to be added to the jetpack. Thanks!
(Heres the code snippet for anyone with similar problems.)
Code:
Jetpack = AEmitter
      CopyOf = Robot Jetpack
      ParentOffset = Vector
         X = -13
         Y = 3 
      AddAttachable = Attachable
         CopyOf = Antenna
         ParentOffset = Vector
            X = -1
            Y = -19
JumpTime = 8 // Secs

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