InitialStepsWithMarauroa: Difference between revisions
Content deleted Content added
No edit summary |
No edit summary |
||
Line 1:
OK, you have successfully compiled Marauroa and are wondering what to do next?
<pre>
BUILD SUCCESSFUL
Total time: 3 seconds
</pre>
Nice, isn't it?
Line 9 ⟶ 10:
If you are none of the above it is possible you are looking for http://arianne.sourceforge.net instead.
Once we have built Arianne the next step is to setup the configuration file.
Each game must have a configuration file that will configure the server to run that particular game. Here is an example:
<pre>
# Please don't remove. Needed for test cases.
test_ATestString=ATestString
Line 60 ⟶ 61:
server_stats_directory=~/public_html
server_logs_directory=~/.marauroa
</
Let look at each section individually.
Our first item is *marauroa_DATABASE*, this attribute sets the type of database that you will use:
*
* JDBCPlayerDatabase, this is mainly a MySQL database. It won't run as-is on other SQL compliant databases because it uses MySQL features as special tables types to get transactions and auto_increment column types to generate pk.
Line 71 ⟶ 72:
The next section describes the connection string to the database.
* jdbc_url=jdbc:mysql://127.0.0.1/marauroa
* jdbc_class=com.mysql.jdbc.Driver
* jdbc_user=marauroa_dbuser
* jdbc_pwd=marauroa_dbpwd
Remember that to setup the database you need to log in to MySQL as administrator:
<pre>
mysql -u root
</pre>
And after that run:
<pre>
create database marauroa;
grant all on marauroa.* to marauroa_dbuser@<serverip> identified by 'marauroa_dbpwd';
</pre>
The marauroa_PORT section defines which TCP/IP port it will use.
The next section talks about the Role playing engine configuration:
Line 94 ⟶ 97:
* the1001
* mapacman
The gane should be set with server_typeGame
Line 102 ⟶ 106:
* server_logs_directory defines where to store the logs. Please keep this one safe and private.
Once you have it configured, just run the server by executing:
<pre>
java -classpath marauroa.jar;mysql-connector-java-3.0.7-stable-bin.jar marauroa.marauroad -c <game.ini> -l
</pre>
Make sure that you have the MySQL running too. Marauroa will build all the needed table structure for itself.
This will start Marauroa
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 -u <user> -p <password> -c <character> -e <email>
</pre>
For example in mapacman:
<pre>
mapacman.mapacmancreateaccount -u root -p pazzw0rd -c MaSSive -e root@localhost.com
</pre>
Each game has a different number of parameters, check them out with the -h parameter.
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>
Please read the client pages at http://arianne.sourceforge.net
| |||