August 11, 201114 yr Hey there. I'm in the process of trying to add a switch click sound to the avionics master switch, and here is what I have so far, yet I'ts still not giving me any sound. Would anyone happen to be able to browse through this to inform me as to why it isn't working? Here is the code as well as the location as to where I placed all my files. Thank you I have placed the sound file in the main fsx Sounds folderI have an avmastersound.dll placed in my gauges folder along with the avmastersound.iniI have the avmastersound.xml placed in a folder named avmastersound which is in my panel folderLastly, I have the dsd_xml_sound3.dll and .gau placed in the gauges folder Panel.cfg:gauge16=avmastersound!avmastersound, 1,1,1,1gauge17=dsd_xml_sound3!dsd_xml_sound3, 1,1,1,1, ./Gauges/avmastersound.iniavmastersound.ini:[Config]MaxSounds=5[LVars]Lvar00=avmastersound[sounds]Sound00=./Sound/avmastersound.wavavmastersound.xml:<Gauge Name="avmastersound" Version="1.0"><Element><Select><Value></Value></Select></Element><Mouse><Click><Area Left="424" Top="32" Width="31" Height="36"><Cursor Type="Hand"/><Click Kind="LeftSingle">(>K:TOGGLE_AVIONICS_MASTER)1 (>L:avmastersound, number)</Click></Area></Click></Mouse></Gauge>and here's the code from the switch_avionics_master section of the modeldef.xml file that I placed in my bin folder that I created in the ModelingSDK directory:<MouseRect><Cursor>Hand</Cursor><HelpID>HELPID_GAUGE_AVIONICS_SWITCH</HelpID><TooltipID>TOOLTIPTEXT_AVIONICS_SWITCH</TooltipID><EventID>TOGGLE_WHAT_MASTER</EventID><Click><Callback_Code>(>K:TOGGLE_AVIONICS_MASTER)1 (>L:avmastersound, number)</Callback_Code></Click></MouseRect> Thanks again Dan
August 12, 201114 yr Commercial Member ./Gauges/avmastersound.ini Are you sure your paths are correct? I'd use something like ..\gauges\avmastersound.ini personally. Notice the double period to go up one directory and the \ instead of /. eg. Here is one line from a panel.cfg of mine that goes up out of the panel, then out of the particular aircraft folder to reach the root Simobjects/Airplanes folder before going into another aircraft folder and finally the panel folder of that other aircraft.gauge00=..\..\Ants Drifter A-582\Panel\AvmapGPS!EKPIV, 0,0,602,915 www.antsairplanes.com
Create an account or sign in to comment