Difference between revisions of "Server"
(My first attempt on making it useful, saving now to not lose what I wrote so far.) |
(No difference)
|
Revision as of 23:00, 15 September 2011
Here I'm going to write simple guide for setting up server for KAG on Linux. My knowledge maybe isn't superior but it's sufficient to help you out. This guide will be growing gradually over time. (I assume you have at least basic knowledge about it.) --Furai 22:00, 15 September 2011 (UTC)
Contents
Debian
To begin with you need to from download server files (linux server). You can unpack it locally (it's in tar.gz format so only thing you need to do is to unpack it twice, assuming you're using windows) on your machine and upload it to your server via FTP/SFTP using programmes like WinSCP, FileZilla, etc.
Alternatively you can upload this file without unpacking it locally and the unpack it on your server via SSH issuing command:
tar -xzvf kag*tar.gz kag
(I've used asterisk at and of file cause it will change overtime, supply there exact file name.)
Next step is to make executable these files:
KAG
dedicatedserver.sh
To do this issue in main KAG folder following commands:
chmod +x KAG
chmod +x dedicatedserver.sh
Assuming you've edited all configuration files to your liking, only thing that left to do is running your server.
./dedicatedserver.sh
Known issues
If you're using x64 version on Debian then you may need to install 32-bit libraries.
apt-get install ia32-libs
Configuration
dedicated_autoconfig.gm
When you edit this file you need to take closer look at these lines:
global m_width = 600; // Map generator width global m_height = 250; // Map generator height global m_seed = 0; // Map generator seed. Pick a random number.