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.

Not sure how to add changes to the user.lua

Featured Replies

Hi

 

I have changed a function in the action.lua for the A2A aircraft to display RPM instead of Horsepower, I know this should be done in the user.lua so it wont be overwritten but I am not sure how to do that, changes as below. I also changed temp units from F to C by changing to a 0 but once again not sure what and how I add this to the LUA so it is a persistent change

 

-- Power (in RPM)

 

EngRPM = round(IPC.readLvar("L:ENG_RPM"))

 

 

then later on it has

 

IF _MCP2() then

 

UpperInfoLong = "RPM "

 

ETC ETC just not sure how much of the code needs to go into user.lua, hope this makes sense

 

Regards
Wayne

 

 

Wayne such

Asus Hero Z690, Gigabyte Aorus Master 5080, I914900K, Kraken 360 AIO CPU Cooled, 96 GIGS Corsair DDR5, 32 Inch 4K by 3

Hi Wayne

 

Thank you for your question.

 

Any functions you place in users.lua will be actioned as any other when called.  Also if the function has the same name as one you wish to replace it will 'override' the existing function and be executed in place of the old one.

 

All functions should be added in the format:

 

function MyNewFunction

     {my code}

end

 

Simply copy your modified function and paste it into users.lua in the \linda\aircrafts\{your aircraft}\ folder alongside actions.lua.

 

Which code module did you change to display RPM and deg C?

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

thanks I will give that a try when I get a chance, think I understand now

Wayne such

Asus Hero Z690, Gigabyte Aorus Master 5080, I914900K, Kraken 360 AIO CPU Cooled, 96 GIGS Corsair DDR5, 32 Inch 4K by 3

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.