Configuration file server.ini

From Arianne
Revision as of 19:30, 22 February 2010 by imported>Hendrik Brummermann (layout)
Jump to navigation Jump to search

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.

Database Configuration

# example database connection to H2
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_class=org.h2.Driver
# example database connection for MySQL
jdbc_url=jdbc:mysql://localhost/marboard
jdbc_class=com.mysql.jdbc.Driver
jdbc_user=username
jdbc_pwd=password

Game Configuration

# game specific setting
database_implementation=games.stendhal.server.core.engine.StendhalPlayerDatabase
factory_implementation=games.stendhal.server.core.engine.StendhalRPObjectFactory
world=games.stendhal.server.core.engine.StendhalRPWorld
ruleprocessor=games.stendhal.server.core.engine.StendhalRPRuleProcessor

Server

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


Limits

allowed_bytes_per_second=1000000
allowed_messages_per_second=10000

Other

# TCP port stendhald will use. 
tcp_port=32160
turn_length=300
statistics_filename=./server_stats.xml
n=2408376769632966826891253753617412746862686794740723175774423430043927850498085639220684795629747326949838501777926669337171495421818563824539329224927899179237
e=15
d=2247818318324102371765170170042918563738507675091341630722795201374332660464879838332237004076252849654527963214772652641735279016325354691167883850414929419335


Marauroa