Hints, tips and tutorials for 3D modelling & content creation
|
KatsBits
Creating 3D models, meshes &
game content
3D modelling & meshing, level editing and textures makingHints, tips and tutorials for 3D modelling & content creation [back]Setting up a basic server, fire walls and map rotation[addendum] Problems setting up an online serverThere appears to be a nasty little problem that users of some broadband services seem to be encountering when trying to set up an Internet server. Everything works fine; the game runs, maps load and you can even connect over a local LAN connection. But for some reason you or your friends simply cannot connect to your own online server. It appears the culprit for this problem is the IP number your service provider assigns to your connection via the broadband service you're subscribed to. Because of the way most broadband accounts work (at least in the UK via ADSL) you don't get assigned a 'proper' IP address (which you would if you had a connection using a 'static' IP), you're basically piggybacking on your service providers IP address and getting assigned what is in effect a 'local network' address (in the same way as you can set IP numbers on your own home network; 127.0.0.1 being typical). The ramifications of this are that it's often incredibly difficult to find out what your actual IP address is, even when using an online tool like 'what is my IP', they're more often than not listing your service providers IP and not your computers connection to the Internet. The bad news is, there doesn't appear to be an easy way around this problem; if indeed there is one, and because of the way service providers work you won't know you've got a problem until you try to set up a server. If that happens, you're stuck, they (ISP's) don't really like people running online servers over their connections; uses too much bandwidth or so they say, so they won't necessarily be inclined to help you. [addendum] Playing with fire (walls)When this article was originally written, oh so many years ago, personal fire walls and network routers were pretty rare; everyone was basically connecting a single PC to the net. Nowadays, you shouldn't really be on the net without a firewall running at least in software on your PC. This brings us to our current issue, a network server not being seen over the local network. Assuming you've actually set the network menu to browse you local network instead of the net (*cough*) the chances are now that if you're not seeing the game it's being blocked by your firewall (hardware router type or software ZoneAlarm type). There are going to be two basic types of block; a 'program block', and a 'network IP block'.
If you've not done either then you'll need to look at your firewall settings for a list of programs that have tried to access the network. In there will be an entry for Quake3 (if not you should be able to browse to where the exe is), it should be a simple case of selecting the entry and highlighting various network options, how you do this will depend on your network and firewall set up. As an example ZoneAlarm has a 'program' page that lists everything that's tried to access either the network or the Internet. All you do is find the entry you want (or browse to the exe as per above), select it and then check off the options you want to apply to that program and et viola Quake3 can now see the network (usually after a reboot even on XP)
For ZoneAlarm to allow access it's a simple case of selecting the correct entry and clicking on the 'add to zone' button, this will then set traffic to pass through that address. Again the chances are that if you can browse for files on your network then PC 2 PC access has been set up already and the problem is more likely to be one of local blockage as mentioned above. If after fiddling with this stuff you still can't get it to work try connecting the PCs directly together (using a crossed cable) and see if they find each other - disable any firewalls so you *know* there's nothing blocking access at all. If the PCs still can't find each other then you've probably got a wider problem that's not just effecting Quake3 but the whole network. Excerpt from google FAQQ : setting up zonealarm for hosting online gamesA : If you can already play Quake 3 online then you may not need to do anything else to ZoneAlarm in order for you to create a server for online play. However, if you have problems with the server not getting online or you're setting up for the 1st time you'll need to check a few things. First drop into windowed mode (Alt+[return] when Quake 3 is running), this is just a precaution to stop your PC locking up or crashing when you try to do something in the background when Quake 3 is full screen - it doesn't like that.! Go into the 'multiplayer' menu. As soon as you do this ZoneAlarm *should* throw up a 'permissions' warning flag which you need to say 'yes/no' to, click the 'remember setting' checkbox (use Alt+TAB to jump between Quake 3 and Zone Alarm so you can actually click on the warning flag). This sets the access permissions for Quake 3 to connect to the Internet, and once done should then allow you to create a server. You may get another permissions flag when you do that. If none of the above happens then you'll need to open Zone Alarm and check the settings from there. Click the 'Program Control' menu item on the left to open the relevant page, you'll be on the 'Main' page by default. In the top right, just under the 'help' icon are a couple of page tabs; 'Main' and 'Programs', click 'Programs'. You should now see a list of names displayed, each being a program that has tried to get through Zone Alarm and access the Internet. There should be an entry somewhere on that list for 'quake3.exe', highlighting that entry will show you what permissions it has, it should ideally have green 'ticks' (check marks) in each of the columns, if not, click in the respective column and choose 'allow'. Leave Zone Alarm open and go back to Quake 3 and try to connect to the Internet again, if nothing happens close and restart the game and then try it again, if everything else on your system is OK then you should find you can access the net and set-up and run a Quake 3 server. This also applies to setting up and running servers for Doom 3, Return to Castle Wolfenstein, Call of Duty, etc.. etc.. Setting upOne of the greatest mysteries of the universe, the Q3A game server, is revealed here. See it in all it's glory and understand it's unfathomable depths.... mmmm, not quite, read this though and you be on the path of enlightenment... "See instructions below on how to use"If you 'Skirmish' a lot on single player then setting up a multiplayer server game shouldn't be too difficult.
![]() You should now see the 'game server' page with the selections you've already made.
That's the basic's, which you need to familiarise yourself with before fiddling around with the server console. A bit more advanced set-upAs mentioned on the above it's best to understand the basics of setting up a game server before you embark on the console which should look like this; picture below. ![]() The Quake 3 server console All your commands are typed into the console using the white box (see highlighted area in picture above) and unlike the game console (which is activated in game by pressing the key above the tab key) you can't use the '/' prefix to indicate a command, instead most have the 'sv_' (server) or one of several other prefixes (r_, com_, cg_ and many others). Once you've figured out what command you want to enter, just type it in, generally it won't be executed until you restart the match or q3 itself (exceptions usually are map and bot changes. For example, the following will start q3dm17;
If you set a (dedicated) server up for play over the Internet, by default a 'ping' (a packet of data containing basic details about the game you're setting up) is sent to the main q3 server which checks what IP addresses are available and can be given to your game (it 'resolves' an address, which is a series of numbers that allow computers to talk to each other e.g. 192.246.40.56). Once the address is resolved other players can then join your game; basically you're exposing your q3 bits to the world.
Ideal situationto join the game now running, the ideal situation is to have two PC's, connected together with LAN cards (or a network hub), one running ('hosting') the game server, the other to join the game with. The server doesn't need to be powerful either, there are q3 servers out there running p166's. From a servers point of view, two things that seem to make a notable difference to game play are RAM and access type / speed, you need as much ram as you can lay your hands on and a decent (fast..!) connection to the net. A 56k modem will just about manage 3 players with pings of about 250-350, you could push it to 4 players but you get a lot of 'connection interruptions' or 'pinglocks' (well that's the polite version anyway!). You can also join your own game server by re-launch q3 again on the same PC as the running server and browsing your 'local' connection to find the game. The one big drawback of this is that you really do need a s**t hot PC to give good game play and good server access, otherwise players that join your server won't be there for long, game play will 'stutter' like mad, they'll get a '999' ping and they will be thoroughly p*ssed off...! Rotating mapsOne of the other great mysteries of the universe, changing maps, is unravelled here, soon the light of enlightenment will awaken from within and you will be on the path of righteousness. Hmm, OK, it's easy when you know how. Changing a single map from the server console is dead easy, all you need do is type
Press return/enter. Make a note of which number goes with which map from within the game (when you choose an arena there's a number underneath the picture, this is used to tell the server which map you want). Map cyclingYou can play through your favourite maps by creating a 'map cycle', this is a text file which lists the maps you want to use e.g.
Copy and paste the above text between '// START..' to '.. END' into a *.txt file and then save it to your /baseq3 folder. Rename it to something appropriate with the *.cfg file extension and you should be ready to rock 'n' roll.
All you need to do is copy and paste the text above to a new text document (notepad or similar). It must be saved with a '.cfg' file extension. The filename will look something like this, 'cycle1.cfg'. You then need to save/copy/move the file to your 'baseq3' folder. You can then execute the map cycle by typing in the command 'exec filename.cfg'. Using our .cfg file it looks like this when typed into the console
Doing this will shutdown the current game and any bots and/or players that you left in the previous map should 'roll over' into the new game. Simple eh..!. Well, once you got past the basics shown above you can start to 'program' all sorts of 'things' into the game, from setting 'maxping' to zero-G in game. |