kaha Posted yesterday at 08:45 AM Report Posted yesterday at 08:45 AM 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
John Dowson Posted yesterday at 12:04 PM Report Posted yesterday at 12:04 PM 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
kaha Posted yesterday at 12:55 PM Author Report Posted yesterday at 12:55 PM Ahhh, I understand. Thank you, I will do this. Karl
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now