InitialStepsWithMarauroa: Difference between revisions

Jump to navigation Jump to search
Content deleted Content added
imported>MiguelAngelBlanchLardin
imported>Kymara
m Create server.ini file: can't remember how to do wiki links, blah
 
(128 intermediate revisions by 10 users not shown)
Line 1: Line 1:
{{Navigation for Marauroa Top|Using}}
{{Navigation for Marauroa Users}}


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>
<pre>
Line 6: Line 10:


Nice, isn't it?
Nice, isn't it?
Basicly, if you have built a Marauroa server it must be because you either want to play with the server a bit yourself or because you want to run your own game server or because you are a developer who wishes to develop your own game.
Basically, if you have built a Marauroa server it must be because you either want to play with the server a bit yourself or because you want to run your own game server or because you are a developer who wishes to develop your own game.


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 you are none of the above it is possible you are looking for http://arianne.sourceforge.net instead.

If none of the above apply it is possible you are looking for http://arianne.sourceforge.net instead.


=Configuration=
=Configuration=
Line 36: Line 42:
== 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.
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.<br>
Please refer to your game documentation about how to write it.

Stendhal Documentation: [[VisualGuideToInstallingStendhalStep5]]


=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>
<pre>
java -classpath .;mysql-connector-java-3.0.7-stable-bin.jar;log4j.jar -jar marauroa.jar -c <game.ini>
java -classpath .;mysql-connector-java-3.0.7-stable-bin.jar;log4j.jar;marauroa.jar marauroa.server.marauroad -c &lt;server.ini&gt;
</pre>
</pre>


''NOTE'': On Linux use : instead of ; to define the classpath.
''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.
''NOTE'': You may change what it is logged by default, so you need to edit the log4j.properties file.
Line 68: Line 78:
</pre>
</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.
Make sure that you have the MySQL running too. Marauroa will build all the needed table structure for itself.


Now refer to game documentation about how to start the game server and how to create accounts and so on.
This will start Marauroa

=Creating accounts=
Before anything else, you MUST create accounts for your players. The idea is simple enough, you can even wrap it in to a webpage interface, much like we did with http://gladiators.game-server.cc
<pre>
<game>.<game>createaccount -i marauroa.ini -u <user> -p <password> -c <character> -e <email>
</pre>

For example in mapacman:
<pre>
mapacman.mapacmancreateaccount -i marauroa.ini -u root -p pazzw0rd -c MaSSive -e root@localhost.com
</pre>

For example in Stendhal:
[[InitialStepsWithStendhal |Initial Steps With Stendhal]]

=Testing=
To test that your connection is working use nullClient. It is a simple client that connects to the server, chooses a character and receives perceptions. If it works it means that everything else is also working.
<pre>
java -classpath marauroa.jar marauroa.nullClient root pazzw0rd MaSSive
</pre>


[[Category:Marauroa]]
=Playing with clients=
{{#breadcrumbs: [[Marauroa]] | [[Navigation for Marauroa Users|Using]] | [[InitialStepsWithMarauroa|Initial Steps]]}}
Please read the client pages at http://arianne.sourceforge.net