Configuration file server.ini: Difference between revisions

Jump to navigation Jump to search
Content deleted Content added
imported>Hendrik Brummermann
layout
imported>Hendrik Brummermann
No edit summary
Line 1: Line 1:
The server is configured using a configuration file called server.ini. It is possible to use a different file using the -c command line parameter. In most cases the game will provide a GenerateINI program that you should execute to generate the server.ini file.
The server is configured using a configuration file called server.ini. It is possible to use a different file using the -c command line parameter. In most cases the game will provide a '''GenerateINI''' program that you should execute to generate the server.ini file. Nevertheless it may be interesting to know which parameter exist and how they can be set.


== Database Configuration ==
== Database Configuration ==

Marauroa needs access to a database. MySQL and H2 are actively supported and tested. Other database may work too, perhaps with a few tweaks.

H2 is cool because it works out of the box without having to setup a database server: You just need to specify a filename which will be created automatically. In this example it is called marauroa-h2db and the "~" means that it is created in your home folder.


# example database connection to H2
# example database connection to H2
'''database_adapter'''=marauroa.server.db.adapter.H2DatabaseAdapter
'''database_adapter'''=marauroa.server.db.adapter.H2DatabaseAdapter
'''jdbc_url'''=jdbc:h2:~/''stendhal/database/h2db'';AUTO_RECONNECT=TRUE;DB_CLOSE_ON_EXIT=FALSE;AUTO_SERVER=TRUE
'''jdbc_url'''=jdbc:h2:~/''marauroa-h2db'';AUTO_RECONNECT=TRUE;DB_CLOSE_ON_EXIT=FALSE;AUTO_SERVER=TRUE
'''jdbc_class'''=org.h2.Driver
'''jdbc_class'''=org.h2.Driver

MySQL is a classical database server. As such it has to be setup separately. After creating a database and a user you can configure it like this:


# example database connection for MySQL
# example database connection for MySQL
'''jdbc_url'''=jdbc:mysql://''localhost''/''marboard''
'''jdbc_url'''=jdbc:mysql://''localhost''/''marauroa''
'''jdbc_class'''=com.mysql.jdbc.Driver
'''jdbc_class'''=com.mysql.jdbc.Driver
'''jdbc_user'''=''username''
'''jdbc_user'''=''username''
Line 21: Line 27:
'''world'''=games.stendhal.server.core.engine.StendhalRPWorld
'''world'''=games.stendhal.server.core.engine.StendhalRPWorld
'''ruleprocessor'''=games.stendhal.server.core.engine.StendhalRPRuleProcessor
'''ruleprocessor'''=games.stendhal.server.core.engine.StendhalRPRuleProcessor
'''python_script'''=


== Server ==
== Server ==

'''tcp_port'''=32160
'''turn_length'''=300
'''statistics_filename'''=server_stats.xml
'''log4j_url'''=marauroa/server/log4j.properties


'''server_typeGame'''=stendhal
'''server_typeGame'''=stendhal
'''server_service'''=stendhal
'''server_name'''=Stendhal server
'''server_name'''=Stendhal server
'''server_version'''=0.81
'''server_version'''=0.81
'''server_contact'''=<nowiki>https://sourceforge.net/tracker/?atid=514826&group_id=66537&func=browse</nowiki>
'''server_contact'''=<nowiki>https://sourceforge.net/tracker/?atid=514826&group_id=66537&func=browse</nowiki>



== Limits ==
== Limits ==


'''allowed_bytes_per_second'''=1000000
'''allowed_bytes_per_second'''=1024
'''allowed_messages_per_second'''=10000
'''allowed_messages_per_second'''=20
'''max_number_of_players'''=128
'''parallel_connection_limit'''=10
'''ip_whitelist'''=127.0.0.1


== Other ==

# TCP port stendhald will use.
'''tcp_port'''=32160
'''turn_length'''=300
'''statistics_filename'''=./server_stats.xml


== RSA ==
'''n'''=2408376769632966826891253753617412746862686794740723175774423430043927850498085639220684795629747326949838501777926669337171495421818563824539329224927899179237
'''n'''=2408376769632966826891253753617412746862686794740723175774423430043927850498085639220684795629747326949838501777926669337171495421818563824539329224927899179237
'''e'''=15
'''e'''=15