|
|
|
Main Menu: Home Installation Game Modes Weapons Features Grenades Angels Armour History Changelog Server: Windows Linux Server Cvars Entities: .ent file How-To OffWorld Transport |
||||||
|
Windows Server Setup written by QwazyWabbit<WOS> This tutorial describes how to setup and publish a LOX server on the Windows operating system. I use a desktop shortcut to start a batch file that I keep in my c:\quake2 directory. The shortcut starts the batch file and the batch file starts quake2 or r1q2 as the case may be. I prefer to run the r1q2 engine now because of it's stability, security and network enhancements. Create a batch file and put the following lines in it: cd \quake2 The "+set port 27910" line is optional if you are going to use the default 27910 port for your server. The "+exec server.cfg" finishes the configuration of your server. This file MUST exist in the LOX folder, in this case it's in c:\quake2\lox. Here are some sample settings for your server config: // // This is a sample serverconfig.cfg file for dedicated LOX servers. set public 1 //publicly listed set logfile 3 // log and append qconsole.log set deathmatch 1 // it's a deathmatch server //set logarstats 1 // log ARSG stats (optional) //this defines some master servers so GS can find it //other masters exist, this list is not definitive setmaster q2master.planetquake.com master0.gamespy.com satan.idsoftware.com set hostname "QwazyWabbits LOX 1.12.8 Test" // set ServerAdmin " Some of these settings are shown just to illustrate basics, you'll need to determine your own settings according to your needs and the version of LOX that you are running. The very last command in the server.cfg file MUST be the map command to get it to start your first map. You will also need to create a maplist.txt file in the LOX folder with a list of the maps you want the server to rotate through. This list must be a list of the map file names without the .BSP extensions. DEDICATED servers keep all their map and texture files in the \quake2\baseq2 heirarchy. This is very important. CLIENT machines download maps and skins and textures into the MOD folders so you must copy these directories into the \quake\baseq2\ folder in order to make them available to the dedicated server so it can download them to clients as needed. This must be done carefully because some mods use different versions of the maps and you can run into conflicts in maps if you are mixing client/server and mod environments. It can be easier to maintain a separate server machine with all it's files in a consistent state than to run the dedicated server on your client machine, so if you can afford to keep another computer going, this is highly recommended. Server hardware requirements are much less than client requirements because they don't need graphics processing. I have successfully run multiple Q2 servers on 400MHz machines with excellent server performance. That's about it, you should be able to start your server and connect to it on the local LAN with your client. The server will run in a console window when running the quake2.exe engine and r1q2.exe will run in a split-pane window with a scrolling pane for the console text and a smaller pane for your console commands.
In order for your server to become visible to users on the Internet you must open the UDP port that you defined for Quake2 above. Usually this is 27910, but it can be anywhere. The customary range for quake2 servers is 27910 thru 27915 or even 27920. Router configurations vary widely so I will not attempt to give detailed instructions. Your goal is to open inbound WAN UDP port 27910 on the router and forward that port to the LAN IP address of your server computer. It is not neccessary to forward TCP on this port. The server computer must also have its LAN IP address statically defined so that if you reboot your server computer it won't be reassigned a new LAN IP address by the DHCP server (if any) in your router or local network. If you have configured your server and router correctly, All Seeing Eye, Gamespy and outsiders will be able to ping, query status and connect to your server given it's WAN IP address and the port number. You can also test this yourself by connecting to the server from your client by connecting to the WAN address. If your router is correctly configured it will allow your client to connect to the server as though you were "outside, looking in". You can add the desktop shortcut to your Startup folder to make the server start at Windows start or start it manually as needed. Setting your quake2 server to run as a Windows Service will be covered in another topic. | |
| Quake 2 LOX Docs. - http://www.clanwos.org |