Howto:Set up a multiplayer server: Difference between revisions

Jump to navigation Jump to search
Line 47: Line 47:
== Getting fgms ==
== Getting fgms ==


* Download the latest stable version via http://gitorious.org/fgms/fgms-0-x/.
* You will need the build tools cmake and make, and also g++ to compile the fgms application. These can usually be found in the package manager for most the common Linux distributions. You will also need the git client to fetch the source code from the repository, if you plan to download it from the command line interface (see below).
To download a file to a server from an ssh session, you could use git tools, i.e.:
 
* Once the build tools are installed on your machine, create a directory to hold the source code. This could be named anything, such as fgms. Create it in your user home directory. Note that this WILL NOT be the directory where the program will be compiled.
 
* Now 'cd' into the directory you just made, where you will run the command to fetch the source code from the git repository (see below).
 
* To download the latest stable version via HTTP, you can use direct your browse to the URL http://gitorious.org/fgms/fgms-0-x/. Download and unzip the source code, and place it in the directory you created above.
 
* To download a file directly to your server from an ssh session, you can use git tools with the following command:


  $git clone git://gitorious.org/fgms/fgms-0-x.git
  $git clone git://gitorious.org/fgms/fgms-0-x.git
* Once you have the source code, 'cd' into the ~/fgms/fgms-0-x/ directory and note the presence of the CMakeLists.txt file and the README.cmake file. Open the README.cmake file and take a minute to read it over. Also, note the path to the CMakeLists.txt file, as you will need this in the following steps.
* Now create a build-fgms directory in your home directory, and 'cd' into it.
* From inside the ~/build-fgms/ directory, run the cmake command using the path to the CMakeLists.txt as an argument. For example:  cmake /home/<user_name>/fgms/fgms-0-x/
* Once the build finishes, you can either run the "cmake --build ..." command as shown in the README.cmake file, or you can simply use "make" to build the program.
* Once the compilation process finishes, you need to install the program using "make install" (as user), or you can also install as root.
* Once the program has been installed, you need to copy the fgms_example.conf file from the /fgms/fgms-0-x/src/server directory, into the build-fgms directory. To do this from inside the /fgms/fgms-0-x/src/server directory, you can use this command:  cp ./fgms_example.conf ~/build-fgms/
* Now 'cd' into the build-fgms directory, and rename the file you just copied as "fgms.conf" so that fgms can find the proper configuration.
* Edit the fgms.conf file according to the instructions found elsewhere on this page, then save and close the file.
* Finally, from inside the build-fgms directory, you can start fgms with the command:  ./fgms
If the program starts correctly, you should see several lines of console output with the message "Main server started!" as one of the final lines of output.


== Compiling FGMS ==
== Compiling FGMS ==
20

edits

Navigation menu