Welcome to the PtokaX Wiki!
This wiki is devoted to let users share information on the great hubsoft PtokaX. However, it is not limited to PtokaX, it is destined to share and discuss information on different parts of the LUA programming language, but the site is NOT intended to be a replacement for the primary LUA Board aka the PtokaX Portal, nor the secondary LUA Board or the PtokaX resources.
If you’re not familiar with wikis then in short: they are user-contributed sites: pages can be edited by (almost) anyone. As such, there is always kind of up-to-date and (hopefully) proper content. They are better than forums, since relevant pieces of information are on the same page. Do not hesitate to share your knowledge, and we all hope you can learn and teach a lot here! — bastya_elvtars
Trace: » how_to_register » Tables & Arrays » The Operating System Library in Lua 5.1.x » Introduction » Using the string library in LUA » Tips on scripting in API v.2 » main » API 2 Script Examples » Setting up PtokaX » PtokaX Service Installation Guide
PtokaX Service Installation Guide
Under Windows, setting up and using the service is easy. Just get the service/console version and extract it to the desired directory. Let's name it C:\PtokaX for now. Then open a command line (Start → Run → cmd) and go to C:\Ptokax. Now you have to set PtokaX up. You can get the XML files from the cfg.example directory and put them into a directory of your choice and edit, but I recommend getting a GUI version, settting it up then copying the cfg directory to the service version's directory. Now issue the following command:
ptokax -i PtokaX
Or, if you have put the XML files into say C:\PtokaX\configs you have to specify the absolute path to the config directory.
ptokax -c “C:\PtokaX” -i PtokaX
Command line commands available:
-c <configdir> - absolute path to PtokaX config directory (where will PtokaX have cfg, logs, scripts and texts directories). -i <servicename> - install PtokaX as windows service with given name. -u <servicename> - uninstall PtokaX service with given name.
This installs the service named PtokaX. You can name it anything else, of course. Now you need to start it. We use Windows' builtin sc.exe for this, which is a great commandline service manager.
sc start PtokaX
That's all, it's running now.
Alternatively, you can use CrazyGuy's Service Install Wizard.
You are here: About the Wiki » settingup » PtokaX Service Installation Guide