• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

P3D v5 Code issue

euroastar350

Resource contributor
Messages
862
Country
us-delaware
Hi everyone,

I've stumbled upon an issue and hopefully I can get it rectified. The following code works quite well in FSX and P3DV4 using XMLTools, but not in P3DV5. Has anyone run into a similar issue and come across a solution

And speaking of XMLTools and maybe Tom Aguilo could shed some light. Does it work in P3DV6? If not, are there plans to have it updated for that platform? No biggie if not.

Code:
<Area Left="15" Top="429" Width="53" Height="60">
         <Cursor Type="Hand"/>
         <Click>(A:PAYLOAD STATION WEIGHT:1, pounds) 170 !=
              if{ 170 (>C:SIMVARS:PAYLOAD STATION WEIGHT:1, pounds) }
              els{ 0 (>C:SIMVARS:PAYLOAD STATION WEIGHT:1, pounds) }
         </Click>
      </Area>
 
I wrote a payload loader for v6.
So try this

Code:
Area Left="15" Top="429" Width="53" Height="60">
         <Cursor Type="Hand"/>
         <Click>(L:PAYLOAD_STATION_WEIGHT_1,pounds) 170 !=
              if{ 170 (>L:PAYLOAD_STATION_WEIGHT_1,pounds) }
              els{ 0 (>L:PAYLOAD_STATION_WEIGHT_1,pounds) }
              1 (>L:PAYLOAD_STATION_Update,bool)
          </Click>
      </Area>
     
     
***********************************************
Add  this in a XML - File
i use a similare code for updating

   (L:PAYLOAD_STATION_Update,bool) 1 ==
   if{
     (L:PAYLOAD_STATION_WEIGHT_1,pounds) (&gt;C:SIMVARS:PAYLOAD STATION WEIGHT:1,pounds)
     0 (>L:PAYLOAD_STATION_Update,bool)  
     }


Code is not tested.
****************************

Have you a line in the aircraft.cfg?
for example

max_number_of_stations=20


Be aware!!

station_load.0 appends to (&gt;C:SIMVARS:pAYLOAD STATION WEIGHT:1,pounds)


I had a lot of troubles to make the code to work!

But the loader works fine now!
 
XMLTools is broken by v5.4 ( :index is not working, acknowledged by LM)

As been fixed in V6.
 
I wrote a payload loader for v6.
So try this

Code:
Area Left="15" Top="429" Width="53" Height="60">
         <Cursor Type="Hand"/>
         <Click>(L:PAYLOAD_STATION_WEIGHT_1,pounds) 170 !=
              if{ 170 (>L:PAYLOAD_STATION_WEIGHT_1,pounds) }
              els{ 0 (>L:PAYLOAD_STATION_WEIGHT_1,pounds) }
              1 (>L:PAYLOAD_STATION_Update,bool)
          </Click>
      </Area>
    
    
***********************************************
Add  this in a XML - File
i use a similare code for updating

   (L:PAYLOAD_STATION_Update,bool) 1 ==
   if{
     (L:PAYLOAD_STATION_WEIGHT_1,pounds) (&gt;C:SIMVARS:PAYLOAD STATION WEIGHT:1,pounds)
     0 (>L:PAYLOAD_STATION_Update,bool) 
     }


Code is not tested.
****************************

Have you a line in the aircraft.cfg?
for example

max_number_of_stations=20


Be aware!!

station_load.0 appends to (&gt;C:SIMVARS:pAYLOAD STATION WEIGHT:1,pounds)


I had a lot of troubles to make the code to work!

But the loader works fine now!

Everything is set properly in the cfg, including no weight. Your code doesn't work on my end, it's no big deal. Too bad LM decided to break working variables in the last iteration and not willing to fix it:rolleyes:
 
Back
Top