TypesettingTools / Aegisub-Motion

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

Lua error when applying #22

Closed alucryd closed 9 years ago

alucryd commented 9 years ago

Hi,

Having just heard of your awesome tool I gave it a spin, but every time I select apply I run into this error:

Lua reported a runtime error: File "/home/alucryd/.aegisub/automation/autoload/Aegisub-Motion.moon", line 347 <anonymous function at lines 324-449> File "/home/alucryd/.aegisub/automation/include/a-mo/DataWrapper.moon", line 33 bestEffortParsingAttempt attempt to index local 'input' (a nil value)

I tried v1.0.0-beta2 with aegisub 3.2.2 and its latest git on Arch Linux, both gave me the same error. After reading about issue #10 I also tried deleting ~/.aegisub/aegisub-motion.json but it didn't help. Any idea where it might be coming from?

line0 commented 9 years ago

try the following: after this line, insert the following (outside the if block):

return ""
torque commented 9 years ago

That's a bad oversight. Thanks for finding it.

I disabled the clipboard module on Linux because lachs0r kept complaining about it crashing Aegisub on Linux. I wonder if he is a special case or if it really does have problems.

torque commented 9 years ago

Should be fixed in 1.0.0-beta3. Let me know if it isn't.

alucryd commented 9 years ago

Thx for the lightning-fast answers guys. I just tried 1.0.0-beta3, but now aegisub simply refuses to load the script at launch:

12:06:52 PM: A script in the Automation autoload directory failed to load. Please review the errors, fix them and use the Rescan Autoload Dir button in Automation Manager to load the scripts again. 12:06:52 PM: Failed to load Automation script '/home/alucryd/.aegisub/automation/autoload/Aegisub-Motion.moon': Error initialising Lua script "Aegisub-Motion.moon":

[string "/home/alucryd/.aegisub/automation/include/a-m..."]:3: module 'a-mo.log' not found: no field package.preload['a-mo.log'] no file './a-mo/log.so' no file '/usr/local/lib/lua/5.1/a-mo/log.so' no file '/usr/local/lib/lua/5.1/loadall.so' no file './a-mo.so' no file '/usr/local/lib/lua/5.1/a-mo.so' no file '/usr/local/lib/lua/5.1/loadall.so'

torque commented 9 years ago

I fixed the problem and updated the beta3 download. Please try again.

alucryd commented 9 years ago

Works like a charm, thx a lot!