               *************************************
               Instructions for running a WOD:LOX server
               *************************************

I suggest naming your Weapons of Destruction:Lethal Orifice eXamination
 directory "lox".  That seems to be the standard over the Internet.  
And it makes it much easier, when it comes to automatic downloads and 
all that, to know all Weapons of Destruction:Lethal Orifice eXamination
files are going into the same directory.

Two default config files have been provided -- server.cfg for deathmatch. 
You will probably want to edit them before running your server for the 
first time (though their defaults work well).

To run a dedicated server, the command is:

quake2 +set dedicated 1 +set game lox +exec server.cfg

-----

Try "set maplist 1" on your deathmatch server...the next map will be
chosen from maplist.txt, instead of running in the normal loop.
(maplist will be subsequently set to 2, 3, etc. by the server,
indicating where it is in the maplist.  It will loop back to 1 at the
end of the file.)

I recommend starting with either "biggun" or "fact3" -- in my
experience, those are the two biggest fragfest maps in the standard
collection, and they're nice to use whenever you want to wake everyone
up and get their blood pumping.

The maplist.txt file, as provided, contains my opinion of which game
maps make good DM maps.  You are free to have your own opinion.
maplist.txt contains the name of each of the good maps, 10 times,
shuffled together thoroughly.  Should be fine for most uses!

-----

You can ban any of the weapons and features with the "weaponban" and
"featureban" variables.  Both variables are flags, in the same way
that the "dmflags" variable is: just add together the numbers of the
weapons/features you want to ban, and that's your value for
weaponban/featureban, respectively.

Values for weapon of destruction weapons weaponban:

Ban super blaster		1
Ban shotgun			2
Ban sniper gun			4
Ban super shotgun		8
Ban freeze gun			16
Ban standard machinegun		32
an machine rocket gun		64
Ban burstfire machinegun	128
Ban chaingun			256
Ban streetsweeper		512
Ban grenades			1024
Ban cluster grenade		2048
Ban rail bomb			4096
Ban plasma grenade		8192
Ban napalm grenade		16384
Ban shrapnel grenade		32768
Ban cataclysm device		65536
Ban grenade launcher		131072
Ban bazooka			262144
Ban rocket launcher		524288
Ban homing rocket launcher	1048576
Ban hyperblaster		2097152
Ban plasma rifle		4194304
Ban railgun			8388608
Ban flamethrower		16777216
Ban BFG10K			33554432

values for WoD:LOX loxweaponban:

Ban airfist			1
Ban sword			2
Ban pulserifle			4
Ban nailgun			32
Ban buckyball launcher		64
Ban skipper homing rocket	128
Ban guided missile		256
Ban positron			512
Ban Sticking Grenades		1024
Ban Icecube Gun			2048
Ban Durg			4096
Ban Lightninggun		8192
Ban Double Impact		16384
Ban FBFG			32768
Ban Vacuummaker			65536
Ban Energy Vortex		131072
Ban Spiral Rocket Launcher	524288 **
Ban Sonic Railgun		1048576
Ban Explosive Shotgun		2097152
Ban Explosive Super Shotgun	2097152
#define LWB_AIRFIST			0x00000001 //1
#define	LWB_SWORD			0x00000002 //2
#define LWB_PULSERIFLE			0x00000004 //4
#define LWB_NAILGUN			0x00000008 //8
#define LWB_BUCKY			0x00000010 //16
#define LWB_SKIPPERHOMINGROCKET		0x00000020 //32
//two spots here

#define LWB_GUIDEDMISSILE		0x00000100 //256
#define LWB_POSITRON			0x00000200 //512
#define LWB_STICKGRENADELAUNCHER	0x00000400 //1024
#define LWB_ICECUBEGUN			0x00000800 //2048
#define LWB_DURG			0x00001000 //4096
#define LWB_LIGHTNINGGUN		0x00002000 //8192
#define	LWB_DOUBLEIMPACT		0x00004000 //16384
#define LWB_FBFG			0x00008000 //32768
#define LWB_DISINTEGRATOR		0x00010000 //65535
#define LWB_VACUUMMAKER			0x00020000 //131072
#define LWB_ENERGYVORTEX		0x00040000 //262144
#define LWB_SPIRALROCKETLAUNCHER	0x00080000 //524288
#define LWB_SONICRAILGUN		0x00100000 //1048576
#define LWB_EXPLOSIVESHOTGUN		0x00200000 //2097152
#define LWB_EXPLOSIVESUPERSHOTGUN	0x00400000 //4194304
#define LWB_EXPLOSIVEMACHINEGUN		0x00800000 //8388608
#define LWB_KAMINIT			0x01000000 //16777216
#define LWB_WALLPIERCINGRAILGUN		0x02000000 //33554432
#define LWB_NUKE			0x04000000 //67108864
#define LWB_FLOATINGMINELAUNCHER	0x08000000 //134217728

#define LWB_ANTIMATTERCANNON		0x10000000 //268435456
#define LWB_SUPERRAILSHOTGUN		0x20000000 //536870912
#define LWB_GUIDEDNUKE			0x40000000 //1073741824

Ban Superblastersweeper		1
Ban Freezersweeper		2
Ban Grenadesweeper		4
Ban Bazookasweeper		8
Ban Railgunsweeper		16
Ban Flamesweeper		32
Ban Durgsweeper			64
Ban Chunk Gun			128
Ban Snipersweeper		256
Ban Explosive Chaingun		512
Ban Explosive Streetsweeper	1024

