-
Notifications
You must be signed in to change notification settings - Fork 1
INIConfiguration
The MasterServer looks for a MasterServer.ini
in the same folder where the MasterServer is executed.
The section [Modules]
handle the module loading.
The value is the number of the module that should be loaded.
WARNING: The number starts at 0. Like arrays.
WARNING2: Don't try to put the same numbers otherwise there could be unexcepted behaviour.
NOTE: The autocompletion of the name is already done for the platforms, in Windows at appends .dll
at the end of the file, in all the other system, it appends lib
at the beginnig and .so
at the ends of the file.
Example: 0=PlayerSpy
. In this case, MasterServer will load PlayerSpy as the first module.
Section | Option | Values | Description | Defalut Value |
---|---|---|---|---|
Database | Enabled | 1 or 0 | If the value is 0, it prevents ANY database iteraction globally | 1 |
Database | Port | A number between 1 and 65535 | The port that Server will use to conenct to the Database | 3306 |
Database | Name | A string | The name of the database that Server should use | masterserver |
Database | Password | A string | The password of the database username the Server will use to connect | |
Database | Username | A string | The username that Server will use to connect | masterserver |
Database | Host | A string | The IP Adress of the Database | localhost |
Database | Socket | A string | The UNIX socket used to connect to the Server (Ignored in Windows) | |
Server | DefaultIP | A string | The default IP the server will bind | localhost |
Each section of the module name is the Module name defined at the loading poing.
Each module could have their own Option, see their reference for more information. This are the generic option that will be used in all the modules.
Option | Values | Description | Default Value |
---|---|---|---|
Port | A number between 1 and 65535 | The port that the module should use to bind it | |
BindIP | A string | The IP that the module should use to bind | Server's DefaultIP |
DisableMySQL | 1 or 0 | If the value is 0, the module will not perform a connection to the Database | 0 |