InitialStepsWithMarauroa: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
imported>Ufizavipupu No edit summary |
imported>Kymara m →Create server.ini file: can't remember how to do wiki links, blah |
||
| (27 intermediate revisions by 3 users not shown) | |||
| 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? |
||
<pre> |
|||
BUILD SUCCESSFUL |
BUILD SUCCESSFUL |
||
Total time: 3 seconds |
Total time: 3 seconds |
||
</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 |
Replace <user> and <password> with the desired values and paste the following lines to the prompt that opens: |
||
<pre> |
|||
create database marauroa; |
create database marauroa; |
||
grant all on marauroa.* to |
grant all on marauroa.* to <user>@localhost identified by '<password>'; |
||
</pre> |
|||
It should produce output similar to this: |
It should produce output similar to this: |
||
<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 |
mysql> create database marauroa; |
||
Query OK, 1 row affected (0.03 sec) |
Query OK, 1 row affected (0.03 sec) |
||
mysql |
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 |
mysql> |
||
</pre> |
|||
== Create server.ini file == |
== 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. |
|||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
Stendhal Documentation: [[VisualGuideToInstallingStendhalStep5]] |
Stendhal Documentation: [[VisualGuideToInstallingStendhalStep5]] |
||
| Line 57: | Line 51: | ||
=Running= |
=Running= |
||
Once you have it configured, just run the server by executing: |
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 & |
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'': On Unix use : instead of ; to define the classpath. |
||
| Line 65: | Line 59: | ||
''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: |
||
<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 76: | ||
# way too much |
# way too much |
||
log4j.logger.marauroa.server.game.RPServerManager=WARN |
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. |
Make sure that you have the MySQL server running too. Marauroa will build all the needed table structure for itself. |
||