Hi Tako_Kichi,
I hope you feel better today
In first, you must keep the "modeldef.xml" structure when you add line.
See below a short exemple if a merge two "modeldef.xml":
File A
Code:
<?xml version="1.0" encoding="utf-8" ?>
<ModelInfo>
<Animation name="rudder_percent_key" guid="D9C0B557-6EA8-4DAB-BB02-C7CCCCCDBB57" length="100" type="Sim" typeParam="AutoPlay" typeParam2="rudder_percent_key"/>
<AnimationGroup name="Exterior" guid="0xB331C7EF,0xE2BA4276,0x84C433B2,0xBA9781B3">
<AnimationRef guid="D9C0B557-6EA8-4DAB-BB02-C7CCCCCDBB57"/>
</AnimationGroup>
<PartInfo>
<Name>rudder_percent_key</Name>
<AnimLength>100</AnimLength>
<Animation>
<Parameter>
<Sim>
<Variable>RUDDER DEFLECTION PCT</Variable>
<Units>percent</Units>
<Bias>50</Bias>
</Sim>
</Parameter>
</Animation>
</PartInfo>
</ModelInfo>
File B
Code:
<?xml version="1.0" encoding="utf-8" ?>
<ModelInfo>
<Animation name="GPS_500_btn_fpl" guid="EEDE017F-DD77-4D85-A190-A4C68EB29EF3" length="100" type="Sim" typeParam="AutoPlay" typeParam2="GPS_500_btn_fpl"/>
<AnimationGroup name="GPS" guid="0xB331C7EF,0xE2BA4276,0x84C433B6,0xBA978103">
<AnimationRef guid="EEDE017F-DD77-4D85-A190-A4C68EB29EF3"/>
</AnimationGroup>
<PartInfo>
<Name>GPS_500_btn_fpl</Name>
<AnimLength>100</AnimLength>
<Animation>
<Parameter>
<Code>50 (L:GPS_500_btn_fpl,enum) 50 * +</Code>
</Parameter>
</Animation>
<MouseRect>
<Cursor>Hand</Cursor>
<MouseFlags>LeftSingle+LeftRelease</MouseFlags>
<CallbackCode>
(M:Event) 'LeftSingle' scmp 0 ==
if{ -1 (>L:GPS_500_btn_fpl, enum) (>K:GPS_FLIGHTPLAN_BUTTON) }
(M:Event) 'LeftRelease' scmp 0 ==
if{ 0 (>L:GPS_500_btn_fpl, enum) }
</CallbackCode>
</MouseRect>
</PartInfo>
</ModelInfo>
Result merge A+B
Code:
<?xml version="1.0" encoding="utf-8" ?>
<ModelInfo>
<Animation name="rudder_percent_key" guid="D9C0B557-6EA8-4DAB-BB02-C7CCCCCDBB57" length="100" type="Sim" typeParam="AutoPlay" typeParam2="rudder_percent_key"/>
<Animation name="GPS_500_btn_fpl" guid="EEDE017F-DD77-4D85-A190-A4C68EB29EF3" length="100" type="Sim" typeParam="AutoPlay" typeParam2="GPS_500_btn_fpl"/>
<AnimationGroup name="Exterior" guid="0xB331C7EF,0xE2BA4276,0x84C433B2,0xBA9781B3">
<AnimationRef guid="D9C0B557-6EA8-4DAB-BB02-C7CCCCCDBB57"/>
</AnimationGroup>
<AnimationGroup name="GPS" guid="0xB331C7EF,0xE2BA4276,0x84C433B6,0xBA978103">
<AnimationRef guid="EEDE017F-DD77-4D85-A190-A4C68EB29EF3"/>
</AnimationGroup>
<PartInfo>
<Name>rudder_percent_key</Name>
<AnimLength>100</AnimLength>
<Animation>
<Parameter>
<Sim>
<Variable>RUDDER DEFLECTION PCT</Variable>
<Units>percent</Units>
<Bias>50</Bias>
</Sim>
</Parameter>
</Animation>
</PartInfo>
<PartInfo>
<Name>GPS_500_btn_fpl</Name>
<AnimLength>100</AnimLength>
<Animation>
<Parameter>
<Code>50 (L:GPS_500_btn_fpl,enum) 50 * +</Code>
</Parameter>
</Animation>
<MouseRect>
<Cursor>Hand</Cursor>
<MouseFlags>LeftSingle+LeftRelease</MouseFlags>
<CallbackCode>
(M:Event) 'LeftSingle' scmp 0 ==
if{ -1 (>L:GPS_500_btn_fpl, enum) (>K:GPS_FLIGHTPLAN_BUTTON) }
(M:Event) 'LeftRelease' scmp 0 ==
if{ 0 (>L:GPS_500_btn_fpl, enum) }
</CallbackCode>
</MouseRect>
</PartInfo>
</ModelInfo>
The GPS unit is now working in sim with the map the correct way up (i.e. not mirrored) but I think I may have found another bug for you David.
Cool , but not for the new bug ;-)
The rocker switch in the upper left corner only zooms in it does not zoom out and it does not appear to be animated in any way as it does not move, at least in FSX, although I can see it moving in GMAX when I move the animation slider.
Indeed you right the zoom button it's not perfect but you can zoom in and zoom out. To zoom in use your left click and zoom out right click. The problem was in animation button is not perfect. For this moment I must found the good XML code to correct the bug.
While I am talking about animations I feel the movement on all the buttons is just way too small. You can barely see any movement on the buttons when you press them and they could easily move twice as far (including the rocker switch) which would look better as at least then you could be certain you had pressed the button in the VC. I just double-checked the animation travel in GMAX and it is a lot more than you see in FSX so there is something odd going on there and the travel distance is being reduced in the sim for some reason.
Ok, I must check the translate animation for all the button. I'll consider your point and increase the value of movement of the button for the next release.
I also checked the unit at night and as it has no illumination on the screen or buttons it is very hard to see. Might I suggest some night lighting for the unit too David?
Yes, but this GPS is only for VFR (no VFRNight or IFR). Hihihi just a joke.
My knowledge of today does not allow me to add Self Illumination and night maps on texture. I can understand it's very problematic, I must learn about this feature. For moment it's not possible to add on this gauge. I'm sorry Tako_Kichi .
You must be patient.
I hope you have understood my explications
See you soon or on the next bug
Bookmarks