The Portable Space Engine has been ported to work with the TinyMUX, TinyMUSH and PennMUSH servers. If you use these servers, much of the hard work of adding the space engine to your game has already been done. If you use a different engine, then you will have to write the interface between the space engine and the server yourself. Assuming that you use one of the supported servers, the first thing to do is to download the latest version of the space engine from either the primary distribution site at Realm 9091, or the mirror site in the United Kingdom. As of this writing, the latest version is 0.9.7, and the rest of this document will use examples based on the 0.9.x code base. Generally, later releases of the code will be similar to install. The second step is the most important. Take a complete backup of your current server and game files, so you have something to fallback to if it all goes horribly wrong. Double check to make sure that your backup works! Next, uncompress and untar the distribution, and then read the README, INSTALL and CHANGES files in the space engine directory for late breaking information and news. Apply the appropriate patch to your server to add the code needed to interface to the Portable Space Engine to your server. Add the symbolic link from your MU* server source directory to the space source directory (recommended), or just move the space source tree into your MU* server source tree (not recommended due to later difficulties applying patches). Edit the spaceconf.h file in the space source directory to select the Portable Space Engine options you want, and then build the space engine by running a standard 'make' for the server. This should link the Portable Space Engine code into the server. Restart your server. The version information returned in the game should now show a line similar to: Portable Space Engine: Alpha v0.9.7 [22-May-1998]. At this point, the hardcode is installed, and the next step is to start configuring the softcode. This section is a basic run through of the setup of the Portable Space Engine 0.9.7 release with TinyMUX 1.5p3. All the commands used to add the space engine to the MUX are shown. I will make the assumption that you have an installation of unix up and running, a working C compiler, and a working version of gzip and tar. The commands I used are shown in a bold typeface after the 'bash>' prompts.
Congratulations, at this point you have successfully integrated the Portable Space Engine code and the TinyMUX server. Installing the Portable Space Engine patch adds a number of new features to your server. Two new attributes are added along with a new function call, and a new flag. Additions are also made to the timing code of the server to call the Portable Space Engine main execution loop. A new configuration option is also available to route space messages to a player which is very useful when setting up.
|