TypesettingTools / Aegisub-Motion

Lua plugin for Aegisub auto4 that parses motion tracking data and applies it to selected subtitles.
Other
174 stars 24 forks source link

Lua error #10

Closed SchRita closed 10 years ago

SchRita commented 10 years ago

I've been having this issue for quite a while now. I installed my operation system anew, and installed a fresh Aegisub (the latest version, 3.2.0 64bit) and copied the script and the config file into the autoload folder. The script was working for a while (although I was only using it for trimming the videos) but I had to change the commands for x264 to make it work (no matter which version of x264 is used, it does not do anything). When I changed it today and click "Write local", the script started to give me error messages. Now, whenever I click any of the options (Apply/Trim/Config) I get this:

Lua reported a runtime error: File "C:/Program Files\Aegisub Motion\automation\autoload\Aegisub-Motion.lua", line 1637 <anonymous function at lines 1633-1736> File "C:/Program Files\Aegisub Motion\automation\autoload\Aegisub-Motion.lua", line 1564 readconf attempt to index local 'val' (a nil value)

I tried reinstalling Aegisub and downloading+copying the script files again, but I still get this message. What did I do wrong?

Thanks for your help in advance.

tophf commented 10 years ago

Try moving the script in a folder where all user scripts should be (create the folder if there's none): %appdata\Aegisub\automation\autoload

torque commented 10 years ago

Due to my extreme stupidity there is also potentially a hidden config file located at %appdata%\Aegisub\aegisub-motion.conf. If I recall correctly, this error is caused by the script trying to load an outdated config. If that file exists, delete it and try again.

This bug has been fixed in the upcoming version, which will hopefully be available for public testing this week.

SchRita commented 10 years ago

Thank you so much! I tested it, there really was a config file here: C:\Users\Username\AppData\Roaming\Aegisub After deleting it, I could use the script again. Thank you so much for answering so fast and solving my problem. And don't think that you're stupid, I think Windows in general is really not organized. +You're awesome for making a script like this.