Welcome, Guest. Please Login or Register
YaBB - Yet another Bulletin Board
  YaBB is sponsored by XIMinc!

FFDS Home | TIPS Section | Tutorials Section | Resources Section | Utilities Section

Military | FSDS | Jetliners | Real Planes Section | Gmax | Rotorcraft | Business | Civilian

  HomeHelpSearchLoginRegister  
 
 
Page Index Toggle Pages: 1
Send Topic Print
Help to solve a problem with an xml animation code (Read 1370 times)
10th Jul, 2013 at 4:42am

maxtac/FFDS   Offline
Inspecteur des Polygonnes
I love aircrafts!
Rome, Italy

Gender: male
Posts: 597
*****
 
I'm trying to make a sliding window animation code in a virtual cockpit of a model for fs9 using FSDS 3.5. As a starting base i used the xml structure of a code by Lionheart for a  seat fold.
For my need I want to click on a knob on the sliding window in the VC to make it open and close at will. I animate the sliding window with kf 0 and KF100.

This below  is my xml code which doesn't work , I get this error when compiling with makemdl.

"Generate BGL...
ERROR: Animation trigger sliding_window_lx not found, mapped to "userdefined8"
ERROR: Animation trigger sliding_window_rx not found, mapped to "userdefined8"
"
Code:
<part>   
     <name>sliding_window_lx</name>   
     <animation> 
             <parameter>   
                   <code>
			(L:window_lx,bool) 100 *
		</code>   
                    <lag>50</lag>
		<scale>1</scale>	   
            </parameter>   
     </animation> 
     <mouserect>   
                 <cursor>Hand</cursor>   
                 <tooltip_text>open left window</tooltip_text>
           <callback_code>   
                      (L:window_lx,bool) ! (&gt;L:window_lx,bool) 
              </callback_code>   
      </mouserect>
</part>  



The code is in the makemdlparts.xml I'm using , I put it at the beginning of the file so that to find errors easily.

Thanks

Massimo
 
IP Logged
 
Reply #1 - 10th Jul, 2013 at 5:18pm

Tom/FFDS   Offline
YaBB Administrator
Jets are for kids!

Posts: 1584
*****
 
All of my entries have a mouse_flags line just after the tooltip_text line:

<mouse_flags>LeftSingle</mouse_flags>

Hope this helps?
 

Tom Gibson

California Classic Propliners: Multimedia File Viewing and Clickable Links are available for Registered Members only!!  You need to Login or Register

AlcoHauler Locomotive Page: Multimedia File Viewing and Clickable Links are available for Registered Members only!!  You need to Login or Register

San Diego Model RR Museum: Multimedia File Viewing and Clickable Links are available for Registered Members only!!  You need to Login or Register
IP Logged
 
Reply #2 - 11th Jul, 2013 at 3:59am

Flusirainer   Offline
Point Pusher
I Love FFDS!

Posts: 27
*
 
Tom/FFDS wrote on 10th Jul, 2013 at 5:18pm:
All of my entries have a mouse_flags line just after the tooltip_text line:

<mouse_flags>LeftSingle</mouse_flags>

Hope this helps?


Works for me without <mouse_flags>

Code:
<part>
   <Name>AI_LABEL</Name>
      <Animation>
	<Parameter>
	  <Code>(L:ailabel, bool) 100 *</Code>
 	  <Lag>200</Lag>
	</Parameter>
      </Animation>
   <MouseRect>
	<Cursor>Hand</Cursor>
   <tooltip_id>Switch Ai Label</tooltip_id>
   <callback_code>
     (L:ailabel, bool) ! (>L:ailabel, bool)
     (>K:TOGGLE_AIRCRAFT_LABELS)
   </callback_code>
   </MouseRect>
</part>
 




What does <scale>1</scale> there?


Does it work compile without the configuration in the makemdl.parts.xml?
 
IP Logged
 
Reply #3 - 16th Jul, 2013 at 4:10pm

maxtac/FFDS   Offline
Inspecteur des Polygonnes
I love aircrafts!
Rome, Italy

Gender: male
Posts: 597
*****
 
Sorry just after having posted my request of help I solved my problems with the animation. There was a stupid error in a snippets of code  I have put at the beginning of the makemdlparts.xml which prevents to operate any other animation code in the file. This is the reason of the error message :

ERROR: Animation trigger sliding_window_lx not found, mapped to "userdefined8"


 
IP Logged
 
Page Index Toggle Pages: 1
Send Topic Print