• There seems to be an uptick in Political comments in recent months. Those of us who are long time members of the site know that Political and Religious content has been banned for years. Nothing has changed. Please leave all political and religious comments out of the forums.

    If you recently joined the forums you were not presented with this restriction in the terms of service. This was due to a conversion error when we went from vBulletin to Xenforo. We have updated our terms of service to reflect these corrections.

    Please note any post refering to a politician will be considered political even if it is intended to be humor. Our experience is these topics have a way of dividing the forums and causing deep resentment among members. It is a poison to the community. We appreciate compliance with the rules.

    The Staff of SOH

  • Please see the most recent updates in the "Where did the .com name go?" thread. Posts number 16 and 17.

    Post 16 Update

    Post 17 Warning

Gauge programming help...handheld to com2

pilottj

Blues is Life
Hey guys,
I am trying to add the default handheld com unit (found in microlight) to the RV-7 as a 2d popup Com2 radio. The gauge file is handheld_radio.cab, within it is a radio.xml. Is it possible to modify the data below to have the handheld operate as a Com2 radio? I have Tugzip to create a new cab file with.

Any help would be appreciated.
CHeers
TJ

Here is the radio.xml data...lol if i can get the post to ignore the programming codes...

<gauge Version="1.0" Name="radio">
<img name="radio_background.bmp">
<!-- ============================== Radio On/Off Switch ===================== -->
<element>

<select> (A:Avionics master switch,bool) </select>
</element>

<!-- ============================== Frequency Readout ======================= -->
<element>

<failures>
<gauge_communications Action="NoDraw">
</gauge_communications></failures>
<visible>(A:Avionics master switch,bool)</visible>
<text Y="30" X="85" Bright="Yes" Color="#00FF00" VerticalAdjust="Center" Adjust="Center" Font="Quartz" Fixed="Yes" Length="6">
<string>%((A:Com active frequency:1,Megahertz))%!6.3f!</string>
</text>
</element>
<mouse>
<help id="HELPID_RADIO_COMM1">
<tooltip id="TOOLTIPTEXT_COMM1_FREQ">

<area Height="34" Width="90" Top="67" Left="50">
<area Left="0" Right="25">
<cursor Repeat="Yes" Type="DownArrow">
<click Repeat="Yes" MouseWheelFlip="Yes">
(A:Avionics master switch,bool) 1 ==
if{ 0 (>K:COM_RADIO_WHOLE_DEC) }
</click>

<area Left="26" Right="49">
<cursor Repeat="Yes" Type="UpArrow">
<click Repeat="Yes" MouseWheelFlip="Yes">
(A:Avionics master switch,bool) 1 ==
if{ 0 (>K:COM_RADIO_WHOLE_INC) }
</click>

<area Left="50" Right="73">
<cursor Repeat="Yes" Type="DownArrow">
<click Repeat="Yes" MouseWheelFlip="Yes">
(A:Avionics master switch,bool) 1 ==
if{ 0 (>K:COM_RADIO_FRACT_DEC) }
</click>

<area Left="74" Right="88">
<cursor Repeat="Yes" Type="UpArrow">
<click Repeat="Yes" MouseWheelFlip="Yes">
(A:Avionics master switch,bool) 1 ==
if{ 0 (>K:COM_RADIO_FRACT_INC) }
</click>



<!-- Radio Master -->
<area Height="89" Width="32" Top="28" Left="161">
<cursor Type="Hand">
<click Event="TOGGLE_AVIONICS_MASTER">

</click></cursor></cursor></cursor></cursor></cursor></tooltip></help></mouse>
 
Easy enough to do

Make a backup of the cab file

Change any K:COM to K:COM2

Change any Com active frequency:1 to Com active frequency:2

FSX is a bit inconsistent with the variable naming but from the examples given I think that should be all you need to do.

There is really no need to recab the file as it will work fine uncabineted (I use 7zip to unpack the cab file). Plus, it is a lot easier to edit the xml and test in FSX rather than edit xml, make a cab file then test in FSX.
 
Results
jJsvI.jpg


BTS RV owners who would like to try the mod.
http://baytower.ca/phpBB2/viewtopic.php?f=1&t=630&p=3166#p3166

Cheers
TJ
 
One other thing I can suggest is that you make a copy of the handheld radio ( just copy the radio.xml and rename it radio2.xml and keep it in the same folder so you don't need to copy the graphics files). That way you can have two handheld radios which you can use for different situations, radio.xml can be the original one for COM1 and your edited radio2.xml can be for COM2.
 
Here is the radio.xml data...lol if i can get the post to ignore the programming codes...

What you need to do is hit the 'code insertion' button when you are preparing your post and then paste the code between the code tags. The button has the 'hash' sign ('#') on it.

This prevents the forum software from trying to parse the code.

I tried to wrap the code tags around the various lines in this quoted reply but as the code is already garbled it didn't achieve much. :icon_lol:
 
Back
Top