Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Accessing Token variables in FS2004

Featured Replies

Hi y'all!I hope you can help with a problem I got.. I've got to read out the values of some token variables from FS2004 because we need the data in a small project. I tried to use the panels and gauges sdk to create an invisible gauge and thus to read out the variables with lookup_var(). It kind of works, but my value-recording-function is obviously only called when the flight simulation begins and ends. However I need to collect the data also during the flight. So, how can I get the FS to call my function periodically during the flight? What I did up to now is that I used a callback function in the GAUGE_HEADER_FS700-macro, which seems to be called only for the serviceIds PANEL_SERVICE_CONNECT_TO_WINDOW, PANEL_SERVICE_DISCONNECT, PANEL_SERVICE_PRE_QUERY and PANEL_SERVICE_POST_QUERY. Does anyone have an idea? Thanks in advance... ;)Kathrin

PANEL_SERVICE_PRE_UPDATE is called at a steady rate of 18Hz, while PANEL_SERVICE_PRE_DRAW is called once on each FS frame, when the panel is visible.Try one of those serviceID's for your lookup routine.Doug

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.