ark1320 Posted February 10, 2017 Report Posted February 10, 2017 Pete, In the FSUIPC.ini file all the Lua scripts are listed and numbered under the [LuaFiles] heading. Over time many scripts have been added and deleted so the number sequence is no longer close to contiguous. For example, the first listed script is numbered 19, half way down the list is the script numbered 1, etc. So I had the 'brilliant' idea of deleting all the entries under [LuaFiles] and letting FSUIPC rebuild a contiguously numbered list. That was a bad idea, I found out, because the key and button assignments are made based on the Lua script numbering. Fortunately, I had a backup and was able to recover (I have about 60 scripts). So my question is, is there a way to preserve the script - key/button assignments if the scripts are renumbered? Thx, Al
Pete Dowson Posted February 10, 2017 Report Posted February 10, 2017 30 minutes ago, ark1320 said: In the FSUIPC.ini file all the Lua scripts are listed and numbered under the [LuaFiles] heading. Over time many scripts have been added and deleted so the number sequence is no longer close to contiguous. The contiguity is not really important, but if you delete entries to which there are button or key press assignments, obviously those will not work. Then if you add more scritps and assign those, the orginal assignments will address the wrong ones. 32 minutes ago, ark1320 said: I found out, because the key and button assignments are made based on the Lua script numbering. Yes. That was done to allow the internal assignment tables to be adapted for all the "new" (at the time) developments such Macros and Lua scripts without a complete re-write. 33 minutes ago, ark1320 said: So my question is, is there a way to preserve the script - key/button assignments if the scripts are renumbered? Sorry, no. You'd need to edit the relevant entries, or delete them and re-assign them. There is no record in the assignments of what the original script name was, so it can't possibly do it automatically. I suppose a utility program, processing the INI file, could do the job, but I really don't have time for such luxuries at present. Pete
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