Setting up a server
From TheManaWorld
- This article is about setting up your own TMW server, either for testing purposes or because you want to provide an alternative to the official server. There is a separate article about setting up eAthena.
Setting up tmwserv
There are several steps to do:
Running tmwserv
- Install and/or prepare your database backend
- Prepare configuration file tmwserv.xml
- Get tmwdata from Git and put it into the data directory where you will be running the game server from.
- Start the account server before starting the game server.
Making yourself a GM
This assumes that you are using sqlite as database backend (default) and that your accountname is "MyAccount". When you use another database backend you should be able to use the same SQL statements but you will need different tools to run them. Giving GM rights to an account with a name different from "MyAccount" is an exercise left to the reader :)
- Get sqlite3 from http://www.sqlite.org/download.html
- Put it into the tmwserv directory
- Open a command prompt inside the tmwserv directory
- Enter sqlite3 tmw.db "UPDATE tmw_accounts SET level=255 WHERE username='MyAccount';"
- You can check if you were successful by entering sqlite3 tmw.db "SELECT username, level FROM tmw_accounts;" (lists all accounts and their userlevels) or sqlite3 tmw.db "SELECT username FROM tmw_accounts WHERE level > 1;" (lists all gm accounts)
Note: Basic knowledge of SQL and how to use it is an important skill for a TMWServ administrator.
