LUA for Newbies

Discuss your Lua playlist, album art and interface scripts.
Paceman
New Cone
New Cone
Posts: 1
Joined: 25 Nov 2012 20:57

LUA for Newbies

Postby Paceman » 25 Nov 2012 21:32

Hi all!
I've just installed VLC 2.0.4 after beeing a hardcore BS-player user for years. I'm eager to start using this as it reads ISO files out of the box which BS does not. But there are one rather important missing feature in VLC; the ability to remember the last played position in the file (that is any file). I found that this is avalilable as an extension and I did try to make it work but I couldn't figure out how to implement the LUA-file. After some searching I found that the correct folder shoul be %user%\(my name)\Appdata\Roaming\VLC\LUA\Extensions and I tried to follow the instructions on some of the pages I found but still no luck. Can someone please explain in simple terms how to get the pages that looks like source code to end up as an working extension in VLC.
THX in advance

mederi
Big Cone-huna
Big Cone-huna
Posts: 1951
Joined: 15 Mar 2011 16:38
VLC version: 2.0.8
Operating System: Windows Vista/XP

Re: LUA for Newbies

Postby mederi » 26 Nov 2012 14:57

If you would like to use scientificswede's mempos.lua extension script,
then you can follow my instructions: viewtopic.php?f=7&t=60602&start=60#p344943
or simply:
1.) locate \lua\ directory in VLC in your computer
2.) create a new folder \extensions\ there if it is not already there
3.) download Lua extension script or copy a script and put it in a simple text file (.txt) and save/rename a file extension to .lua
4.) put the Lua extension script file in ...\lua\extensions\
5.) restart VLC media player
6.) start your extension from VLC menu: View > title of extension
This script works for me on Windows XP, but I had to alter the script a bit to use a different path for "pos.txt" file.

Code: Select all

-- datafile=vlc.misc.userdatadir().."/pos.txt" datafile="c:\\films/pos.txt"
If you would like to use artemsen's srpos plugin,
then you should follow this: http://code.google.com/p/vlc-srpos-plugin/
This plugin does not work for me on my Windows XP :(

ScitDei
New Cone
New Cone
Posts: 4
Joined: 05 Dec 2012 11:53
VLC version: 2.0.4
Operating System: Windows 7

Re: LUA for Newbies

Postby ScitDei » 06 Dec 2012 11:23

I had this same problem but thanks to mederi's reply I can now see the option for the downloaded plugin in menu-->view-->"title of extension".
(I was saving the script as *.lua.txt so it was not appearing on the menu :D ).

Sammo
Blank Cone
Blank Cone
Posts: 12
Joined: 08 Nov 2012 00:28

Re: LUA for Newbies

Postby Sammo » 14 Jun 2013 19:52

If you would like to use scientificswede's mempos.lua extension script,
then you can follow my instructions: viewtopic.php?f=7&t=60602&start=60#p344943
or simply:
1.) locate \lua\ directory in VLC in your computer
2.) create a new folder \extensions\ there if it is not already there
3.) download Lua extension script or copy a script and put it in a simple text file (.txt) and save/rename a file extension to .lua
4.) put the Lua extension script file in ...\lua\extensions\
5.) restart VLC media player
6.) start your extension from VLC menu: View > title of extension
This script works for me on Windows XP, but I had to alter the script a bit to use a different path for "pos.txt" file.

Code: Select all

-- datafile=vlc.misc.userdatadir().."/pos.txt" datafile="c:\\films/pos.txt"
If you would like to use artemsen's srpos plugin,
then you should follow this: http://code.google.com/p/vlc-srpos-plugin/
This plugin does not work for me on my Windows XP :(
I can not find "VLC menu: View > title of extension" when VLC is skinned. Where else can I find it?


Return to “Scripting VLC in lua”

Who is online

Users browsing this forum: No registered users and 10 guests