Products Support > GSX Support FSX/P3D

ProSim A320 & GSX

<< < (2/2)

Captain Kevin:

--- Quote from: virtuali on February 18, 2022, 11:16:55 am ---And, if you set the variable yourself, regardless if the estimate is enabled or not, GSX will always use the value of the variable.

--- End quote ---
Now I'm curious, how does one go about doing that. I'm looking at the manual, and although I see the variables that need to be set, I don't know enough about coding to be able to create a gauge to be able to set it. Assuming I want to set a passenger count of 314 for a Boeing 747-400.

virtuali:

--- Quote from: Captain Kevin on February 18, 2022, 02:36:20 pm ---Now I'm curious, how does one go about doing that. I'm looking at the manual, and although I see the variables that need to be set, I don't know enough about coding to be able to create a gauge to be able to set it. Assuming I want to set a passenger count of 314 for a Boeing 747-400
--- End quote ---

Your best options are either FSUIPC using LUA scripting, or Linda

https://www.mutleyshangar.com/reviews/bc/linda/linda.htm

Fragtality:
@Cpt. Kevin
Basically it is just one Lua-Line:

--- Code: ---ipc.writeLvar("FSDT_GSX_NUMPASSENGERS", PAXNUM)
--- End code ---
which you would need to set before (De)Boarding is called (but to be safe after the current / selected Gate has activated).

Everything else depends on how you would prefer it to be executed. The easiest manual Way would be to bind such a one-liner Lua-Script via FSUIPC to Button or Key which you would need to press accordingly. (Registered Version of FSUIPC required)
Having it set automatically requires some continuous state tracking and evaluation. That's doable but complex if you aren't used to scripting/coding - but you can have a look at the gsx_auto Script I provided with the QualityWings Integration.

@AlphaTech
To not board the Crew, here what I use in my Tool to disable it:

--- Code: ---FSUIPCConnection.WriteLVar("FSDT_GSX_PILOTS_NOT_BOARDING", 1);
FSUIPCConnection.WriteLVar("FSDT_GSX_CREW_NOT_BOARDING", 1);
FSUIPCConnection.WriteLVar("FSDT_GSX_PILOTS_NOT_DEBOARDING", 1);
FSUIPCConnection.WriteLVar("FSDT_GSX_CREW_NOT_DEBOARDING", 1);
FSUIPCConnection.WriteLVar("FSDT_GSX_NUMCREW", 0);
FSUIPCConnection.WriteLVar("FSDT_GSX_NUMPILOTS", 0);
--- End code ---
That's directly from C# ... in FSUIPC Lua it would be

--- Quote ---ipc.writeLvar("NAME", value)
--- End quote ---

Works great for me, but I hope I use it as intended  ;D

Navigation

[0] Message Index

[*] Previous page

Go to full version