- Scenerio 1: Using CVS
- cvs -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/firstmud login
- cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/firstmud checkout <version>
- Scenerio 2: Download
- Download from the Project Files
- Extract. (tar -xzvf
firstmud-4.5.4.tar.gz, PowerArchiver, WinZip, WinRar)
- You can rename the folder if you want.
Requires automake and autoconf programs.
- Change to the main (the firstmud root)
directory. (cd
firstmud-4.5.4).
- Run the setup.sh script. This will attempt to find system
dependencies and create a configure script. (./setup.sh) Later on you can run
./setup.sh clean to clean to the distrobution standard.
See ./configure --help for help once the script is made or see Preprocessor
Definitions below for additional arguments.
- Type 'make' (or 'gmake' for GNU make) to build firstmud
and if all goes well, a 'firstmud' binary will be created. Type 'make install'
to install it into the ../bin directory.
- Open Kdevelop and select Project->Import Existing Project.
- Select the firstmud directory for the project location.
- Select "Generic C++ Application (Automake based)".
- Open MSCV++ and select File->New
- Select "Win32 Console Application" in the wizard that
comes up. Also set the project name (ex. 'firstmud'), and the project location (typically the
'..\win' directory). Click OK.
- Now choose "an empty project" and click Finish.
- Goto Project->Add to Project->Files and
select all the .cpp files in ..\src. Don't worry
about the .h files. We'll set an include path later, you can add
them if you want.
- Goto Project->Settings (ALT+F7):
- Under the Debug tab (optional):
- Add the working directory. Typically any
subdirectory of firstmud, if you set the project location to
win\firstmud for example, '..\' would put you in the 'win' subdirectory.
- Add any program arguments. (Ex. '<port>' to set the
port)
- Under the C/C++ tab:
- Under Preprocessor Definitions add
',ZLIB_DLL,_WINDOWS' to use MCCP, define DISABLE_MCCP instead if you
choose not to use it. MCCP requires zlib1.dll with the exe file.
- Select "Preprocessor" from the Category list box.
Under additional include directories add
..\..\src\h,..\ seperated by a
comma. (relative paths are from the project file location)
The goal here is to add 'src/h' and 'win' directories.
- Under the Link tab:
- Select "Input" from the Category list box and under
"Additional Library path" add '..\', or the relative path to
the 'win' directory. The necessary libraries
like windows sockets are added to the project when compiled.
Requires automake and autoconf programs.
- The installer from www.cygwin.com lets you pick what
packages you would like, take the Cygwin installer
default but in addition within the Devel section
select the latest versions of the following:
- binutils
- gcc
- gdb
- make
- configure
- install
- indent
- crypt
- zlib
- plus anything else you might want, like wget
- Note that the exe file requires the cygwin\bin\cygwin1.dll.
Copy it to your windows directory to save having to move one around.
- DISABLE_WEBSRV
- Disables using the internal web server, --disable-web argument using the configure script.
- DISABLE_MCCP
- Disables using Mud Client Compression Protocol, disabled automatically
under cygwin, disabled on unix if zlib library was not found.
- DISABLE_SENDSTAT
- Disables sending statistics back to
- DISABLE_CRYPT
- Disable encrypting of passwords, disabled under Windows, disabled under
unix if crypt library not found
- OLD_RAND
- Uses the old random number system, disabled with configure if random
functions not found, or using.
- NO_INITIAL_ALPHA_PFILEDIRS
- Disables using inital directories for player files. Default
is disabled under windows, enabled on unix.
- DISABLE_I3
- Disables the use of the InterMUD3 network. Enabled by default but will not autoconnect.
- MSVC++ 6 Only
- WIN32
- Defined automatically by MSVC++, will not compile without it.
- _WINDOWS
- Only needed when using MCCP. Tells the compiler we're building a Windows Program.
- ZLIB_DLL
- Only needed when using MCCP. Enables using the zlib.dll dynamic library.
- Cygwin Only
- __CYGWIN__
- Defined automatically by Cygwin, unable to compile without it.
A list of additional definitions can be found in src/config/config.h.in
- Run a startup script:
- The startup script can found in the ../bin directory.
Ex: ./startup start <port> <args> & ./startup stop)
- Optionally you can have your crontab run boot.pl, this should be prefered once your mud is stable.
- Program arguments should be viewed first using the '--help' option. (Ex. ./firstmud --help)
firstmud runs as a background process witha log file by default.
- You may run firstmud safely in any of the ./firstmud-4.5.4 directories, providing the executable is only 1 folder deep. (ex. ../bin, ../win)
Any missing or needed information for this page? Email
Ryan.
|