InstallingStendhal: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
imported>MiguelAngelBlanchLardin No edit summary |
imported>Hendrik Brummermann added navigation menu |
||
| (87 intermediate revisions by 9 users not shown) | |||
| Line 1: | Line 1: | ||
{{Navigation for Stendhal Top|Building & Hosting}} |
|||
| ⚫ | |||
This is a generic guide. You may prefer a specific installation guide for [[Easy_Stendhal_Server Installation_On_Windows|Windows]] or [[StendhalLocalhostServerOnLinux|Linux]] |
|||
| ⚫ | |||
__toc__ |
|||
| ⚫ | |||
The server files are available as a .zip. |
|||
| ⚫ | |||
* Go to [http://arianne.sourceforge.net/?arianne_url=games/game_stendhal#downloadsection download files] and download stendhal-server-{{version}}.zip |
|||
* Save |
|||
* Extract |
|||
== |
== Configure server == |
||
From where you extracted the files to, type command: |
|||
java -cp stendhal-server-{{version}}.jar games.stendhal.server.core.engine.GenerateINI |
|||
Download Maraurora from http://arianne.sourceforge.net/ |
|||
or check out the cvs version and build it. |
|||
For easy H2 database configuration just hit enter to accept each default and skip straight to [[InstallingStendhal#Start_the_server|Start the server]]. |
|||
| ⚫ | |||
For MySQL configuration (advanced): |
|||
| ⚫ | |||
<small> |
|||
*Which database system do you want to use? write mysql (mysql) |
|||
*database name, hit enter to use the default (marauroa) |
|||
*host, hit enter to use the default (localhost) |
|||
*user, write the username you used in giving MySQL permissions (FOO) |
|||
*password, write the password you used giving MySQL permissions (BAR) |
|||
*port, anything above 1024. 32160 is the default for stendhal, but it can be anything above 1024 |
|||
*game, type "stendhal" (or a number for that, if a multiple-choice menu appears) |
|||
*turn time, or how long the server takes to process each event, choose anything above 200, but below 1000. This is in milliseconds. default is 300 |
|||
*log and stats generation logs, use the default ("./") - it's in the same directory as everything else |
|||
*RSA key size, choose anything smaller than 1024 bits, but greater than 512 (or equal to). This is to make sure that the login information is valid and secure. Like the prompt says, anything greater than 1024 can take a LONG time. But, if you have ~30 minutes to spare (more or less, depending on your comp), you could use the extra security.</small> |
|||
If you used the noinstall package, you can run bin/mysqld.exe. |
|||
| ⚫ | |||
| ⚫ | |||
'''You only need to do this if you chose the advanced MySQL option, not H2''' |
|||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
== Copy Stendhal to the Maraurora classpath == |
|||
'''You only need to do this if you chose the advanced MySQL option, not H2''' |
|||
Marauroa is just the middleware to make everything run.<br> |
|||
| ⚫ | |||
But you need to feed it with games. To make Marauroa run Stendhal, just copy the result of compiling stendhal to marauroa folder. |
|||
If you |
If you used the noinstall package, you can run bin/mysqld.exe. |
||
<pre> |
|||
C:\...\marauroa-0.90>dir |
|||
19/02/2005 19:51 <DIR> . |
|||
19/02/2005 19:51 <DIR> .. |
|||
19/02/2005 13:28 133 AUTHORS |
|||
19/02/2005 13:28 141 BUGS |
|||
19/02/2005 13:28 18.332 COPYING |
|||
19/02/2005 13:28 719.950 jython.jar |
|||
19/02/2005 13:28 18.332 LICENSE |
|||
19/02/2005 13:28 149.364 marauroa-0.90.jar |
|||
19/02/2005 13:28 1.294 marauroa.ini |
|||
19/02/2005 13:28 162 marauroad.bat |
|||
19/02/2005 13:28 235.712 mysql-connector-java-3.0.15-ga-bin.jar |
|||
19/02/2005 13:28 13.930 README |
|||
10 files 1.157.350 bytes |
|||
2 dirs 19.775.102.976 bytes free |
|||
</pre> |
|||
| ⚫ | |||
=== Installing the Stendhal server module === |
|||
Either if you compiled it or if you downloaded a compiled version from Website you need to copy stendhal-server-X.XX.jar file to Marauroa folder so server can see it. |
|||
| ⚫ | |||
Copy stendhal-server-0.00.jar into Marauroa folder: |
|||
| ⚫ | |||
<pre> |
|||
The mysql command is: |
|||
copy stendhal-server-0.00.jar D:\.....\marauroa |
|||
create database marauroa; |
|||
</pre> |
|||
grant all on marauroa.* to 'FOO'@'localhost' identified by 'BAR'; |
|||
| ⚫ | |||
Go to Marauroa folder and edit marauroad.bat file, that should looks like: |
|||
| ⚫ | |||
<pre> |
|||
set LOCALCLASSPATH=.;stendhal-server-0.00.jar;marauroa-0.90.jar;jython.jar;mysql-connector-java-3.0.15-ga-bin.jar |
|||
java -cp "%LOCALCLASSPATH%" marauroa.server.marauroad -c marauroa.ini -l |
|||
</pre> |
|||
java -jar stendhal-server-{{version}}.jar |
|||
== See also == |
|||
Congrats! You have successfully installed Stendhal in a Marauroa server.<br> |
|||
* [[StendhalServerTroubleShooting|Trouble shooting]] |
|||
| ⚫ | |||
* [[StendhalPublicServer|Host an online Stendhal server]] |
|||
| ⚫ | |||
| ⚫ | |||
Refer to [[InitialStepsWithStendhal | Initial steps with Stendhal]] guide. |
|||
<br> |
<br> |
||
| Line 74: | Line 67: | ||
[[Stendhal | Back to stendhal main wiki page]] |
[[Stendhal | Back to stendhal main wiki page]] |
||
[[Category:Stendhal]] |
|||