Search results

  1. taguilo

    FSXA Question on XMLTools (Tom)

    Hi Rob, You pretty much got it. However, an important observation: when you issue 'FLAPS_DOWN' (>C:XMLEVENTS:EventName,string) '(>K:FLAPS_UP)' (>C:XMLEVENTS:EventString,string) you are actually storing a script to execute every time FLAPS DOWN event is triggered; unless you want to change...
  2. taguilo

    FSXA Question on XMLTools (Tom)

    Here you have an example of how to control flaps without those unwanted effects: <Macro Name="FLAPS_INCR"> (L:FlapsByUSer,bool) if{ 0 (>L:FlapsByUSer,bool) } els{ (L:Electrical Main Bus Voltage,Volts) 10 &lt; if{...
  3. taguilo

    FSXA Question on XMLTools (Tom)

    Hi Rob, XMLEVENTS capture won't prevent the event to be triggered. However, as it is possible to detect the value being passed to the event, it is also possible to trigger another event according to that value. For example: <Macro Name="e">C:XMLEVENTS</Macro> <Macro...
  4. taguilo

    <Update> section limitations

    Using Element scripts has an important advantage over Update, in that each <Value> script is individually treated, where Update script is a single chunk of code, even in FSX's multiple <Update> schema. Therefore, <Value> is the perfect place to use one of the most powerful operators : quit. So...
  5. taguilo

    Vertical Speed vs Altitude Hold Question

    You should be able to do so by setting default_pitch_mode and default_bank_mode to 0 in aircraft.cfg In this case, you need to trigger AP_ATT_HOLD_ON either when engaging the AP or the FD Tom
  6. taguilo

    Vertical Speed vs Altitude Hold Question

    Hi, Same as you know for Garmin 605, once AP or FD is enabled, it will always be a basic mode for pitch and roll. So when no other roll mode is selected, AP/FD defaults to ROLL (wings leveled or current bank angle if greater than +/- n degrees); when no other pitch mode selected AP/FD defaults...
  7. taguilo

    XML Syntax Question

    No matter the <Click> kind condition (Left,Right,Left+Right, none, etc) , if it is met then the script will execute and if (L:Var1,bool) is true then the if{} portion will execute as well. In that example 'LeftSingle' scmp 0 == becomes meaningless, and the only part of the script being...
  8. taguilo

    FSX:SE Bitmask between C++ and XML

    It can be easily done just by using doubles in C++, considering LVars are all doubles. For example you can take 1000000 and add values like they were bits : 1000001 or 1000011 etc. double base = 1000000; double export; if(condA) export = base + 1; if(condB) export = base + 10; if(condC)...
  9. taguilo

    FSX FSX Gauge XML: How to access dynamically LVARs

    I really don't know, never tried. If LUA supports C: custom vars, then it would be possible to retrieve info from XMLVars. You could try by extracting a C:fs9gps variable value. For example load a Flight Plan and try val = varget("C:fs9gps:FlightPlanIsActiveFlightPlan","bool") If returns 1...
  10. taguilo

    FSX FSX Gauge XML: How to access dynamically LVARs

    No. Macros are literal text replacements only. Tom
  11. taguilo

    P3D v4 Script error in P3Dv4

    You're right, I tested and surprisingly (to me) the if{ } is executed. I recall having done this test many times, but looong ago (FS9 perhaps), and I can assure you it wouldn't work then. Which was very odd as logical "true"is a non zero number, but wasn't working that way. Thanks for pointing...
  12. taguilo

    P3D v4 Script error in P3Dv4

    I agree. Funny thing is that the xml parser uses a convention for executing if{ } conditionals. So the value in the stack just before an if{ } is first converted to integer and then evaluated to determine whether the conditional shall be executed or not. Then, for example, 1.00 if{ } ->...
  13. taguilo

    P3D v4 Script error in P3Dv4

    Ed, Please read my post. The stack knows nothing about true/false concept, hence the parser returns any evaluation in which A A == as 1 and A B == as 0. No other result is supported. Tom
  14. taguilo

    Xml gauge limits in FSX

    Macro call parameters are simply text scripts. What those scripts contain depend exclusively on how that text is "received" and interpreted in the macro itself. We can pass any script as a parameter providing it does not contain a comma, as it is used as a separator between parameters -...
  15. taguilo

    P3D v4 Script error in P3Dv4

    That guy gave you a bad report. There is nothing wrong with that script as it is written therefore it won´t throw any error by itself. Problem is elsewhere in the code. There´s no "true" or "false" return, ever. Evaluations always put 0 or 1 in the stack. If there is an LVar assignment...
  16. taguilo

    Xml gauge limits in FSX

    Hi, You’ve reached a limit in the size of the <Update> script. Just split the macros in different <Element> scripts and it will work fine. Tom
  17. taguilo

    P3D v4 Apparent repeat when single event wanted

    Hi Bob, Register values in <Event> scripts are cleared after the script is executed. It means your solution won't (or shouldn't) work, considering Roy declares the event is executed twice. A solution I use in different situations is this: <Script> (L:MyVar,bool) if{...
  18. taguilo

    Little help with a script

    Hi, Just write: (LVAR) ! 100 * (>LVAR) Tom
  19. taguilo

    Gauge "soft" keys access

    How can't you? Just check on panel.cfg the name of the gauge. Then do a search in panel subfolders/gauges folders. If gauge extension is .xml, enough said; if it is .cab then is an xml gauge as well; if it is .dll/gau is a C/C++ gauge. If the gauge is written in C/C++ is is likely that action...
  20. taguilo

    P3D v4 Is it possible..... Stack string on another string in same code block?

    No, there must not. It might be, and to keep code well structured, should be. But the script will work without it. I recall to have posted the same clarification in a thread months (years?) ago. I believe he got confused thinking of the <Visible> issue with string elements, when sometimes they...
Top