Skip to content

How To Setup A Server

crazyscouter edited this page Sep 12, 2016 · 10 revisions

How To Setup A Server

View below how to setup a server, configure a server, and setup mysql for it!

Getting Started

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!

Setting Up MySQL

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).

  1. Okay, so to get started, navigate to kragle/gamemode/_config_sv.lua. See lines 6 - 14.
  2. Change:fw.config.dataStore = "text" to fw.config.dataStore = "sql"
  3. Next, see lines 6 - 11, and input your correct database information.
  4. 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

Custom Configurations

Mostly everything in Faction Wars is configurable. See

  • kragle/gamemode/custom_things/ for all the configurable files. It is very straightforward.

Want More?

See extensions for officially supported extensions.

Clone this wiki locally