lua script not working on Aegisub 3.2.0

Talk about anything else you might want to.

lua script not working on Aegisub 3.2.0

Unread postby ankush93 » Tue Jul 29, 2014 7:05 am

Some lua scripts' (macol_1.3.lua, pos_shift.lua) not working on the latest version of Aegisub,i.e, 3.2.0....
It worked in the previous version though. Please help...
ankush93
{\b1}
{\b1}
 
Posts: 5
Joined: Sun Jan 19, 2014 2:20 pm

Re: lua script not working on Aegisub 3.2.0

Unread postby jfs » Tue Jul 29, 2014 2:57 pm

What are the errors?
Do not PM me asking for help with Aegisub, Automation, karaoke or anything like that, I won't reply.
Ask your questions in the public forums. Use the Search function, somebody probably asked the same question before.
All rights reserved to call you insults if you ask poorly thought out or redundant questions.
Experimenting is free and is a great way to learn things.
User avatar
jfs
Developer
 
Posts: 2994
Joined: Mon Dec 19, 2005 8:18 pm
Location: Denmark

Re: lua script not working on Aegisub 3.2.0

Unread postby ankush93 » Tue Jul 29, 2014 5:26 pm

for macol_1.3.lua --> [script "C:/....."]:1139: invalid escape sequence near ' "Transform '
for pos_shift.lua --> [script "C:/....."]:13: invalid escape sequence near ' " '

These worked in Aegisub 3.1.3
ankush93
{\b1}
{\b1}
 
Posts: 5
Joined: Sun Jan 19, 2014 2:20 pm

Re: lua script not working on Aegisub 3.2.0

Unread postby toph » Tue Jul 29, 2014 9:13 pm

Simply replace single \ with \\ in all description strings. BTW there is a newer mod of PositionShifter: description and the script itself.

The reason is that those old macros contain a single slash in strings which is interpreted as an invalid control character now that LuaJIT uses LUA 5.2 syntax which isn't as relaxed and forgiving as previously.
Last edited by toph on Mon Feb 16, 2015 3:17 pm, edited 3 times in total.
User avatar
toph
{\clip\t(\clip)}
{\clip\t(\clip)}
 
Posts: 203
Joined: Mon Oct 13, 2008 2:03 pm

Re: lua script not working on Aegisub 3.2.0

Unread postby ankush93 » Wed Jul 30, 2014 12:21 pm

I guess I'll use the newer mods then... thank you very much...
ankush93
{\b1}
{\b1}
 
Posts: 5
Joined: Sun Jan 19, 2014 2:20 pm

Re: lua script not working on Aegisub 3.2.0

Unread postby eamonx » Mon Feb 16, 2015 3:04 pm

Tried using the moon script version (the newer mod)

I got the following error:

Code: Select all
15:02:01: 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.
15:02:01: Failed to load Automation script 'C:\Program Files (x86)\Aegisub\automation\autoload\Position-shifter.moon':
Failed to parse:
 [4] >>    <!DOCTYPE html>


I have the moonscript support files in the "include" folder. Pretty much identical to what was in that tophf's github (the aegisub repository). Any ideas?
eamonx
{\b1}
{\b1}
 
Posts: 22
Joined: Mon Aug 11, 2014 1:48 am

Re: lua script not working on Aegisub 3.2.0

Unread postby toph » Mon Feb 16, 2015 3:16 pm

Failed to parse:
[4] >> <!DOCTYPE html>


You've downloaded the script page, not the script itself. Use Raw button on github to get the script itself: like this.
User avatar
toph
{\clip\t(\clip)}
{\clip\t(\clip)}
 
Posts: 203
Joined: Mon Oct 13, 2008 2:03 pm

Re: lua script not working on Aegisub 3.2.0

Unread postby eamonx » Mon Feb 16, 2015 3:29 pm

Yep, it worked. Thanks for the help.
Really strange though. Because it had downloaded as .moon file extension too :/
eamonx
{\b1}
{\b1}
 
Posts: 22
Joined: Mon Aug 11, 2014 1:48 am


Return to Miscellanea

Who is online

Users browsing this forum: No registered users and 1 guest