Up to Main Index Up to Journal for March, 2016 JOURNAL FOR WEDNESDAY 16TH MARCH, 2016 ______________________________________________________________________________ SUBJECT: Now you can load zone files too DATE: Wed 16 Mar 19:22:17 GMT 2016 I've just pushed all of the recordjar and file reading code out to the public dev branch. At the moment it can load the configuration file and zone files. It will load multiple zones but there is no way of linking them together yet. If you do add multiple zone files and there are starting locations in each of them which zone you pop up in will be random :) Sorting out proper world and zone types, linking zones together and generally improving what is currently dumped into setup.go is next on my list of things to do. As of these updates there are a few details needed to run the server. You can fully qualify the paths to the server executable or the data directory. Paths can be relative or absolute. You can also specify the configuration file to use in the data directory overriding the default config.wrj. There are some default files provided in the repository to get you started. Their layout looks like: data/ |__ config.wrj |__ zones/ |__ zinara.wrj One simple way to run the server is to specify both the server executable and configuration file explicitly - but see below also. For example I usually change to my top level source directory and run the server from there when developing: cd ~/gits/WolfMUD/src ../bin/server code.wolfmud.org/WolfMUD.git/data/ If anyone has *any* problems running the server please email me with a few details. I'm always willing to try and help out. A simple quick email to diddymus@wolfmud.org could save you hours and hours of frustration! Presented in a man page like format, details for running the server: NAME server - run a WolfMUD server instance SYNOPSIS server [DATA_DIR] | [configuration_file] DESCRIPTION Run a WolfMUD game server. DATA_DIR Optional relative or absolute path to the data directory. If not specified the current directory will be used and the configuration file is assumed to be named config.wrj configuration_file Optional relative or absolute path to a specific configuration file. In this case DATA_DIR will be the directory the configuration file is in. EXAMPLES server Run the server using the current directory as the data directory and using the default configuration file config.wrj server example.wrj Run the server using the current directory as the data directory and using the specified configuration file example.wrj server /home/diddymus/WolfMUD/data Run the server using the directory /home/diddymus/WolfMUD/data as the data directory and using the default configuration file config.wrj server /home/diddymus/WolfMUD/data/example.wrj Run the server using the directory /home/diddymus/WolfMUD/data as the data directory and using the cwspecified configuration file example.wrj FILES DATA_DIR/ Can be any directory holding WolfMUD data files. DATA_DIR/config.wrj Default configuration file. DATA_DIR/zones/*.wrj Directory looked in for zone files. Any files in this directory that end in .wrj will be loaded as zone files. BUGS Some documented, some yet to be written. -- Diddymus Up to Main Index Up to Journal for March, 2016