Jump to content
Sign in to follow this  
n4gix

FSX: (SIM_SPEED) Token Variable

Recommended Posts

Hi all,I'm trying an FS9 C++ gauge out on FSX , I noticed the (SIM_SPEED)token value is different, instead of 1.0 for 1x rate, it is now returning a value of 256 for 1x.Not a problem; then for 2x, and 4x it returns a value of 512 and 1024 respectively, ok np. But for any rate after 4x I still get the value of 1024 for the (SIM_SPEED). The simulator message on the upper right confirms its 8x,16x, etc, but the token value is still 1024, and does not change until it goes below 4x.Does anyone know if there's something else that must be done to retrieve the correct sim rate after 4x in FSX ? Thanks.Regards.Ernie.


ea_avsim_sig.jpg

Share this post


Link to post
Share on other sites
Guest Patrick_Waugh

Hmmmm are you putting the value in to small a var maybe? Post some code maybe.

Share this post


Link to post
Share on other sites

Pat, that token var simply returns a value indicating what SIM_SPEED currently is.One normally doesn't "put" anything into a token, one would use a key_event command for that purpose... ;)In FS9, the value returned was a number made sense: 0.25, 0.50, 0.75, 1.0, 2.0, ... up to 32.0...Now the value returned is "strange" to be kind... I guess it's yet another example of something getting "broken" this time around. :-roll I've been using it in my timer code so that elapsed time and flight time would remain accurate when the simmer adjusts sim speed. It was simple to implement, since the value returned was an exact scalar...


Fr. Bill    

AOPA Member: 07141481 AARP Member: 3209010556


     Avsim Board of Directors | Avsim Forums Moderator

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...