Jump to content
The simFlight Network Forums

Lua files reorganisation


Recommended Posts

Posted

John, how can I consolidate my Lua files. I already have 127 Lua files in the .ini file but many are not needed anymore and I need new ones.

So I deleted the section [LuaFiles], deleted all .lua files I don't need anymore and started FSUIPC. It seems the connection between buttons and lua files is based on the original number of that lua file because now the assignments are all wrong and I had to restore the backup I made before I made the changes.

How can I do this?

Karl

FSUIPC7_ini.zip

Posted

You will have to do this manually. 

First remove all the [LuaFiles] entries that you are no longer using, and move the corresponding lua scripts out of your FSUIPC7 installation folder.

Then, for each lua script remaining, you can renumber it and also change the assignment reference. So, for example, if you changed:
       16=Elevator_Trim
to
       1=Elevator_Trim
You would need to replace all occurrences of 'CL16:' with 'CL1:', i.e. change the lua reference numbers in the assignments to the new index number of the lua script.

If you are re-organising your luas, you should also consider moving them all to a subdirectory and using the LuaPath ini parameter under the [LuaFiles] section.

John

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.