Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

XML parts question

Featured Replies

  • Commercial Member

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

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

  • Author
  • Commercial Member

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

  • Author
  • Commercial Member

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

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.