Configuration file server.ini: Difference between revisions

Content deleted Content added
imported>Hendrik Brummermann
layout
imported>Hendrik Brummermann
No edit summary
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. Nevertheless it may be interesting to know which parameter exist and how they can be set.
 
== 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
'''database_adapter'''=marauroa.server.db.adapter.H2DatabaseAdapter
'''jdbc_url'''=jdbc:h2:~/''stendhal/database/marauroa-h2db'';AUTO_RECONNECT=TRUE;DB_CLOSE_ON_EXIT=FALSE;AUTO_SERVER=TRUE
'''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
'''jdbc_url'''=jdbc:mysql://''localhost''/''marboardmarauroa''
'''jdbc_class'''=com.mysql.jdbc.Driver
'''jdbc_user'''=''username''
Line 21 ⟶ 27:
'''world'''=games.stendhal.server.core.engine.StendhalRPWorld
'''ruleprocessor'''=games.stendhal.server.core.engine.StendhalRPRuleProcessor
'''python_script'''=
 
== Server ==
 
'''tcp_port'''=32160
'''turn_length'''=300
'''statistics_filename'''=./server_stats.xml
'''log4j_url'''=marauroa/server/log4j.properties
 
'''server_typeGame'''=stendhal
'''server_service'''=stendhal
'''server_name'''=Stendhal server
'''server_version'''=0.81
'''server_contact'''=<nowiki>https://sourceforge.net/tracker/?atid=514826&group_id=66537&func=browse</nowiki>
 
 
== Limits ==
 
'''allowed_bytes_per_second'''=10000001024
'''allowed_messages_per_second'''=1000020
'''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
 
== OtherRSA ==
'''n'''=2408376769632966826891253753617412746862686794740723175774423430043927850498085639220684795629747326949838501777926669337171495421818563824539329224927899179237
'''e'''=15