-
Notifications
You must be signed in to change notification settings - Fork 6
How To Setup A Server
View below how to setup a server, configure a server, and setup mysql for it!
Download the gamemode and put the contents in the gamemodes/kragle/ folder. Move the *.dat files from gamemode/kragle/default_map_zones/ (also can be found here) to your data/factionwars_sv/zones_sv/, this makes sure that you have the default zones setup by the Faction Wars team.
Download the following addons and put them in your addons folder:
- stylish - used for the UI in Faction Wars
- ra - used for general purposes in Faction Wars
- netdoc - used for most of the networking in Faction Wars
- ezdb - if you want to use mysql, tmysql, or sqlite, use this. See here for setup.
Change the gamemode to kragle and set your map, and you are ready to go!
To enable MySQL you need an active MySQL server. You will need to the host, database name, username, password, and your selected module insalled(tmysql, mysql, mysqloo, and sqlite).
- Okay, so to get started, navigate to kragle/gamemode/_config_sv.lua. See lines 6 - 14.
- Change:
fw.config.dataStore = "text"
tofw.config.dataStore = "sql"
- Next, see lines 6 - 11, and input your correct database information.
- Restart your server.
The following tables will be created on the database:
-
id INTEGER
- the row id -
steamid VARCHAR
- the SteamID of the player -
money INTEGER
- the money of the player -
data BLOB
- random data
Mostly everything in Faction Wars is configurable. See
- kragle/gamemode/custom_things/ for all the configurable files. It is very straightforward.
See extensions for officially supported extensions.