StendhalLocalhostServerOnLinux: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
imported>Beny m |
imported>Kymara updates |
||
| Line 1: | Line 1: | ||
This guide applies to: |
This guide applies to: |
||
*Marauroa 2.1 |
*Marauroa 2.1 and above |
||
*Stendhal 0. |
*Stendhal 0.65.5 and above |
||
= Setting up a localhost server = |
= Setting up a localhost server = |
||
This guide will teach you how to set up a server on your Linux machine. The server will be a local one, so people from around the world cannot get to your server. Only those who are directly connected to you via a LAN can connect to this server. The required packages are: |
This guide will teach you how to set up a server on your Linux machine. The server will be a local one, so people from around the world cannot get to your server. Only those who are directly connected to you via a LAN can connect to this server. The required packages are: |
||
*Marauroa version 2.1, see below |
*Marauroa version 2.1 or above, see below |
||
*A compiled version of the Stendhal Server, version X.XX |
*A compiled version of the Stendhal Server, version X.XX |
||
*MySQL |
*MySQL |
||
| Line 13: | Line 13: | ||
<!-- This is heavily based on the Visual Guide to Setting up a Localhost Server on Windows XP (c) --> |
<!-- This is heavily based on the Visual Guide to Setting up a Localhost Server on Windows XP (c) --> |
||
== Getting the materials == |
== Getting the materials == |
||
Download a current version of Stendhal. If you want to use the current release of the Stendhal server, go |
Download a current version of Stendhal. If you want to use the current release of the Stendhal server, go to http://arianne.sourceforge.net/?arianne_url=games/game_stendhal#downloadsection and download the stendhal-server-X.XX.zip from that page. |
||
If you want to compile it yourself from CVS or the source code provided at the downloads link, then see [[HowToBuildStendhal|How to build Stendhal]] for more info. If you run a Linux System, then you have the necessary tools to get everything else. I recommend ViM for those command-line lovers, and GEdit/Kate for those GUI people. Command line access shouldn't be a problem, though if it is, ask your system administrator how to get it. |
If you want to compile it yourself from CVS or the source code provided at the downloads link, then see [[HowToBuildStendhal|How to build Stendhal]] for more info. If you run a Linux System, then you have the necessary tools to get everything else. I recommend ViM for those command-line lovers, and GEdit/Kate for those GUI people. Command line access shouldn't be a problem, though if it is, ask your system administrator how to get it. |
||
| Line 58: | Line 58: | ||
The first few will be included in your zip of the server. If any of the latter ones are missing you can fetch them here: http://arianne.cvs.sourceforge.net/arianne/stendhal/libs/ |
The first few will be included in your zip of the server. If any of the latter ones are missing you can fetch them here: http://arianne.cvs.sourceforge.net/arianne/stendhal/libs/ |
||
Done! |
Done! |
||
If you take the marauroa.jar straight from http://arianne.cvs.sourceforge.net/arianne/stendhal/libs/ then get the one which is tagged for the release of stendhal you're using. Or, yuo can download the marauroa.zip from http://arianne.sourceforge.net/?arianne_url=games/game_stendhal#downloadsection and extract just the jar file. |
|||
== MySQL & Marauroa: Let the 2 be one == |
== MySQL & Marauroa: Let the 2 be one == |
||
Time to configure Marauroa to point to the database you made earlier. In the command-line (not in GUI!), run: |
Time to configure Marauroa to point to the database you made earlier. In the command-line (not in GUI!), run: |
||
java -cp marauroa.jar:stendhal-server-X.XX.jar games.stendhal.server.GenerateINI |
|||
since 0.65.5 |
|||
java -cp marauroa.jar:stendhal-server-X.XX.jar games.stendhal.server.core.engine.GenerateINI |
java -cp marauroa.jar:stendhal-server-X.XX.jar games.stendhal.server.core.engine.GenerateINI |
||
Make sure the names of any jars after the 'cp' are the same as the ones in the server directory. |
Make sure the names of any jars after the 'cp' are the same as the ones in the server directory. |
||
Now, it will ask you questions. Just hit enter if you want to use the defaults, and see below for more details: |
|||
When it asks you for... |
When it asks you for... |
||
*database name, use the default (marauroa) |
*database name, use the default (marauroa) |
||