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.

No longer can read/write Lvars

Featured Replies

I'm running LINDA Version 3.0.12.810, and have been for about two months now.Never really had any problems before, except for a little glitch at setup over my throttle quadrants. I've been writing my own lua scripts, and they've been running just fine up until the middle of last week. Now, however, if a newly-created function attempts to write to, or read from, a Lvars, nothing happens. I can see the function called, I can trace the button as it is activated and deactivated, but the LVar value itself does not change. As well, if I remove a function that has been working, make and save any changes to the user.lib, and then paste that function back inside, it no longer works. 

 

I've no idea what's up, but it's intensely frustrating. 

 

Al

I would need to see the function to see what is going wrong. Just paste it here. Check the Console or fsuipcX.log to ensure that you are getting any red highlighted lines when your code loads. This will stop everything dead.

Andrew Gransden

Scotland, UK

LINDA Support/Developer - VATSIM and BAVirtual - Airbus Flyer

i7 1TB SSD GTX980 - FSX/P3D - Aerosoft Airbus A318/A319/A320/A321 - FS2Crew

  • Author

Code loads up fine, no red lines or error messages. Here is the code itself:

function All_Magnetos_Off_a ()

    ipc.writeLvar("L:Magnetos1Switch",0)
    ipc.sleep(1500)

    ipc.writeLvar("L:Magnetos2Switch",0)
    ipc.sleep(1500)

    ipc.writeLvar("L:Magnetos3Switch", 0)
    ipc.sleep(1500)

    ipc.writeLvar("L:Magnetos4Switch",0)
    ipc.sleep(1500)

end

function All_Magnetos_R_a ()

    ipc.writeLvar("L:Magnetos1Switch",1)
    ipc.sleep(1500)

    ipc.writeLvar("L:Magnetos2Switch",1)
    ipc.sleep(1500)

    ipc.writeLvar("L:Magnetos3Switch", 1)
    ipc.sleep(1500)

    ipc.writeLvar("L:Magnetos4Switch",1)
    ipc.sleep(1500)

end

function All_Magnetos_L_a ()

    ipc.writeLvar("L:Magnetos1Switch",2)
    ipc.sleep(1500)

    ipc.writeLvar("L:Magnetos2Switch",2)
    ipc.sleep(1500)

    ipc.writeLvar("L:Magnetos3Switch", 2)
    ipc.sleep(1500)

    ipc.writeLvar("L:Magnetos4Switch",2)
    ipc.sleep(1500)

end

function All_Magnetos_Both_a ()

    ipc.writeLvar("L:Magnetos1Switch",3)
    ipc.sleep(1500)

    ipc.writeLvar("L:Magnetos2Switch",3)
    ipc.sleep(1500)

    ipc.writeLvar("L:Magnetos3Switch", 3)
    ipc.sleep(1500)

    ipc.writeLvar("L:Magnetos4Switch",3)
    ipc.sleep(1500)

end

  • Author

Sorry, that'd help I'm sure. It's the A2A B-17

 

Archived

This topic is now archived and is closed to further replies.

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.