kaha Posted Sunday at 08:45 AM Report Posted Sunday 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 Sunday at 12:04 PM Report Posted Sunday 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 Sunday at 12:55 PM Author Report Posted Sunday at 12:55 PM Ahhh, I understand. Thank you, I will do this. Karl
kaha Posted 9 hours ago Author Report Posted 9 hours ago John, this is a lot of work, so I thought I could do this: In section [LuaFiles] There are some scripts listed I don't use anymore, as an example: 5=kaha_msfs_lua is not needed anymore, the file doesn't exist. Also there's no CL5 entry in the .ini file. I replaced the line with 5=someluascript but at the next start of FSUIPC the line again reads 5=kaha_msfs_lua. Where does FSUIPC store this information? Karl
John Dowson Posted 9 hours ago Report Posted 9 hours ago You can just remove/delete that line. This is the only place that FSUIPC stores that information - if it re-appeared, FSUIPC must still have been running when you removed it - I can't see how else it could have re-appeared. Only edit the LuaFiles section when FSUIPC is not running. John
kaha Posted 8 hours ago Author Report Posted 8 hours ago I see. I was too fast saving the .ini file after ending FSUIPC. Thank you, 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