InitialStepsWithMarauroa: Difference between revisions
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 |
||
| (30 intermediate revisions by 3 users not shown) | |||
Line 1:
{{Navigation for Marauroa Top|Using}}
{{Navigation for Marauroa Users}}
Line 12 ⟶ 4:
OK, you have successfully compiled Marauroa and are wondering what to do next?
BUILD SUCCESSFUL
Total time: 3 seconds
Nice, isn't it?
Line 27 ⟶ 19:
== Create a MySQL database and user ==
Run the sql client (bin/mysql.exe on the windows noinstall package).
Replace
create database marauroa;
grant all on marauroa.* to
It should produce output similar to this:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 1 to server version: 4.1.10
Line 39 ⟶ 31:
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql
Query OK, 1 row affected (0.03 sec)
mysql
Query OK, 0 rows affected (0.00 sec)
mysql
== 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 game application to generate it.<br>▼
Please refer to game documentation about how to write it.▼
▲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.
▲Please refer to your game documentation about how to write it.
Stendhal Documentation: [[VisualGuideToInstallingStendhalStep5]]
Line 57 ⟶ 51:
=Running=
Once you have it configured, just run the server by executing:
java -classpath .;mysql-connector-java-3.0.7-stable-bin.jar;log4j.jar;marauroa.jar marauroa.server.marauroad -c &
''NOTE'': On Unix use : instead of ; to define the classpath.
Line 65 ⟶ 59:
''NOTE'': You may change what it is logged by default, so you need to edit the log4j.properties file.
For example:
# Set root logger level to DEBUG and its only appender to A1.
log4j.rootLogger=INFO, Console, File
Line 82 ⟶ 76:
# way too much
log4j.logger.marauroa.server.game.RPServerManager=WARN
Make sure that you have the MySQL server running too. Marauroa will build all the needed table structure for itself.
| |||