Author Topic: Folder for PXLUA extensions  (Read 2806 times)

0 Members and 1 Guest are viewing this topic.

Offline bastya_elvtars

  • Forum God
  • ****
  • Posts: 3 744
  • Karma: +173/-7
  • The rock n' roll doctor
    • The FreshStuff3 Site
Folder for PXLUA extensions
« 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.
Everything could have been anything else and it would have just as much meaning.

PtokaX forum

Folder for PXLUA extensions
« on: 09 April, 2006, 11:45:13 »

Offline Madman

  • Scripter
  • Emperor
  • ******
  • Posts: 1 316
  • Karma: +75/-1
Re: Folder for PXLUA extensions
« Reply #1 on: 09 April, 2006, 11:47:30 »
Well...I like blue's idea...
Put the files in the root folder...
We suffer in silence, we lurk in the shadows, we kill in the night
Site currently down, ETA of returning online is 2099 ;p

Offline bastya_elvtars

  • Forum God
  • ****
  • Posts: 3 744
  • Karma: +173/-7
  • The rock n' roll doctor
    • The FreshStuff3 Site
Re: Folder for PXLUA extensions
« Reply #2 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
Everything could have been anything else and it would have just as much meaning.

Offline bluebear

  • Double Ace
  • *
  • Posts: 116
  • Karma: +12/-0
  • Life is a bitch - And then you marry one!
Re: Folder for PXLUA extensions
« Reply #3 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.
« Last Edit: 09 April, 2006, 14:45:46 by bluebear »
Sincerely,
bluebear
--
http://www.thewildplace.dk/ is is closed - Use the following mirrors instead
http://bluebear.psycho-chihuahua.net
http://pxextension.piratez.dk/
[Lua extensions - Chat stats - YnHub PMSpy - DC Source code - and more]

Offline Typhoon

  • Lord
  • ***
  • Posts: 397
  • Karma: +22/-3
  • PGE Developer
    • PGE Homepage
Re: Folder for PXLUA extensions
« Reply #4 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?
« Last Edit: 09 April, 2006, 16:10:33 by Typhoon? »



Offline Madman

  • Scripter
  • Emperor
  • ******
  • Posts: 1 316
  • Karma: +75/-1
Re: Folder for PXLUA extensions
« Reply #5 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
We suffer in silence, we lurk in the shadows, we kill in the night
Site currently down, ETA of returning online is 2099 ;p

PtokaX forum

Re: Folder for PXLUA extensions
« Reply #5 on: 09 April, 2006, 16:45:51 »