MCCP2 patch for Circle 3.1 + Oasis206 + DG Scripts 1.0.13 ver 1.0 by James Ravn - jravn@ucla.edu OVERVIEW: This patch adds MCCP2 support. See http://www.zuggsoft.com/zmud/mcp.htm for information on the protocol. Most mud clients support MCCP2 these days, and it's a great way to cut down on bandwidth usage. With some testing, I was able to get an average of around 80% output reduction! This patch is designed to be light weight. It is lacking some 'functionality', such as ability to toggle compression on and off. Compression will be on if the client supports it - I think it should be up to a client program to disable it or not. Also, there is no support for MCCP1. MCCP1 is a broken standard, so if anyone complains tell them to update their client. INSTALL: This patch has been tested to apply cleanly to Circle 3.1 with Oasis206 and DG Scripts 1.0.13 applied. These patches can be gotten from ftp.circlemud.org/pub/CircleMUD/contrib/. If you don't want to install these patches, or you aren't starting from stock, it should be pretty easy to add this patch by hand. First of all, make sure zlib is installed. If you have a zlib.h somewhere, usually in /usr/include, good chances are that it's installed. Also, make sure you've run configure at least once (preferably after installing the Oasis and DG script patches). Do the following to get it working: 1) move the patch file to your src directory 2) patch < mccp2_1.0_for_oasis206+dg1.0.13.patch 3) Open up your Makefile. Add -lz to the LIBS parameter, around line 25. On stock it should look like LIBS = -lcrypt -lz once you edit it. 4) compile! NOTES: If you find that compression is raising cpu usage too much, try lowering the amount of compression zlib does. Change Z_BEST_COMPRESSION to Z_DEFAULT_COMPRESSION in comm.c. This is in the process_input() function, around line 1942 in stock. Or replace it with a number from 0 to 9, with 9 being equivalent to Z_BEST_COMPRESSION. Personally, I had no problems with excessive CPU usage. Also, this patch won't work if your mud is running in windows. Sorry! If you find any bugs, please let me know at jravn@ucla.edu. AND ENJOY!!!:)