InstallingStendhal: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
imported>Zzorn |
imported>MiguelAngelBlanchLardin |
||
| Line 44: | Line 44: | ||
== |
== Create Marauroa.ini file == |
||
To create the marauroa.ini file you need to can write it by hand, copy from another place or use our application to generate it.<br> |
|||
Fill in the correct values for the database related fields in the marauroa.ini file. |
|||
To launch the application that will generate the marauroa.ini file write: |
|||
<pre> |
|||
java -cp marauroa-XXX.jar marauroa.server.generateini |
|||
</pre> |
|||
It is a text application that will ask you for values. Let's see it. |
|||
For example, like this: |
|||
<pre> |
|||
Marauroa - arianne's open source multiplayer online framework for game developme |
|||
nt - |
|||
(C) 1999-2005 Miguel Angel Blanch Lardin |
|||
This program is free software; you can redistribute it and/or modify |
|||
marauroa_DATABASE=JDBCPlayerDatabase |
|||
it under the terms of the GNU General Public License as published by |
|||
jdbc_url=jdbc:mysql://127.0.0.1/stendhal |
|||
the Free Software Foundation; either version 2 of the License, or |
|||
jdbc_class=com.mysql.jdbc.Driver |
|||
(at your option) any later version. |
|||
jdbc_user=stendhal_user |
|||
jdbc_pwd=stendhal_passwd |
|||
This program is distributed in the hope that it will be useful, |
|||
but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
GNU General Public License for more details. |
|||
You should have received a copy of the GNU General Public License |
|||
along with this program; if not, write to the Free Software |
|||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|||
Write name of the .ini file (marauroa.ini): |
|||
Using "marauroa.ini" as .ini file |
|||
Write name of the database (marauroa): stendhal |
|||
Using "stendhal" as database name |
|||
Write name of the database host (localhost): |
|||
Using "localhost" as database host |
|||
Write name of the database user (marauroa_user): stendhal_user |
|||
Using "stendhal_user" as database user |
|||
Write value of the database user password (marauroa_pass): stendhal_passwd |
|||
Using "stendhal_passwd" as database user password |
|||
In order to make efective these options please run: |
|||
# mysql |
|||
create database stendhal; |
|||
grant all on stendhal.* to stendhal_user@localhost identified by 'stendhal_pas |
|||
swd'; |
|||
exit |
|||
Write UDP port used by Marauroa (>1024): 32160 |
|||
Using "32160" as database user password |
|||
Marauroa is a server middleware to run multiplayer games. You need toadd a game |
|||
to the system so that server can work. Actually Arianne has implemented several |
|||
games: |
|||
- stendhal |
|||
- mapacman |
|||
- the1001 |
|||
If you write your own game, just write it name here. |
|||
You will be asked for more info. |
|||
Write name of the game server will run: stendhal |
|||
Using "stendhal" as game |
|||
Setting RPWorld and RPRuleProcessor for Stendhal |
|||
Make sure Marauroa can find in CLASSPATH the folder games/stendhal/* |
|||
NOTE: Copy games generated in stendhal inside folder that contains marauroa.jar |
|||
file |
|||
Write turn time duration in milliseconds (200<time<1000)): 300 |
|||
Using turn of "stendhal" milliseconds |
|||
Write path for logs generation (./)): |
|||
Using path "./" for log generation |
|||
Write path for statistics generation (./)): |
|||
Using path "./" for statistics generation |
|||
COMPLETE--- |
|||
Generating "marauroa.ini" file |
|||
Generated. |
|||
</pre> |
|||
== Copy Stendhal to the Maraurora classpath == |
== Copy Stendhal to the Maraurora classpath == |
||