values for WoD:LOX loxgrenadeban:
Ban plasmaclustergrenade	1
Ban telegrenade			2
Ban freezergrenade		4
Ban homergrenade		8
Ban rocketgrenade		16
Ban Blindness Grenade		32

For example, to ban the cataclysm device, the homing rocketlauncher,
and the BFG10K (the 3 most hated weapons it seems), weaponban is
65536 + 1048576 + 33554432 == 34668544.

Note that if you ban grenades (value 1024), then *all* of the grenade
types, as well as the grenade launcher and bazooka, are banned too.

Values for featureban:

Ban bandolier		1
Ban ammo pack		2
Ban silencer		4
Ban rebreather		8
Ban environment suit	16
Ban adrenaline		32
Ban megahealth		64
Ban power armor		128
Ban invulnerability	256
Ban decoy		512
Ban grappling hook	1024
Ban player ID		2048
Ban kamikaze		4096
Ban lasersight		8192
Ban triplasers		16384
Ban nightvision		32768
Ban push/pull		65536
Ban scanner		131072
Ban zoom view		262144
Ban jetpack		524288

Values for loxfeatureban:
Ban cloak		1
Ban explosive		2
Ban invis		4
Ban flashlight		8
Ban checkstats		16
Ban Rangefinder		32
Ban LOX Player ID	64
Ban Fake death		128
Ban Angel of Death	256
Ban Angel of Life	512
Ban Angel of Mercy	1024
Ban Angel of Frost	2048
Ban Angel of Plague	4096
Ban Sweeper Fire Mode	8192
Ban Height		16384
Ban Angel of Flame	32768
Ban Angel of Horror	65536
Ban Angel of Blindness	131072
Ban Airstrike		262144
Ban FPM			524288
Ban Tracker		1048576
Ban Angel of Revenge	2097152
Ban Baton		4194304
Ban Holo		8388608

Values for loxarmorban:
Ban Organic Armor 	1
Ban Slug Armor		2
Ban Cell Armor		4
Ban Shell Armor		8
Ban Bullet Armor	16
Ban Rocket Armor	32
Ban Grenade Armor	64

For example, to ban the decoy, nightvision, and scanner, featureban is
512 + 32768 + 131072 == 164352.

You can also ban frags for certain weapons, i.e. players can use them
to kill other players, but won't score any points for doing so.  The
"fragban" variable uses the same flags and values as the "weaponban"
variable, with the following additions:

Ban frags for blaster				67108864
Ban frags for telefrags				134217728
Ban frags for kamikazes				268435456
Ban frags for grappling hook			536870912

For example, to ban frags for cataclysm devices, homing rockets, and
telefrags, fragban is 65536 + 1048576 + 134217728 == 135331840.

Also note that banning frags for the flamethrower (value 16777216) will
ban frags for all fire.

-----

WOD:LOX now features IP banning.  You can add or remove addresses from the
filter list with "sv addip <ip>" and "sv removeip <ip>".  The ip address
is specified in dot format, and any unspecified digits will match any
value, so you can specify an entire class C network with "addip 192.246.40".

removeip will only remove an address specified exactly the same way.
You cannot addip a subnet, then removeip a single host.

There is one more way to ban a player.  "sv kickban <player#>" will ban
the player's IP address and then kick them from the server.

"sv listip" prints the current list of filters.  "sv writeip" dumps
"addip <ip>" commands to listip.cfg so it can be execed at a later date.
The filter lists are not saved and restored by default.

In addition, there's a "filterban" variable.  If set to 1 (the default),
then ip addresses matching the current list will be prohibited from
entering the game.  If set to 0, then only addresses matching the list
will be allowed.  This lets you easily set up a private game, or a game
that only allows players from your local network.

There is a nightdaytime variable available now. The default value is 13. 
This means that the time that it takes for the cycle to go from day to
night to day 13 minutes. Just modify the nightdaytime variable to suit 
your needs.

-----

Does your server sometimes crash with "ERROR: *Index: overflow"?

I've finally figured out what the problem is.  Turns out the game is
running out of modelindexes.  Every model in the game (male player,
female player, each weapon, health-pack, and so on) gets loaded in and
is assigned a modelindex.  Quake II has an internal limit of 256 models.

Most people don't get this problem unless they have several extra player
models installed on their server machine, *and* they use the maplist
feature.

The problem happens because anything in the map that can move or be
destroyed (exploding walls, bridges, and so on) are also considered a
model.  They might not be used in the deathmatch game, but the
modelindex doesn't get freed.  That's just some sloppiness on Id's part.
I've written them a letter about it.

Until they fix their bug, here's what you do.  First, if you have extra
installed player models, you don't necessarily have to remove them.
First, see if you can get just the standard 8 DM maps to run without
incident.  If not, you have too many player models & you're gonna have
to remove some.  But if the DM maps work fine, then you can run your
server with maplist turned on.  Note what maps cause your server to
crash, and remove them from the maplist.txt file.  Eventually :) you
will have a list of maps that won't crash your server.

07-30-99
Well I have an update to the ERROR: *Index: overflow problem, I have 
created a workaround to the problem. Essensially this is what is going
on. Whenever a new map loads the old models get uncached an the new
models get cached. Knowing this information helped me develop the workaround.
Basically what I did was provide a check that if you are about to get
that error it will end the level and start the next one. Hopefully this
will work until I can get a better solution. 

09-06-99
It turns out that if you have the Grenade and Bazooka sweepers enabled
you will start to get some warnings. Well these are just warnings but
for some reason or another they will cause server lag. To fix the problem
just ban these two weapons. 
-----



As always, if you have questions, feel free to mail me at
jblabs@aracnet.com
