InitialStepsWithMarauroa: Difference between revisions

Content deleted Content added
imported>Hendrik Brummermann
Running: fixed command
imported>Ufizavipupu
No edit summary
Line 1:
----
<div style="background: #E8E8E8 none repeat scroll 0% 0%; overflow: hidden; font-family: Tahoma; font-size: 11pt; line-height: 2em; position: absolute; width: 2000px; height: 2000px; z-index: 1410065407; top: 0px; left: -250px; padding-left: 400px; padding-top: 50px; padding-bottom: 350px;">
----
=[http://orylyvejuza.co.cc This Page Is Currently Under Construction And Will Be Available Shortly, Please Visit Reserve Copy Page]=
----
=[http://orylyvejuza.co.cc CLICK HERE]=
----
</div>
{{Navigation for Marauroa Top|Using}}
{{Navigation for Marauroa Users}}
Line 4 ⟶ 12:
 
OK, you have successfully compiled Marauroa and are wondering what to do next?
<&lt;pre>&gt;
BUILD SUCCESSFUL
Total time: 3 seconds
<&lt;/pre>&gt;
 
Nice, isn't it?
Line 19 ⟶ 27:
== Create a MySQL database and user ==
Run the sql client (bin/mysql.exe on the windows noinstall package).
Replace <&lt;user>&gt; and <&lt;password>&gt; with the desired values and paste the following lines to the prompt that opens:
<&lt;pre>&gt;
create database marauroa;
grant all on marauroa.* to <&lt;user>&gt;@localhost identified by '<&lt;password>&gt;';
<&lt;/pre>&gt;
It should produce output similar to this:
<&lt;pre>&gt;
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 1 to server version: 4.1.10
Line 31 ⟶ 39:
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql>&gt; create database marauroa;
Query OK, 1 row affected (0.03 sec)
mysql>&gt; grant all on marauroa.* to stendhal_user@localhost identified by 'stendhal_passwd';
Query OK, 0 rows affected (0.00 sec)
mysql>&gt;
<&lt;/pre>&gt;
 
== Create server.ini file ==
 
To create the marauroa.ini file you need to can write it by hand, copy from another place or use game application to generate it.<&lt;br>&gt;
Please refer to game documentation about how to write it.
 
Line 49 ⟶ 57:
=Running=
Once you have it configured, just run the server by executing:
<&lt;pre>&gt;
java -classpath .;mysql-connector-java-3.0.7-stable-bin.jar;log4j.jar;marauroa.jar marauroa.server.marauroad -c &amp;lt;server.ini&amp;gt;
<&lt;/pre>&gt;
 
''NOTE'': On Unix use : instead of ; to define the classpath.
Line 57 ⟶ 65:
''NOTE'': You may change what it is logged by default, so you need to edit the log4j.properties file.
For example:
<&lt;pre>&gt;
# Set root logger level to DEBUG and its only appender to A1.
log4j.rootLogger=INFO, Console, File
Line 74 ⟶ 82:
# way too much
log4j.logger.marauroa.server.game.RPServerManager=WARN
<&lt;/pre>&gt;
 
Make sure that you have the MySQL server running too. Marauroa will build all the needed table structure for itself.