InitialStepsWithMarauroa: Difference between revisions

Jump to navigation Jump to search
Content deleted Content added
imported>Ufizavipupu
No edit summary
imported>Blacklads
Undo revision 11666 by Ufizavipupu (Talk)
Line 1: 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 Top|Using}}
{{Navigation for Marauroa Users}}
{{Navigation for Marauroa Users}}
Line 12: Line 4:


OK, you have successfully compiled Marauroa and are wondering what to do next?
OK, you have successfully compiled Marauroa and are wondering what to do next?
&lt;pre&gt;
<pre>
BUILD SUCCESSFUL
BUILD SUCCESSFUL
Total time: 3 seconds
Total time: 3 seconds
&lt;/pre&gt;
</pre>


Nice, isn't it?
Nice, isn't it?
Line 27: Line 19:
== Create a MySQL database and user ==
== Create a MySQL database and user ==
Run the sql client (bin/mysql.exe on the windows noinstall package).
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:
Replace <user> and <password> with the desired values and paste the following lines to the prompt that opens:
&lt;pre&gt;
<pre>
create database marauroa;
create database marauroa;
grant all on marauroa.* to &lt;user&gt;@localhost identified by '&lt;password&gt;';
grant all on marauroa.* to <user>@localhost identified by '<password>';
&lt;/pre&gt;
</pre>
It should produce output similar to this:
It should produce output similar to this:
&lt;pre&gt;
<pre>
Welcome to the MySQL monitor. Commands end with ; or \g.
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 1 to server version: 4.1.10
Your MySQL connection id is 1 to server version: 4.1.10
Line 39: Line 31:
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql&gt; create database marauroa;
mysql> create database marauroa;
Query OK, 1 row affected (0.03 sec)
Query OK, 1 row affected (0.03 sec)
mysql&gt; grant all on marauroa.* to stendhal_user@localhost identified by 'stendhal_passwd';
mysql> grant all on marauroa.* to stendhal_user@localhost identified by 'stendhal_passwd';
Query OK, 0 rows affected (0.00 sec)
Query OK, 0 rows affected (0.00 sec)
mysql&gt;
mysql>
&lt;/pre&gt;
</pre>


== Create server.ini file ==
== 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;
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.<br>
Please refer to game documentation about how to write it.
Please refer to game documentation about how to write it.


Line 57: Line 49:
=Running=
=Running=
Once you have it configured, just run the server by executing:
Once you have it configured, just run the server by executing:
&lt;pre&gt;
<pre>
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;
java -classpath .;mysql-connector-java-3.0.7-stable-bin.jar;log4j.jar;marauroa.jar marauroa.server.marauroad -c &lt;server.ini&gt;
&lt;/pre&gt;
</pre>


''NOTE'': On Unix use : instead of ; to define the classpath.
''NOTE'': On Unix use : instead of ; to define the classpath.
Line 65: Line 57:
''NOTE'': You may change what it is logged by default, so you need to edit the log4j.properties file.
''NOTE'': You may change what it is logged by default, so you need to edit the log4j.properties file.
For example:
For example:
&lt;pre&gt;
<pre>
# Set root logger level to DEBUG and its only appender to A1.
# Set root logger level to DEBUG and its only appender to A1.
log4j.rootLogger=INFO, Console, File
log4j.rootLogger=INFO, Console, File
Line 82: Line 74:
# way too much
# way too much
log4j.logger.marauroa.server.game.RPServerManager=WARN
log4j.logger.marauroa.server.game.RPServerManager=WARN
&lt;/pre&gt;
</pre>


Make sure that you have the MySQL server running too. Marauroa will build all the needed table structure for itself.
Make sure that you have the MySQL server running too. Marauroa will build all the needed table structure for itself.