Jump to content
Sign in to follow this  
dmaher

XML parts question

Recommended Posts

I'm using the parts XML for the first time. I'm trying to animate brake pedals. As far as I can tell brake pedals haven't been included in the in the default makemdl.parts.xml. I added the following to animate the left brake pedal and named the model part accordingly. It's a bit of a shot in the dark :)l_brake_pedal (A:BRAKE LEFT POSITION,percent)...Also, here's the animation section out of the model.x file... Animation anim-l_brake_pedal { { l_brake_pedal } AnimationKey { 0; 2; 0;4;-1.000000,0.000000,0.000000,0.000000;;, 100;4;-0.981627,0.000000,-0.190809,0.000000;;; } }This is the error I get...Generate BGL...ERROR: Animation trigger r_brake_pedal not found, mapped to "userdefined8"ERROR: Animation trigger l_brake_pedal not found, mapped to "userdefined8"Error!Error!Can someone spot what I'm doing wrong? Also, I don't understand the difference between

Share this post


Link to post
Share on other sites
Guest Firestriker

Danny,Not being an XML programmer but from what I see in the makemdl.parts.xml file, it appears that generally your code should look something like this:l_brake_pedalBRAKE LEFT POSITIONpercent200Most of the codes like your:(A:BRAKE LEFT POSITION,percent)are framed with I keep looking for a better explaination of these things on the M$ site but as you probably know, no joy! We just have to spend a lot of time experimenting and working with others till we get something that works.Good luck,Lou

Share this post


Link to post
Share on other sites

Thanks Lou,I tried something similar to yours using......BRAKE LEFT POSITIONpercent...But it didn't work. I have a feeling the problem is in my model. I'll try some simple cubes to see if that helps and try using your example exactly.BTW, my last one looked like this...... (A:BRAKE LEFT POSITION, percent) 1 *...The x1 is just to make sure it would work in the brackets. ..But still something

Share this post


Link to post
Share on other sites

The brakes pedals are finally working! Lou, I used your XML code verbatim and it worked as advertised :) The confusing problem for me was actually unrelated. I'm using another 3D program instead of GMax. I have to go in and edit the model.x by hand before the animations will compile. There were some negative numbers in the Animation keys which asserted when I tried to build. Anyhow, the animations are all wonky now, but they are working. I will re-orientate the pedals to eliminate any negative keys. Thanks for the insight.Danny

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...