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 |
||
| (133 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? |
||
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. |
|||
| ⚫ | |||
| ⚫ | |||
=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. |
|||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
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 |
java -classpath .;mysql-connector-java-3.0.7-stable-bin.jar;log4j.jar;marauroa.jar marauroa.server.marauroad -c <server.ini> |
||
</pre> |
</pre> |
||
''NOTE'': On |
''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 |
''NOTE'': You may change what it is logged by default, so you need to edit the log4j.properties file. |
||
| ⚫ | |||
* server_logs_allowed |
|||
* server_logs_rejected |
|||
Allowed is a semicolon(;) separated list of strings that defines what is allowed to be logged only if it starts with any of the strings allowed contains. If allows contains a * it will log everything. For example: |
|||
<pre> |
<pre> |
||
# Set root logger level to DEBUG and its only appender to A1. |
|||
server_logs_allowed=Stendhal |
|||
log4j.rootLogger=INFO, Console, File |
|||
</pre> |
|||
It will log everything whose location begins with Stendhal. In Marauroa every log has a location that generated the logged event and a level of that event, as well as a extra description of the event. For Example: |
|||
<pre> |
|||
2005-04-15 22:20:02.843 (7) > StendhalRPZone::populate |
|||
2005-04-15 22:20:02.859 (7) D StendhalRPZone::populate Adding SIGN: RPObject with Attributes of Class(sign): [text=Talk to Nishiya to buy a sheep!.|He will offer you a nice price.][zoneid=village][type=sign][y=27.0][x=26.0][id=1] and RPSlots |
|||
2005-04-15 22:20:02.859 (7) D StendhalRPZone::populate Adding NPC seller: RPObject with Attributes of Class(sellernpc): [zoneid=village][dx=0][type=sellernpc][y=28.0][dy=0][name=Nishiya][id=2][x=29.0] and RPSlots |
|||
</pre> |
|||
# Paste all logger entries with a threshold of WARN to the console |
|||
On a similar way works Rejected that is a semicolon(;) separated list of strings that simply reject for being logged everything that starts by any of the strings rejected contains. For example: |
|||
log4j.appender.Console=org.apache.log4j.ConsoleAppender |
|||
<pre> |
|||
log4j.appender.Console.layout=org.apache.log4j.PatternLayout |
|||
server_logs_rejected=StendhalRPRuleProcessor::endTurn;StendhalRPRuleProcessor::beginTurn |
|||
log4j.appender.Console.layout.ConversionPattern=%-4r %-5p %c %x - %m%n |
|||
</pre> |
|||
log4j.appender.File=org.apache.log4j.DailyRollingFileAppender |
|||
log4j.appender.File.File=server.log |
|||
log4j.appender.File.layout=org.apache.log4j.PatternLayout |
|||
log4j.appender.File.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n |
|||
# Disabled debug messages for stendhal...some 10 thousand logs each minute is |
|||
# way too much |
|||
| ⚫ | |||
log4j.logger.marauroa.server.game.RPServerManager=WARN |
|||
| ⚫ | |||
=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> |
</pre> |
||
| ⚫ | |||
| ⚫ | |||
<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]] |
|||
Now refer to game documentation about how to start the game server and how to create accounts and so on. |
|||
=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 |
|||