Howto:Set up a multiplayer server: Difference between revisions

Jump to navigation Jump to search
Moved GitLab repository URLs to SourceForge repository URLs
m (One would not refer to a beautiful view about a sunset, or an unobstructed view about the sewage farm. The same applies to "overview".)
(Moved GitLab repository URLs to SourceForge repository URLs)
Line 49: Line 49:
* 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.
* 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).  
* 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 https://gitlab.com/fgms/fgms-0-x. Download and unzip the source code, and place it in the directory you created above.
* To download the latest stable version via HTTP, you can use direct your browse to the URL https://sourceforge.net/projects/fgms/. 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:
* To download a file directly to your server from an ssh session, you can use git tools with the following command:
:<syntaxhighlight lang="bash">git clone https://gitlab.com/fgms/fgms-0-x.git</syntaxhighlight>
:<syntaxhighlight lang="bash">git clone https://git.code.sf.net/p/fgms/src</syntaxhighlight>


== Compiling FGMS ==
== Compiling FGMS ==
Line 59: Line 59:
NOTE: In general, on any current machine this process should not take longer than about 60 seconds.
NOTE: In general, on any current machine this process should not take longer than about 60 seconds.


* 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.
* Once you have the source code, 'cd' into the ~/fgms/ 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/
* 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/


* 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 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.
Line 67: Line 67:
* 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 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/
* Once the program has been installed, you need to copy the fgms_example.conf file from the /fgms/src/server directory, into the build-fgms directory. To do this from inside the /fgms/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.
* 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.
329

edits

Navigation menu