FSDreamTeam forum

Developer's Backdoor => GSX Backdoor => Topic started by: Ebertr on January 22, 2020, 11:34:39 am

Title: L:FSDT_GSX_NUMPASSENGERS_DEBOARDING_TOTAL **SOLVED**
Post by: Ebertr on January 22, 2020, 11:34:39 am
The L:FSDT_GSX_NUMPASSENGERS_DEBOARDING_TOTAL seems not to work as intended. During deboarding passengers the reading of the Lvar is '0'. During boarding passengers the L:FSDT_GSX_NUMPASSENGERS_DEBOARDING_TOTAL is the same as L:FSDT_GSX_NUMPASSENGERS_BOARDING_TOTAL.

Ruediger
Title: Re: L:FSDT_GSX_NUMPASSENGERS_DEBOARDING_TOTAL
Post by: virtuali on January 22, 2020, 12:33:02 pm
I've just checked this now, and cannot replicate it:

- Called Deboarding, with 104 passengers using the default 737 from FSX, with Multiple Trips enabled.

- 1st Bus arrives, FSDT_GSX_NUMPASSENGERS_DEBOARDING and FSDT_GSX_NUMPASSENGERS_DEBOARDING_TOTAL increase together up to 90. FSDT_GSX_NUMPASSENGERS_BOARDING and FSDT_GSX_NUMPASSENGERS_DEBOARDING_TOTAL both stay at 0

- 1st Bus goes away

- 2nd Bus arrives FSDT_GSX_NUMPASSENGERS_DEBOARDING counts up from 1 to 14, FSDT_GSX_NUMPASSENGERS_DEBOARDING_TOTAL continues from 90 to 104

- Called Boarding, with 104 passengers

- 1st Bus arrives, FSDT_GSX_NUMPASSENGERS_BOARDING and FSDT_GSX_NUMPASSENGERS_BOARDING_TOTAL increase together up to 90. FSDT_GSX_NUMPASSENGERS_DEBOARDING and FSDT_GSX_NUMPASSENGERS_DEBOARDING_TOTAL keep their previous values of 90 and 104 from the initial Deboarding

- 1st Bus goes away

- 2nd Bus arrives FSDT_GSX_NUMPASSENGERS_BOARDING counts up from 1 to 14, FSDT_GSX_NUMPASSENGERS_BOARDING_TOTAL continues from 90 to 104. FSDT_GSX_NUMPASSENGERS_DEBOARDING and FSDT_GSX_NUMPASSENGERS_DEBOARDING_TOTAL keep their previous values of 90 and 104 from the initial Deboarding.

So, all involved variables work as expected. How do you check L: variables ?
Title: Re: L:FSDT_GSX_NUMPASSENGERS_DEBOARDING_TOTAL
Post by: Ebertr on January 27, 2020, 08:00:47 pm
Hi virtuali,
I use the FSUIPC Client DLL provided by Paul Henty. Works perfect for all GSX Lvars .


                GSX_NUMPASSENGERS_BOARDING_Total = FSUIPCConnection.ReadLVar("L:FSDT_GSX_NUMPASSENGERS_BOARDING_TOTAL")
                GSX_NUMPASSENGERS_BOARDING = FSUIPCConnection.ReadLVar("L:FSDT_GSX_NUMPASSENGERS_BOARDING")

                GSX_NUMPASSENGERS_DEBOARDING_Total = FSUIPCConnection.ReadLVar("L:FSDT_GSX_NUMPASSENGERS_DEBOARDING_TOTAL")
                GSX_NUMPASSENGERS_DEBOARDING = FSUIPCConnection.ReadLVar("L:FSDT_GSX_NUMPASSENGERS_DEBOARDING")

I did the same tests as you did:

Boarding:

L:FSDT_GSX_NUMPASSENGERS_BOARDING and L:FSDT_GSX_NUMPASSENGERS_BOARDING_TOTAL up with the first bus to 90. With the second bus L:FSDT_GSX_NUMPASSENGERS_BOARDING starts with 1 again, while L:FSDT_GSX_NUMPASSENGERS_BOARDING_TOTAL counts the total number.

L:FSDT_GSX_NUMPASSENGERS_DEBOARDING_TOTAL counts up with the same numbers as L:FSDT_GSX_NUMPASSENGERS_BOARDING and starts again with 0 with the second bus (same as L:FSDT_GSX_NUMPASSENGERS_BOARDING). Seems to be wired.

Deboarding.

L:FSDT_GSX_NUMPASSENGERS_DEBOARDING counts with the first bus up to 90, while L:FSDT_GSX_NUMPASSENGERS_DEBOARDING_TOTAL stays on 0. With the second bus L:FSDT_GSX_NUMPASSENGERS_DEBOARDING starts with 0 and counts up to 14. Total always on 0.

Kind regards,

Ruediger
Title: Re: L:FSDT_GSX_NUMPASSENGERS_DEBOARDING_TOTAL
Post by: virtuali on January 27, 2020, 10:57:57 pm
I did the same tests as you did:

Since I couldn't reproduce your result, the only possible explanation is the method you use to read L: vars has some kind of problem or bug, possibly not updating the variable IDs, as explained on GSX manual, Page 69.

There are several 3rd party airplanes that relies on those variables to control boarding/deboarding ( FS Labs, Aerosoft, Leonardo ), if some of them didn't work, I'm sure developers would have alerted us long ago.
Title: Re: L:FSDT_GSX_NUMPASSENGERS_DEBOARDING_TOTAL
Post by: Ebertr on February 08, 2020, 04:41:48 pm
The cause is clear now. Thanks for your affort, Virtuali.

https://forum.simflight.com/topic/88461-problem-with-reading-lvar/?tab=comments#comment-537112

Ruediger