Page 1 of 1

LUA for Newbies

Posted: 25 Nov 2012 21:32
by Paceman
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

Re: LUA for Newbies

Posted: 26 Nov 2012 14:57
by mederi
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 :(

Re: LUA for Newbies

Posted: 06 Dec 2012 11:23
by ScitDei
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 ).

Re: LUA for Newbies

Posted: 14 Jun 2013 19:52
by Sammo
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?