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



Reply to topic  [ 6 posts ] 
 Crashing due to attachable ? 
Author Message
User avatar

Joined: Sat Jul 10, 2010 5:19 pm
Posts: 543
Reply with quote
Post 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


Fri Jan 07, 2011 5:44 pm
Profile
Data Realms Elite
Data Realms Elite
User avatar

Joined: Tue May 25, 2010 8:27 pm
Posts: 4521
Location: Constant motion
Reply with quote
Post Re: Crashing due to attachable ?
Post the .ini of the attachable itself.


Fri Jan 07, 2011 6:17 pm
Profile
DRL Developer
DRL Developer

Joined: Fri May 15, 2009 10:29 am
Posts: 4107
Location: Russia
Reply with quote
Post Re: Crashing due to attachable ?
Add the attachable to the torso instead of the jetpack.


Fri Jan 07, 2011 6:18 pm
Profile
Data Realms Elite
Data Realms Elite
User avatar

Joined: Tue May 25, 2010 8:27 pm
Posts: 4521
Location: Constant motion
Reply with quote
Post Re: Crashing due to attachable ?
Oops. Misread the code. Yea what he said.


Fri Jan 07, 2011 6:19 pm
Profile
User avatar

Joined: Fri Feb 16, 2007 8:43 pm
Posts: 1695
Location: AH SHIT FUCK AUGH
Reply with quote
Post 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.


Fri Jan 07, 2011 6:36 pm
Profile WWW
User avatar

Joined: Sat Jul 10, 2010 5:19 pm
Posts: 543
Reply with quote
Post 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


Sun Jan 09, 2011 9:43 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 6 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:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.036s | 13 Queries | GZIP : Off ]