FSDreamTeam forum
April 07, 2020, 03:19:00 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Login Register  
Pages: [1]
  Print  
Author Topic: L:FSDT_GSX_NUMPASSENGERS_DEBOARDING_TOTAL **SOLVED**  (Read 1164 times)
Ebertr
Newbie
*
Posts: 13


« on: January 22, 2020, 12:34:39 PM »

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
« Last Edit: February 11, 2020, 04:46:17 PM by virtuali » Logged
virtuali
Administrator
Hero Member
*****
Posts: 37986



WWW
« Reply #1 on: January 22, 2020, 01: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 ?
Logged

Ebertr
Newbie
*
Posts: 13


« Reply #2 on: January 27, 2020, 09: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
Logged
virtuali
Administrator
Hero Member
*****
Posts: 37986



WWW
« Reply #3 on: January 27, 2020, 11: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.
« Last Edit: January 28, 2020, 12:00:37 AM by virtuali » Logged

Ebertr
Newbie
*
Posts: 13


« Reply #4 on: February 08, 2020, 05: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
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!