You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+18-4Lines changed: 18 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,14 +4,17 @@ As the name suggests, this plugin provides a scripting API for VCMP in Lua (yay!
4
4
about the structure of the plugin (its quite easy!)
5
5
6
6
## Purpose of this project
7
+
7
8
The purpose of this project is mainly that I love Lua, and I also love C++, therefore to keep my practice in C++ I decided to work on this plugin with one of my
8
9
favorite scripting languages (Lua).
9
10
10
11
# The Lua config file
12
+
11
13
In your server directory you should place a **luaconfig.ini** file which will allow you to specify some settings the plugin can use. Some of these settings are
12
14
optional while some (like specifying atleast 1 script file) is compulsory.
13
15
14
16
The file structure is as of right now very simple:
17
+
15
18
```ini
16
19
[config]
17
20
# Sets experimental mode ON (1) or OFF (0) | Intended for beta-testing and development only. Do not rely for stability
@@ -21,21 +24,32 @@ loglevel=0
21
24
# Sets the log file. This log file will be used to create daily logs and it will log everything logged by Logger class, regardless of level
22
25
logfile=DailyLogs.logs
23
26
27
+
[modules]
28
+
# This is the modules section, here you can opt in to use external modules that the plugin provides. They can be listed and toggled by setting them to a boolean
29
+
30
+
#moduleName=[true/false]
31
+
lanes=false
32
+
24
33
[scripts]
25
34
# This is the scripts section, here you can specify all your script files that you want to run.
26
35
36
+
# script=path/to/file.lua
27
37
script=lua/script.lua
28
38
```
29
39
30
40
# Building the plugin
41
+
31
42
## Windows
43
+
32
44
To build on Windows, just download the repository and run the win-build.bat file in the premake folder. You should be getting a Visual Studio 2019 solution file
33
45
34
46
**NOTE: You can only build x64 of Lua plugin on Windows for now. Why? Cuz I'm too lazy to setup my environment to compile mariadb for x32 :D**
35
47
36
48
## Linux
49
+
37
50
To build on Linux:
38
-
* Download/Clone the repository
39
-
* Download premake and build it
40
-
* Inside the repository, call premake: `path/to/premake5 gmake`
41
-
* Now use `make` with your desired `config`: `make config=release` OR `make config=release32`
51
+
52
+
- Download/Clone the repository
53
+
- Download premake and build it
54
+
- Inside the repository, call premake: `path/to/premake5 gmake`
55
+
- Now use `make` with your desired `config`: `make config=release` OR `make config=release32`
0 commit comments