View unanswered posts | View active topics It is currently Fri Apr 19, 2024 2:27 pm



Reply to topic  [ 6 posts ] 
 No Arms 
Author Message

Joined: Thu Oct 04, 2012 3:08 am
Posts: 90
Reply with quote
Post No Arms
Somehow My two Mechs lost their arms and I cant get them back. I would just backtrack, but I had the unfortunate luck of accidentally bumping the Exit button in my notepad when I was trying to load Cortex Command. Beware, there is a code wall ahead.



Tue Jul 30, 2013 7:17 am
Profile
User avatar

Joined: Sun Jan 28, 2007 10:32 pm
Posts: 1609
Location: UK
Reply with quote
Post Re: No Arms
You're defining the actor's BGArm twice. :roll: Once with the foreground arm, and then replacing it with the background arm immediately after.


Tue Jul 30, 2013 9:53 am
Profile YIM

Joined: Thu Oct 04, 2012 3:08 am
Posts: 90
Reply with quote
Post Re: No Arms
Arcalane wrote:
You're defining the actor's BGArm twice. :roll: Once with the foreground arm, and then replacing it with the background arm immediately after.

What do you mean? What group are you referring to?


Tue Jul 30, 2013 9:56 am
Profile
Data Realms Elite
Data Realms Elite
User avatar

Joined: Wed Sep 05, 2007 4:14 am
Posts: 3966
Location: Canadida
Reply with quote
Post Re: No Arms
Galahir950 wrote:
Arcalane wrote:
You're defining the actor's BGArm twice. :roll: Once with the foreground arm, and then replacing it with the background arm immediately after.

What do you mean? What group are you referring to?

AddActor = Arm
Presetname = ARM \X\ FG
.. snip ..

AddActor = Arm
CopyOf = ARM \X\ FG
PresetName = ARM \X\ FG
.. Repeat for the BG ARM, the FG and BG Legs, and Feet

I don't know what to say, you are making a limb named \limb x\, and then immediately afterwards, making a copy of the limb \limb x\, naming it \limb x\.
I don't think the engine takes kindly at all to double entries.
It's also very messy code.


Anyways, he means this.

Code:
   BGArm = Arm
      CopyOf = Ronin Soldier Arm FG A
      ParentOffset = Vector
         X = -1
         Y = 0
   BGArm = Arm
      CopyOf = Ronin Soldier Arm BG A
      ParentOffset = Vector
         X = 7
         Y = 0


Last edited by Foa on Tue Jul 30, 2013 10:43 am, edited 1 time in total.



Tue Jul 30, 2013 10:38 am
Profile
User avatar

Joined: Sun Jan 28, 2007 10:32 pm
Posts: 1609
Location: UK
Reply with quote
Post Re: No Arms
Line 2,079;

Quote:
BGArm = Arm
CopyOf = Ronin Soldier Arm FG A
ParentOffset = Vector
X = -2
Y = 5
BGArm = Arm
CopyOf = Ronin Soldier Arm BG A
ParentOffset = Vector
X = 4
Y = 5
FGLeg = Leg
CopyOf = Ronin Soldier Leg FG A
ParentOffset = Vector
X = 1
Y = 12
BGLeg = Leg
CopyOf = Ronin Soldier Leg BG A
ParentOffset = Vector
X = 4
Y = 12


Ed: Also probably what Foa said. I had issues with my laser sights defaulting to the standard range/colour values until I stuck a PresetName line into them that changed up the name of each emitter/detector particle.

On top of that, this file in general is an absolute mess, and I'd strongly recommend that you scrap all this legacy code and start over with fresh files and such. Keep the sounds and sprites and whatever, but... trying to maintain some old scrap code is just going to bring you more headaches in the long run.


Tue Jul 30, 2013 10:43 am
Profile YIM

Joined: Thu Oct 04, 2012 3:08 am
Posts: 90
Reply with quote
Post Re: No Arms
Thank you, that fixed it. This just proves that I shouldn't work on this at 5 in the morning. Also, that code was a.) from about 3-5 years ago b.) from when I was inexpirenced.


Tue Jul 30, 2013 10:54 am
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:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.096s | 17 Queries | GZIP : Off ]