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.

Making own LUA module - action not executing

Featured Replies

Hello!

 

I hope somebody who knows a bit about making modules can help!

 

I have the IRIS Grob 115E Evaluation aircraft in P3D and I wanted to make a module for it. I went into the tracer and found the Lvar, SW_STROBE_LIGHTS. I clicked the toggle button in the tracer and it switched on. I now wanted to make that into a module. I made an aircraft inside the aircraft folder called 'test' I also did this in the linda-cfg. In my ident.lua I put simfolder="test" and in my actions.lua I put:

 

-- ## Lower Panel ##########
 
function strobeon ()
    ipc.writeLvar("SW_STROBE_LIGHTS", 1)
end
 
function strobeoff ()
    ipc.writeLvar("SW_STROBE_LIGHTS", 0)
end
 
I then assigned it to a button in LINDA and saved. I then went to test it but it did not work. I reloaded, restarted and nothing happens...
 
 I also do not know how to make it so when you click FSX Sync it knows the aircraft you are in, instead of just saying FSX Default.
 
 
Thank you!
------

Oops! and 2 minutes after posting this I get it working! After getting the FSX Sync thing working then reloading it worked! 

 

Sorry!

----

Hi Joshua

 

The problem you are having is that the entry in the ident.lua file must match the name of the aircraft simobject file. In your case this should be something like 'Grob' or 'Grob115E'. Without this LINDA can not Sync to the aircraft and call the correct aircraft module code.

 

Tip: when testing a new function, you can call the function by right-clicking the function name in the LINDA Editor.

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

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.