• 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.

Change Payload

Messages
12
Country
norway
Hi.

I got a problem with a script in my XML gauge.
I'm trying it to change the payload of a station, but nothing happens.
Code:
        <MouseArea id="MouseArea">
            <FloatPosition>0.000,0.000</FloatPosition>
            <Size>225,145</Size>
            <MouseArea id="MouseArea">
                <FloatPosition>120.000,35.000</FloatPosition>
                <Size>80,13</Size>
                <CursorType>Hand</CursorType>
                <MouseClick id="MouseClick">
                    <Script>(A:PAYLOAD STATION WEIGHT:4,lbs) 170 +</Script>
                </MouseClick>
            </MouseArea>
        </MouseArea>

What has I done wrong?

The gauge is for the default B738
 
As someone here pointed out to me recently, you can't adjust sim vars via XML gauges. And even if you could, your script would have to read: (A:PAYLOAD STATION WEIGHT:4,lbs) 170 + (gt;A:PAYLOAD STATION WEIGHT:4,lbs) since all your script does is evaluate the expression, not write the output to anything.

The only way you can do that is by linking to SimConnect in a C gauge and using SetDataOnSimObject().

Si
 
If I use the CabinComfort as a template, what should I but where?
Code:
static PROPERTY_TABLE CABIN_PROPERTY_TABLE[] = 
{
	{ "PayloadStation4",			"lbs",		UNITS_UNKNOWN},
};

enum CABIN_VAR
{
    CABIN_VAR_PAYLOAD_STATION_4,
};
This is how far I got before I got stuck. What should I put where next?
 
Hi,

You can't actively modify a station's payload by any kind of gauge code, (C or XML) in the middle of a flight.
All you can do is write the new values in the proper section of aircaft.cfg, and make them active by reloading the aircraft.
To change those values, either write an external application similar to any of the loaders found in payware aircraft, or develop a gauge/dll with IO file support that can modify aircraft.cfg directly, but being noticeable after reloading the plane. Indeed you can apply the CabinComfort concept to make it with a combination of a C++ DLL and XML custom (CVar) variables.

Tom
 
Hi Folks

All you can do is write the new values in the proper section of aircaft.cfg,
and make them active by reloading the aircraft.
AFAIK, you shouldn't need to reload the aircraft.
You can change a/c payloads within missions,
and payload also changes when you pick up objects in free-flight, (Acceleration).
It may well be possible.

HTH
ATB
Paul
 
Hi Folks


AFAIK, you shouldn't need to reload the aircraft.
You can change a/c payloads within missions,
and payload also changes when you pick up objects in free-flight, (Acceleration).
It may well be possible.

HTH
ATB
Paul

It is not possible in the way it seems alni wants to do that.
Building a mission will let you predefine one or more stations where to place payload(s), that can be tested by reading specific AVars, but the mission engine handles the process.
However,using Simconnect I believe it should be possible to set a given amount in pounds to any station through the AVar PAYLOAD STATION WEIGHT:index during a flight.
Then a custom FS dll could be programmed to use Simconnect calls to functions, so the payload can be modified and controlled even by values stored in XML local variables.
Not an easy task, but feasible.

Tom
 
No, but I think you can change the fuel load, if that helps?
You could put fuel tanks in the same location as each seat and adjust that weight instead.

Si
 
Allright

I will continue trying to find out how to do it in FS9, because in fact, VRS guys have managed to do it ( simulating the drag indeed....)

Thank you!
 
Back
Top