Jump to content
The simFlight Network Forums

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

Posted

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

Posted

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

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.