Shinmaru
エロルアー Scripter!
Perhaps many did not know about this(as myself), there is a way to compile .lua source files into LUA readable binaries, and they work with TFS(As far as I had tested them).
I know that, it is a common problem with having, users dedicate their time in making scripts for other users to use, but sometimes, some of those users simply steal our scripts and pass them as their own.
Now I'll teach you how to do this.
Warning: Even though I have tested it, there is still more testing to be done, but with more complex LUA scripting, always keep a backup of the source file.
Requirements:
Latest LUA or the one that is compatible with your server(Currently 5.1.4) - Lua Binaries
Preparations:
LUA Architecture must be the same as the Compiled server Architecture, example: if Server is compiled 64-bit then you must get LUA that is meant for 64-bit, otherwise you will get a "Bad Header" error.
Steps:
1. Download LUA and extract(On Linux, you can install it from terminal), if on windows, open command prompt, then change directory(cd) to the path where the *.lua script is located, if on linux, open terminal and do the same.
2. If on windows, type:
(in this case it will be 5.1, you can rename that program to just luac)
on linux type:
3. Add it to its responding folder in the server, make sure you also update the .xml with the proper name.
I'll update this tutorial later, I'm a bit tired and in need of sleep.
I know that, it is a common problem with having, users dedicate their time in making scripts for other users to use, but sometimes, some of those users simply steal our scripts and pass them as their own.
Now I'll teach you how to do this.
Warning: Even though I have tested it, there is still more testing to be done, but with more complex LUA scripting, always keep a backup of the source file.
Requirements:
Latest LUA or the one that is compatible with your server(Currently 5.1.4) - Lua Binaries
Preparations:
LUA Architecture must be the same as the Compiled server Architecture, example: if Server is compiled 64-bit then you must get LUA that is meant for 64-bit, otherwise you will get a "Bad Header" error.
Steps:
1. Download LUA and extract(On Linux, you can install it from terminal), if on windows, open command prompt, then change directory(cd) to the path where the *.lua script is located, if on linux, open terminal and do the same.
2. If on windows, type:
Code:
luac5.1 -o 'OutputName' NameofScript.lua
on linux type:
Code:
luac -o 'OutputName' NameofScript.lua
I'll update this tutorial later, I'm a bit tired and in need of sleep.