PtokaX forum

Development Section => Extensions for PtokaX Lua => Topic started by: bluebear on 08 April, 2006, 17:37:32

Title: Experimental: First lua extension that loads on both 5.0.2 and 5.1
Post by: bluebear on 08 April, 2006, 17:37:32
This is probably the first lua library (extension) that can be used with both lua 5.0.2 and 5.1.
Currently, it expects the dll file name to be "PXLua.dll" and the borland "_" prefix used. However, it will in the future be possible to load this lib on any lua 5.02/5.1 regardless of compiler and filenames ;)

This release is a pre-release, only to show the lib. It has issues and should only be considered a preview. Its not safe to use on a "real" hub!

Get the pre-released beta here:
http://www.thewildplace.dk/downloads/betas/httpget-beta1.zip

Important: the library must be in the ptokax root folder else it will not work!
Title: Re: Experimental: First lua extension that loads on both 5.0.2 and 5.1
Post by: Markitos on 08 April, 2006, 18:43:08
Quote from: bluebear on 08 April, 2006, 17:37:32
This is probably the first lua library (extension) that can be used with both lua 5.0.2 and 5.1.
Currently, it expects the dll file name to be "PXLua.dll" and the borland "_" prefix used. However, it will in the future be possible to load this lib on any lua 5.02/5.1 regardless of compiler and filenames ;)

This release is a pre-release, only to show the lib. It has issues and should only be considered a preview. Its not safe to use on a "real" hub!

Get the pre-released beta here:
http://www.thewildplace.dk/downloads/betas/httpget-beta1.zip
Windows reports me an error and says that the ptokax must be closed...
Using Ptokax 0.3.4.0d1 (lua 5.1)
Title: Experimental: Another first lua extension that loads on both 5.0.2 and 5.1
Post by: bluebear on 08 April, 2006, 18:51:16
This is the really first of them.. Plays a sound file nothing more http://www.thewildplace.dk/downloads/luasndplay-0.0.1-Beta.zip  dependencies: http://www.thewildplace.dk/downloads/cc3270.zip

Read more about it on http://www.thewildplace.dk/
Title: Re: Experimental: First lua extension that loads on both 5.0.2 and 5.1
Post by: bluebear on 08 April, 2006, 18:57:46
Quote from: Markitos on 08 April, 2006, 18:43:08
Quote from: bluebear on 08 April, 2006, 17:37:32
This is probably the first lua library (extension) that can be used with both lua 5.0.2 and 5.1.
Currently, it expects the dll file name to be "PXLua.dll" and the borland "_" prefix used. However, it will in the future be possible to load this lib on any lua 5.02/5.1 regardless of compiler and filenames ;)

This release is a pre-release, only to show the lib. It has issues and should only be considered a preview. Its not safe to use on a "real" hub!

Get the pre-released beta here:
http://www.thewildplace.dk/downloads/betas/httpget-beta1.zip
Windows reports me an error and says that the ptokax must be closed...
Using Ptokax 0.3.4.0d1 (lua 5.1)

It works fine here on both lua versions.. For 5.1 i use 0.3.4.0b.dbg
Title: Re: Experimental: Another first lua extension that loads on both 5.0.2 and 5.1
Post by: Markitos on 08 April, 2006, 19:11:12
Quote from: bluebear on 08 April, 2006, 18:51:16
This is the really first of them.. Plays a sound file nothing more http://www.thewildplace.dk/downloads/luasndplay-0.0.1-Beta.zip  dependencies: http://www.thewildplace.dk/downloads/cc3270.zip

Read more about it on http://www.thewildplace.dk/
Cool....
[20:08] <DL> http://www.thewildplace.dk/downloads/luasndplay-0.0.1-Beta.zip Added to download list!
[20:08] <Estranho_para_ti> add
[20:08] <dl> Status for http://www.thewildplace.dk/downloads/luasndplay-0.0.1-Beta.zip Downloading...
[20:09] <dl> Status for http://www.thewildplace.dk/downloads/luasndplay-0.0.1-Beta.zip Download complete!
[20:09] <dl> Status for http://www.thewildplace.dk/downloads/luasndplay-0.0.1-Beta.zip is not in list!

