February 4, 201016 yr I have a gauge that I made to use in FSX SP1. The gauge works but the tooltip does not display at all. Here is my code for the tooltip:</Script> <ClickType>LeftSingle+LeftRelease</ClickType> </MouseClick> <Tooltip id="Tooltip"> <Tooltip>Toggle Flight Management System</Tooltip> </Tooltip> </MouseArea> </SimGauge.Gauge></SimBase.Document>Can someone point out my errors please? Thanks, regards, Bob.
February 5, 201016 yr Moderator <Tooltip id="Tooltip"><Tooltip>Toggle Flight Management System</Tooltip></Tooltip>You have multiple <Tooltip> entries, which should not be done. The first one is causing the sim to ignore the second. Use this only:<Tooltip>Toggle Flight Management System</Tooltip> Fr. Bill AOPA Member: 07141481 AARP Member: 3209010556 Avsim Board of Directors | Avsim Forums Moderator
February 5, 201016 yr Author <Tooltip id="Tooltip"><Tooltip>Toggle Flight Management System</Tooltip></Tooltip>You have multiple <Tooltip> entries, which should not be done. The first one is causing the sim to ignore the second. Use this only:<Tooltip>Toggle Flight Management System</Tooltip>Hi Bill. Thanks. So it should read only:</Script><ClickType>LeftSingle+LeftRelease</ClickType></MouseClick><Tooltip>Toggle Flight Management System</Tooltip></MouseArea></SimGauge.Gauge></SimBase.Document>Is that right? Best regards, Bob.
February 5, 201016 yr Author <Tooltip id="Tooltip"><Tooltip>Toggle Flight Management System</Tooltip></Tooltip>You have multiple <Tooltip> entries, which should not be done. The first one is causing the sim to ignore the second. Use this only:<Tooltip>Toggle Flight Management System</Tooltip>Hi Bill. I tried that. See my post above. It still does not show the tooltip. Any suggestions? Thanks for the help. Best regards, Bob.
February 5, 201016 yr Not sure because i donot have FSX but maybe try this.. A combo of the 2. <Tooltip id="FMS Toggle">Toggle Flight Management System</Tooltip> Roman FS RTWR SHRS F-111 JoinFS Little Navmap
February 5, 201016 yr Author Not sure because i donot have FSX but maybe try this.. A combo of the 2.<Tooltip id="FMS Toggle">Toggle Flight Management System</Tooltip> Roman Hi Roman. Thanks. I'll try that too. Best regards, Bob.
February 5, 201016 yr Moderator The problem(s) stem from having four completely different XML Schemas!FS9 Gauge SchemaFSX Gauge SchemaFS9 Model SchemaFSX Model SchemaBecause of this, the same entry has four different formats, and this causes all sorts of confusion... :( Add to that the three different ways Tooltips may be created/defined within each of the four Schemas, and we really can get confused! :( FSX Gauge Schema for pre-compiled Tooltip IDs: <Tooltip id="Tooltip"> <DefaultId>TOOLTIPTEXT_RADIO_ALTIMETER_DH_FEET</DefaultId> </Tooltip> FSX Gauge Schema for user-created Text Tooltips: <Tooltip id="Tooltip"> User-created custom Tooltip text goes here </Tooltip> FSX Gauge Schema for user-created Dynamic Tooltips: <Tooltip id="Tooltip"> <Code>"Decision Height Setting Knob (%((A:DECISION HEIGHT,FEET))%!d! feet)"</Code> </Tooltip> This is why it is CRITICAL when asking a question that one state which XML Schema (FS9/FSX) is being referred to, and which XML Type (Gauge/Model) is being referred to...For example,"I'm working on an FSX (only) Gauge, and have a question...""I'm working on an FSX Model XML script...""I'm working on an FS9 gauge..."et cetera. Fr. Bill AOPA Member: 07141481 AARP Member: 3209010556 Avsim Board of Directors | Avsim Forums Moderator
February 5, 201016 yr Author The problem(s) stem from having four completely different XML Schemas!FS9 Gauge SchemaFSX Gauge SchemaFS9 Model SchemaFSX Model SchemaBecause of this, the same entry has four different formats, and this causes all sorts of confusion... :( Add to that the three different ways Tooltips may be created/defined within each of the four Schemas, and we really can get confused! :( FSX Gauge Schema for pre-compiled Tooltip IDs: <Tooltip id="Tooltip"> <DefaultId>TOOLTIPTEXT_RADIO_ALTIMETER_DH_FEET</DefaultId> </Tooltip> FSX Gauge Schema for user-created Text Tooltips: <Tooltip id="Tooltip"> User-created custom Tooltip text goes here </Tooltip> FSX Gauge Schema for user-created Dynamic Tooltips: <Tooltip id="Tooltip"> <Code>"Decision Height Setting Knob (%((A:DECISION HEIGHT,FEET))%!d! feet)"</Code> </Tooltip> This is why it is CRITICAL when asking a question that one state which XML Schema (FS9/FSX) is being referred to, and which XML Type (Gauge/Model) is being referred to...For example,"I'm working on an FSX (only) Gauge, and have a question...""I'm working on an FSX Model XML script...""I'm working on an FS9 gauge..."et cetera. Thanks for the info Bill. All I am trying to do is get a custom tooltip in a gauge to be used in FSX SP1. The gauge was designed around an SP2 SDK gauge that did not work in SP1. It did not work because the method of calling out the tooltips was not recognized in SP1 and the gauge would not work at all. I deleted the lines from the gauge with the offending tooltip callouts and the gauge worked. I then tried to replace them with a tooltip method that has worked for me in other gauges. It evidently won't work with the coding I have tried. Best regards, Bob.
February 5, 201016 yr Commercial Member Since most commercial aircraft addons are requiring SP2... it befuddles me why people are refusing to use it. :( Ed Wilson Mindstar AviationMy Playland - I69
February 6, 201016 yr Moderator Thanks for the info Bill. All I am trying to do is get a custom tooltip in a gauge to be used in FSX SP1. The gauge was designed around an SP2 SDK gauge that did not work in SP1. It did not work because the method of calling out the tooltips was not recognized in SP1 and the gauge would not work at all. I deleted the lines from the gauge with the offending tooltip callouts and the gauge worked. I then tried to replace them with a tooltip method that has worked for me in other gauges. It evidently won't work with the coding I have tried. Best regards, Bob.Bob, please post the entire XML script for the gauge. That way I can see what the problem really is. I noticed in your original post a </Script> line that has no precedent, and it may well be blocking everything from being parsed that comes below it. Fr. Bill AOPA Member: 07141481 AARP Member: 3209010556 Avsim Board of Directors | Avsim Forums Moderator
February 6, 201016 yr Hi Bill,here a simple XML code with a tooltip included generatet with ACE tool .<?xml version="1.0" encoding="UTF-8"?><SimBase.Document Type="AceXML" version="1,0" id="PNL_Reload"> <Descr>AceXML Document</Descr> <Filename>PNL_Reload.xml</Filename> <SimGauge.Gauge id="Gauge"> <FloatPosition>0.000,0.000</FloatPosition> <Size>25,20</Size> <Image id="RELOAD.bmp" Name="RELOAD.bmp"> <Transparent>True</Transparent> <Bright>True</Bright> <Luminous>True</Luminous> </Image> <MouseArea id="MouseArea"> <FloatPosition>0.000,0.000</FloatPosition> <Size>25,20</Size> <CursorType>Hand</CursorType> <MouseClick id="MouseClick"> <script>(>K:RELOAD_USER_AIRCRAFT)</Script> </MouseClick> <Tooltip id="Tooltip"> <DefaultScript>Panel Reload</DefaultScript> </Tooltip> </MouseArea> </SimGauge.Gauge></SimBase.Document>The trouble is this line : <DefaultScript>Panel Reload</DefaultScript>If you delete this line or just delete the text, the gauge will work also in SP1. RegardsDietmar
February 6, 201016 yr Author Hi Bill,here a simple XML code with a tooltip included generatet with ACE tool .<?xml version="1.0" encoding="UTF-8"?><SimBase.Document Type="AceXML" version="1,0" id="PNL_Reload"> <Descr>AceXML Document</Descr> <Filename>PNL_Reload.xml</Filename> <SimGauge.Gauge id="Gauge"> <FloatPosition>0.000,0.000</FloatPosition> <Size>25,20</Size> <Image id="RELOAD.bmp" Name="RELOAD.bmp"> <Transparent>True</Transparent> <Bright>True</Bright> <Luminous>True</Luminous> </Image> <MouseArea id="MouseArea"> <FloatPosition>0.000,0.000</FloatPosition> <Size>25,20</Size> <CursorType>Hand</CursorType> <MouseClick id="MouseClick"> <script>(>K:RELOAD_USER_AIRCRAFT)</Script> </MouseClick> <Tooltip id="Tooltip"> <DefaultScript>Panel Reload</DefaultScript> </Tooltip> </MouseArea> </SimGauge.Gauge></SimBase.Document>The trouble is this line : <DefaultScript>Panel Reload</DefaultScript>If you delete this line or just delete the text, the gauge will work also in SP1. RegardsDietmarHi Dietmar. That's exactly my problem except I was trying to find a simple way to reinstall the tooltip that SP1 would accept. Deleting the line then the gauge will work in SP1. Thanks and best regards, Bob.
February 7, 201016 yr Moderator Hi Dietmar. That's exactly my problem except I was trying to find a simple way to reinstall the tooltip that SP1 would accept. Deleting the line then the gauge will work in SP1. Thanks and best regards, Bob.That is not what I was referring to at all. Here's the script from your original post. Notice the </Script> entry on the first line: </Script><ClickType>LeftSingle+LeftRelease</ClickType></MouseClick><Tooltip>Toggle Flight Management System</Tooltip></MouseArea></SimGauge.Gauge></SimBase.Document>That one closing </Script> tag is quite likely the problem, since it is not in a logical place. That is why I asked to see the ENTIRE gauge script. One single, tiny, obscure syntax error is the most likely cause of the tooltip failure... :( Fr. Bill AOPA Member: 07141481 AARP Member: 3209010556 Avsim Board of Directors | Avsim Forums Moderator
February 7, 201016 yr Author That is not what I was referring to at all. Here's the script from your original post. Notice the </Script> entry on the first line:That one closing </Script> tag is quite likely the problem, since it is not in a logical place. That is why I asked to see the ENTIRE gauge script. One single, tiny, obscure syntax error is the most likely cause of the tooltip failure... :(Hi Bill. Thanks. Here's my complete code:<?xml version="1.0" encoding="UTF-8"?><SimBase.Document Type="AceXML" version="1,0" id="FMS_Icon"> <Descr>AceXML Document</Descr> <Filename>FMS CDU_Icon.xml</Filename> <SimGauge.Gauge id="Gauge" ArtDirectory="C:\Microsoft Flight Simulator X SDK\SDK\Bob\My_Icons"> <FloatPosition>0.000,0.000</FloatPosition> <Size>30,30</Size> <Image id="FMS_Icon.bmp" Name="FMS CDU_Icon.bmp"> <Transparent>True</Transparent> </Image> <Element> <Visibility>(A:LIGHT PANEL,bool) (A:Circuit general panel on, bool) 1 == &&</Visibility> <Image id="FMS CDU_Icon_night.bmp" Name="FMS CDU_Icon_night.bmp"> <Bright>True</Bright> <Transparent>True</Transparent> </Image> </Element> <MouseArea id="MouseArea"> <FloatPosition>0.000,0.000</FloatPosition> <Size>30,30</Size> <CursorType>Hand</CursorType> <MouseClick id="MouseClick"> <script> (M:Event) 'LeftSingle' scmp 0 == if{ 0 (>L:FMS CDU icon Pressed,enum) 10007 (>K:PANEL_ID_TOGGLE) } (M:Event) 'LeftRelease' scmp 0 == if{ 0 (>L:FMS CDU icon Pressed,enum) } </Script> <ClickType>LeftSingle+LeftRelease</ClickType> </MouseClick> <Tooltip>Toggle FMS CDU</Tooltip> </MouseArea> </SimGauge.Gauge></SimBase.Document>Best regards, Bob.
February 7, 201016 yr Moderator Bob... four things...1. I wish everyone would use the forum's *code* tags to keep the XML script formatted.2. This stupid *$(@) forum software must use < Script> as a keyword or something, 'cause it keeps forcing it into a lower case "s"......so, I don't really know if #3 is really a mistake, or it's just an artifact from the silly forum software! It's something to keep in mind though. I've place a blank space between the < and S, so remove it before use!3. Copy/Pasting your code into my Visual Studio IDE, the "smartsense" found the error in about 0.3 seconds. It was, as I surmised a very simple error, but one that's easily overlooked. The <script> tag should have been <Script>... Capitalization is a killer in the FSX XML Schema! :( 4. On examining the FSX SDK closer, I believe the correct format for your <Tooltip... should be: <Tooltip "Toggle FMS CDU"/> I've moved the <Tooltip> up a bit, and corrected the <Script> error: <SimBase.Document Type="AceXML" version="1,0" id="FMS_Icon"> <Descr>AceXML Document</Descr> <Filename>FMS CDU_Icon.xml</Filename> <SimGauge.Gauge id="Gauge" ArtDirectory="C:\Microsoft Flight Simulator X SDK\SDK\Bob\My_Icons"> <FloatPosition>0.000,0.000</FloatPosition> <Size>30,30</Size> <Image id="FMS_Icon.bmp" Name="FMS CDU_Icon.bmp"> <Transparent>True</Transparent> </Image> <Element> <Visibility>(A:LIGHT PANEL,bool) (A:Circuit general panel on, bool) 1 == &&</Visibility> <Image id="FMS CDU_Icon_night.bmp" Name="FMS CDU_Icon_night.bmp"> <Bright>True</Bright> <Transparent>True</Transparent> </Image> </Element> <MouseArea id="MouseArea"> <FloatPosition>0.000,0.000</FloatPosition> <Size>30,30</Size> <Tooltip "Toggle FMS CDU"/> <CursorType>Hand</CursorType> <ClickType>LeftSingle+LeftRelease</ClickType> <MouseClick id="MouseClick"> < Script> (M:Event) 'LeftSingle' scmp 0 == if{ 0 (>L:FMS CDU icon Pressed,enum) 10007 (>K:PANEL_ID_TOGGLE) } (M:Event) 'LeftRelease' scmp 0 == if{ 0 (>L:FMS CDU icon Pressed,enum) } </Script> </MouseClick> </MouseArea> </SimGauge.Gauge></SimBase.Document> Fr. Bill AOPA Member: 07141481 AARP Member: 3209010556 Avsim Board of Directors | Avsim Forums Moderator
Create an account or sign in to comment