InitialStepsWithMarauroa: Difference between revisions
Content deleted Content added
No edit summary |
imported>Kymara m →Create server.ini file: can't remember how to do wiki links, blah |
||
| (235 intermediate revisions by 13 users not shown) | |||
Line 1:
{{Navigation for Marauroa Top|Using}}
{{Navigation for Marauroa Users}}
OK, you have successfully compiled Marauroa and are wondering what to do next?
<pre>
BUILD SUCCESSFUL
Total time: 3 seconds
</pre>
Nice, isn't it?
If you want to run a [[Stendhal]] Server then this is not the guide for you. You do not need to run marauroa separately of the Stendhal Server, please see [[Host a Stendhal Server]] instead.
If none of the above apply it is possible you are looking for http://arianne.sourceforge.net instead.
=Configuration=
== Create a MySQL database and user ==
Run the sql client (bin/mysql.exe on the windows noinstall package).
Replace <user> and <password> with the desired values and paste the following lines to the prompt that opens:
<pre>
create database marauroa;
grant all on marauroa.* to <user>@localhost identified by '<password>';
</pre>
It should produce output similar to this:
<pre>
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 1 to server version: 4.1.10
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> create database marauroa;
Query OK, 1 row affected (0.03 sec)
mysql> grant all on marauroa.* to stendhal_user@localhost identified by 'stendhal_passwd';
Query OK, 0 rows affected (0.00 sec)
mysql>
</pre>
== Create server.ini file ==
If you don't have a game yet, see [[ClientServerChatExample|Marauroa Tutorial]] for how to generate a minimum server.ini and how to write the two required classes.
To create the marauroa.ini file you need to can write it by hand, copy from another place or use your game application to generate it.<br>
Please refer to your game documentation about how to write it.
Stendhal Documentation: [[VisualGuideToInstallingStendhalStep5]]
=Running=
Once you have it configured, just run the server by executing:
<pre>
java -classpath .;mysql-connector-java-3.0.7-stable-bin.jar;log4j.jar;marauroa.jar marauroa.server.marauroad -c <server.ini>
</pre>
''NOTE'': On Unix use : instead of ; to define the classpath.
''NOTE'': You may change what it is logged by default, so you need to edit the log4j.properties file.
For example:
<pre>
# Set root logger level to DEBUG and its only appender to A1.
log4j.rootLogger=INFO, Console, File
# Paste all logger entries with a threshold of WARN to the console
log4j.appender.Console=org.apache.log4j.ConsoleAppender
log4j.appender.Console.layout=org.apache.log4j.PatternLayout
log4j.appender.Console.layout.ConversionPattern=%-4r %-5p %c %x - %m%n
log4j.appender.File=org.apache.log4j.DailyRollingFileAppender
log4j.appender.File.File=server.log
log4j.appender.File.layout=org.apache.log4j.PatternLayout
log4j.appender.File.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n
# Disabled debug messages for stendhal...some 10 thousand logs each minute is
# way too much
log4j.logger.marauroa.server.game.RPServerManager=WARN
</pre>
Make sure that you have the MySQL server running too. Marauroa will build all the needed table structure for itself.
This will start Marauroa.
Now refer to game documentation about how to start the game server and how to create accounts and so on.
[[Category:Marauroa]]
{{#breadcrumbs: [[Marauroa]] | [[Navigation for Marauroa Users|Using]] | [[InitialStepsWithMarauroa|Initial Steps]]}}
| |||