This is cool too, found this lib very usefull  ;D thnks
Title: Re: Experimental: First lua extension that loads on both 5.0.2 and 5.1
Post by: Markitos on 08 April, 2006, 19:14:39
Quote from: bluebear on 08 April, 2006, 18:57:46
Quote from: Markitos on 08 April, 2006, 18:43:08
Quote from: bluebear on 08 April, 2006, 17:37:32
This is probably the first lua library (extension) that can be used with both lua 5.0.2 and 5.1.
Currently, it expects the dll file name to be "PXLua.dll" and the borland "_" prefix used. However, it will in the future be possible to load this lib on any lua 5.02/5.1 regardless of compiler and filenames ;)

This release is a pre-release, only to show the lib. It has issues and should only be considered a preview. Its not safe to use on a "real" hub!

Get the pre-released beta here:
http://www.thewildplace.dk/downloads/betas/httpget-beta1.zip
Windows reports me an error and says that the ptokax must be closed...
Using Ptokax 0.3.4.0d1 (lua 5.1)

It works fine here on both lua versions.. For 5.1 i use 0.3.4.0b.dbg
Well, worked great here but it still reports that error gonna try with 0.3.4.0b

--//Edit
Worked great with 0.3.4.0e1.dbg...i think it was an error in my mod (of ur test script)  ;D
Title: Re: Experimental: First lua extension that loads on both 5.0.2 and 5.1
Post by: Markitos on 08 April, 2006, 20:16:43
Quote from: Mutor on 08 April, 2006, 19:43:51
Pretty good so far...

Quote[14:41:58] <WebBot> http://www.domain.com/files/novelties.pdf, Has Been added to download list!
[14:41:59] <WebBot> Downloading = http://www.domain.com/files/novelties.pdf
[14:42:09] <WebBot> 

   Download Complete = http://www.domain.com/files/novelties.pdf
   Download Size:   2.70 Mb
   Download Time:   12 seconds
   Transfer Speed:   230.38 Kb/s 
   PtokaX Version:   PtokaX 0.3.4.0
   PXLua Version:   Lua 5.1

I do get a division by zero error when downloading from the inbuilt web server PtokaX using this lib,
otherwise, no problem's works well. It's not as if one needs to dl from self anyway :P

Mutor, could u post ur script ???
Title: Re: Experimental: First lua extension that loads on both 5.0.2 and 5.1
Post by: Markitos on 09 April, 2006, 07:34:41
Thanks  :D
Title: Re: Experimental: First lua extension that loads on both 5.0.2 and 5.1
Post by: bluebear on 09 April, 2006, 11:07:33
Looks good mutor :)
Title: Re: Experimental: First lua extension that loads on both 5.0.2 and 5.1
Post by: jiten on 09 April, 2006, 11:11:33
Quote from: bluebear on 09 April, 2006, 11:07:33
Looks good mutor :)

Indeed. Nicely done, mate.
Title: Re: Experimental: First lua extension that loads on both 5.0.2 and 5.1
Post by: Psycho_Chihuahua on 14 April, 2006, 14:35:26
Quote-List wavs command

Couldn't find that one Mutor  ???
Title: Re: Experimental: First lua extension that loads on both 5.0.2 and 5.1
Post by: Psycho_Chihuahua on 14 April, 2006, 23:04:23
then something is wrong  :(

those 2 commands don't do anything here (on 0.3.4.0f0)
Title: Re: Experimental: First lua extension that loads on both 5.0.2 and 5.1
Post by: Psycho_Chihuahua on 15 April, 2006, 14:32:50
that line is correct here, and the sounds work too, only +wavlist and +page don't do anything (not that tragic though)