How to get this mudlib up and running:
--------------------------------------
Firstly, you need to follow the instructions. You also need to have a
modicum of skill in doing the task required, we are not going to hold your
hand through this or wipe your bottom if you stuff up but we will do our
best to explain the process of getting this mudlib up and running.
1. The Driver.
You need to have in your possession a recent unmodified version
of the MudOS driver. It would probably help to have a stable
version past 22.1 since several driver efuns employed in the
lib are not available in earlier releases. V22.2b13 is available
from www.mudos.org.
- Alter the paths in the config file to reflect where the 'bin'
and the 'mudlib' directories lie in your system. The 'bin'
directory is where your driver binary and config file are.
The 'mudlib' directory is obviously where in your system
the mudlib directory in this directory is.
- Alter the paths in the info file to reflect the locations of
the provided scripts.
- Change the name you want you want your mud to be called (the
'name' field) and the port that it will come up on (should be the
'external_port_1' field).
- Change the paths in all the script files in /bin
config, info, start_mud, start_mud.2 and start_as to reflect
your 'home' path. ie:- where your bin and mudlib dirs are.
- _This is important_: For the driver to compile, you will need
to move the local_options file into the driver source directory.
What this does is override the options.h file of the driver
with the options that our mudlib needs so that the driver compiles
correctly. Keep in mind - I do not mean move it over the options.h
file and delete the old copy, if it is moved into the driver
source directory as local_options it saves having to update an
options.h file by hand everytime the driver distribution has
changed options.
Ok, now compile the driver. For driver related problems please do
not bother us. If you can't compile the driver find someone who
can.
2. Setting up the Mudlib.
Once you have compiled the driver you can run it. Ideally you want
to have two windows open, one to run the driver in and the other
to telnet to the port its running on. Its up to you but I find
that if something errors, I can just Ctrl-C the driver process and
and fix it and then restart the driver.
- Before running the driver modify any mudlib options you want in
/secure/include/global/customise.h including admin email
for intermud and login screens. The settings for database
access and similar are defined in /secure/include/config.h
You should also modify your port numbers for FTP,
HTTP etc. in /secure/include/network.h. It is important
to note that you should have an empty port one under your FTP
port (e.g. 7302 for ftp and 7301 free).
- To run the driver, you need to specify the path of the config
to it.
e.g. 'driver config' assuming your config file and the driver
binary are in the same directory.
- Ideally if you want to run the address server too, you want to
give it the port to run on which is the same as the port
specified for it in the config file, the address_server converts
ip numbers to ip addresses. It is possible to run the mud without
the address server.
- Once you are happy that the mud is running smoothly use
./start_mud to start the mud which starts the address_server
and the driver as well as a script that will restart the
mud when it has been shutdown from inside the mud.
3. Logging in for the first time.
To save the hassle of hacking save files and all, a default
character of admin level have been added.
- login : default
- password : password
NOTE: Note that before you put the mud on the net, you will
want to demote or at least change the password of this
character. Don't blame us for your stupidity in this
regard. The best way would be to log in with another
character, promote them with "securitytool", and put
them in the "admin" domain, effectively making them
an admin. After that it is safe to demote "default".
4. MYSQL Databases.
A few things in the mud are built to use mysql databases,
namely the map handler, and errors database.
- To turn on the database efuns, you need to turn on PACKAGE_DB
in local_options, and of course, have mysql along with the
header files installed on the host.
- The system uses the databases 'clusters' and 'errors' by
default. If you choose to use other names for these databases,
do not forget to update the settings in /secure/include/config.h
Once the database is setup you must set up the tables.
The table definitions are in the /bin/db directory.
- To create the databases:
mysqladmin create database clusters
mysqladmin create database errors
cd $(bindir)/db
mysql errors < errors
mysql clusters < clusters
5. Documentation.
Most of the files in the mudlib have embedded documentation in them,
which is extracted from the actual files by the autodoc handler,
which creates a separate save file for each of the docs, which are
then used by the help command. However, to keep the size of the
mudlib down, we have deleted the extracted documentation, but left
the file names in the handler, which means that it will take a
couple of days for the handler to recreate the documentation for
the whole lib. To force the handler to create documentation for a
file already in the handler, use 'autodoc <filename>', or
'autodocadd <filename>' to add a file into the list of files the
handler should keep track of. To remove a file from the handler,
use 'autodocrm <filename>'.
For an overview of the documentation syntax, please read
'help autodoc handler'.
That's about it, as you can see you need to have a modicum of knowledge
to set up the mudlib. If you have any problems with the mudlib,
suggestions, and/or comments please contact:
Sandoz, sandoz@divided-sky.com
Divided Sky - telnet://divided-sky.com:7300
http://www.divided-sky.com