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.

Reset L:vars

Featured Replies

Hi allFor FS9 XML, I need to reset some L:vars on sim reload from Flight planner change screen. Is there a value I can use to do this?

Paul EGLD

  • Moderator

Edit: Never mind... I wrote this without fully understanding the question... :(

<Update>   (L:Reset,bool) == 0   if{		0 (>L:MyVariable,unit)		1 (>L:Reset,bool)	 }</Update>

Fr. Bill    

AOPA Member: 07141481 AARP Member: 3209010556


     Avsim Board of Directors | Avsim Forums Moderator
Hi allFor FS9 XML, I need to reset some L:vars on sim reload from Flight planner change screen. Is there a value I can use to do this?
Hi Paul,I don't think there are any direct variables you can use, but maybe you can use the following "feature" of FS:Under most reload conditions (even when switching from fullscreen to windowed mode v.v.) G:Vars (not: L:Vars) are reset to zero.So if you set a G:Var, and detect a reset of it, such an occurance has happened.Don't know if that works for your type of reload, but if it does, the obvious disadvantage is that it works for other reloads as well (like window mode change).For me, this reset-distinction between G:Vars and L:Vars is the reason I hardly use G:Vars anymore.Cheers, Rob
  • Author
Hi Paul,I don't think there are any direct variables you can use, but maybe you can use the following "feature" of FS:Under most reload conditions (even when switching from fullscreen to windowed mode v.v.) G:Vars (not: L:Vars) are reset to zero.So if you set a G:Var, and detect a reset of it, such an occurance has happened.Don't know if that works for your type of reload, but if it does, the obvious disadvantage is that it works for other reloads as well (like window mode change).For me, this reset-distinction between G:Vars and L:Vars is the reason I hardly use G:Vars anymore.Cheers, Rob
Hi RobI think the G:vars could confuse things. I got this working OK
(L:FPlanNew,bool) ! (@c:FlightPlanTitle) 2 symb ord + (@c:FlightPlanTitle) 10 symb ord + (@c:FlightPlanTitle) 11 symb ord + s7 0 > & if{ l7 (>L:FPlanChange,number) 1 (>L:FPlanNew,bool) } 		  1 0 l7 (L:FPlanChange,number) != ? (>L:FPlanReset,bool) (L:FPlanReset,bool) if{ l7 (>L:FPlanChange,number) }

First line checks for existing FP, Second line check for change and resets L:vars. I may have to put in a timer to cater for large Fplans as it can take some time to reload.

Paul EGLD

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.