Difference between revisions of "How to server"

From QWiki
*>Mushi
m
*>Mushi
Line 7: Line 7:
  
 
== KTX Server Setup ==
 
== KTX Server Setup ==
If for some reason you need to upgrade KTX, here's how to do it:<br />
+
If for some reason you need to upgrade KTX, here's how to do it:
<nowiki>1. git clone https://github.com/jite/ktx<br />
+
<pre>1. git clone https://github.com/jite/ktx
2. cd ktx<br />
+
2. cd ktx
3. optional step: change version in ktx/include/g_local.h under MOD_VERSION (line 41) to something meaningful like 1.37-dev_patch1<br />
+
3. optional step: change version in ktx/include/g_local.h under MOD_VERSION (line 41) to something meaningful like 1.37-dev_patch1
4. ./configure<br />
+
4. ./configure
5. make dl<br />
+
5. make dl
6. ls -altr (look for qwprogs.so)<br />
+
6. ls -altr (look for qwprogs.so)
7. copy qwprogs.so to ktx/ folder<br />
+
7. copy qwprogs.so to ktx/ folder
8. restart the server</nowiki><br />
+
8. restart the server</pre>
 
<br />
 
<br />
 
When restarting the server, it outputs a message about failing to load qwprogs.so you'll have to recompile mvdsv
 
When restarting the server, it outputs a message about failing to load qwprogs.so you'll have to recompile mvdsv
Line 21: Line 21:
  
 
== MVDSV Setup ==
 
== MVDSV Setup ==
<nowiki>1. git clone https://github.com/jite/mvdsv<br />
+
<pre>1. git clone https://github.com/jite/mvdsv
2. cd mvdsv/build/make/<br />
+
2. cd mvdsv/build/make/
3. ./configure<br />
+
3. ./configure
4. make<br />
+
4. make
5. chmod 755 mvdsv<br />
+
5. chmod 755 mvdsv
6. copy mvdsv to your quake/ folder</nowiki><br />
+
6. copy mvdsv to your quake/ folder</pre>
  
 
== Firewall Configuration ==
 
== Firewall Configuration ==

Revision as of 09:48, 3 June 2014

The easiest way of running a server is installing nQuakesv package. webpage
It includes everything you need to start a server, including:

  • Modern QuakeWorld server: MVDSV
  • Modern modification: ktx

It is preconfigured, just asks the user simple questions to complete the configuration. Take note on the ports the servers will be running (you must know them to connect to the servers)


KTX Server Setup

If for some reason you need to upgrade KTX, here's how to do it:

1. git clone https://github.com/jite/ktx
2. cd ktx
3. optional step: change version in ktx/include/g_local.h under MOD_VERSION (line 41) to something meaningful like 1.37-dev_patch1
4. ./configure
5. make dl
6. ls -altr (look for qwprogs.so)
7. copy qwprogs.so to ktx/ folder
8. restart the server


When restarting the server, it outputs a message about failing to load qwprogs.so you'll have to recompile mvdsv


MVDSV Setup

1. git clone https://github.com/jite/mvdsv
2. cd mvdsv/build/make/
3. ./configure
4. make
5. chmod 755 mvdsv
6. copy mvdsv to your quake/ folder

Firewall Configuration

iptables -A PREROUTING -t nat -p udp -i eth1 --dport 27500 -j DNAT --to 192.168.0.1:27500

Raspberry Pi server

eb compiled mvdsv and ktx binaries for Raspberry Pi.
Download the raspberry pi binaries from here
Test results:
- with 7 players + 1 spec, cpu usage was around 80% with everyone spamming sng at dm3 outside
- in conclusion it will be enough for 2on2, not sure on a competitive 4on4 match.

Spike also compiled binaries for FTE, both client and server. Download them from here