kyriakos876 wrote:Okay, let's hope jsmorley won't see this as he is strongly against this type of writing deleting stuff to / from a file.
(I warned you about the complexity of this.)
Now to give you and idea, when you install the skin you will see a + button, if you hit that a box will be created via the .lua script. Then, there will appear a - button below that "+" button giving you the option to remove the box you created before. (Don't click the red spot it's a work in progress thing.)
My issue at the moment is line 152 at the .lua script
Not sure, probably I am missing something.
First take care that the [MeasureLua] measure of the Main.ini skin is commented out. This way the measure practically doesn't even exist. Add it back to the code, to can use it.
I did this. In the @Resources\FileToEdit.txt file, existing in the downloaded package, the B1 - B17 variables do exist.
If I remove them, then refresh the skin and click the + and / or - buttons, the variables (in an ascending / descending order) are re-added to the [Variables] section of the FileToEdit.txt file.
You said the !WriteKeyValue bang doesn't work. Take care that this bang writes the appropriate value to the appropriate section of the appropriate file, but this value isn't used by the skin, if you don't refresh it. Every time you're clicking a button, you have to check the content of the FileToEdit.txt file, to see if the variable had been added.
Didn't enter deeply in the code, but I think it is working as it should. Am I wrong?