Hello! I’ve been trying use 010 Editor to find and adjust some values in some files. I am using a .bt template to read the hex format, and it does its job correctly as far as I can tell. However, I wrote (well, I would write more but can’t get past the first steps) a script to edit values read by the template, but it fails due to the variable being undefined when executing it on the file or template.
Executing script ‘D:\ChangePower.1sc’ on ‘D:\m21_00_00_00_0000.btl’…
*ERROR Line 2: Variable ‘lights’ is undefined.
I have attached a screenshot of the issue. Seeing as the variables are successfully created by the Template, I must be missing something.
I tested reading variables using a .TIF image, .TIF template, and the .TIF script to insert tags, and that works fine, so I don’t think variables as a whole are the issue.
Appreciate any help!