PtokaX forum

Development Section => Extensions for PtokaX Lua => Topic started by: bastya_elvtars on 09 April, 2006, 11:45:13

Title: Folder for PXLUA extensions
Post by: bastya_elvtars on 09 April, 2006, 11:45:13
Recently the discussion on the right place/folder for pxlua libraries has gotten into focus. I'd like all who care to discuss it here.
Title: Re: Folder for PXLUA extensions
Post by: Madman on 09 April, 2006, 11:47:30
Well...I like blue's idea...
Put the files in the root folder...
Title: Re: Folder for PXLUA extensions
Post by: bastya_elvtars on 09 April, 2006, 11:51:09
I can only repeat what I wrote earlier:


I think script/libs is still a good idea. Libs can also be written in lua, not only C(++). There are PHP extensions written in PHP as well, like MagpieRSS or AdoDB library or there is a DOM XML parser written in PHP as well. None of them are stored in the PHP modules directory of the webserver. :P
Title: Re: Folder for PXLUA extensions
Post by: bluebear on 09 April, 2006, 12:57:37
For the extensions i created and for the ones i modded/build for ptokax.
I was thinking about bundle them with a installer program, that will install the libraries inside a chosen folder or windows\system32.
When installed the installer will register the lua extensions and they will be usable from any ptokax regardless of how many copies your run and so.
It will then be upto the end user (hub owner) where to install these libs, and the scripter do only need to give it the name of the extension.

The new lua header files im working on, the ones used in lua sound player and the lua http getter dynamically loads the PXLua.dll and therefore these libs must
be located in the ptokax root folder. This issue will be removed if the librarys are installed via an installer.

This is the way i think is the best and most methodical.
Title: Re: Folder for PXLUA extensions
Post by: Typhoon on 09 April, 2006, 16:06:54
why not just let people choose themself.. i for one dislike 3rd party installers, and also i like to choose where to keep stuff..

atm. i use scripts/Script_dir_name/Libs
and i never had any problems what so ever with that .

*edit* maybe a even better solution would be to get PPK to release PtokaX with all the libs the right place  root_folder/Libs for example ?

Typhoon?
Title: Re: Folder for PXLUA extensions
Post by: Madman on 09 April, 2006, 16:45:51
I dislike all installers... ;p

if we not can deside a standar folder to have the files in, my suggestion is that we allow the users to choose,
by always scripting an option where the hubowner can spesify where the files are