Due to a sudden resurgence of people interested in hosting the leaked 7.7 server, I came up with a script to automate all the steps outlined in the excellent
tutorial by
@Crevasse, and also took the opportunity to make some improvements to work on a more recent version of Ubuntu.
All you need to do is to install Ubuntu in a VM, download the required files and run the scripts.
1. Install Ubuntu 22.04.2 LTS (64 bits) on a virtual machine with VirtualBox
Simply follow this easy tutorial from
Ubuntu, then configure your VM with the recommended settings below:
- 8 GB of RAM
- 2 CPU cores
- 25 GB of disk space
- Network settings should be configured to use Bridged Adapter, so the VM will get an IP similar to your host PC (e.g.: 192.168.x.x)
Once Ubuntu is up and running, you might want to give sudo permissions to your user, which can be done by running the commands below in a terminal:
Code:
su -
sudo adduser $(whoami) sudo
reboot
2. Download all required files
Go to
Crevasse's post and download all attached files. You should have 6 mandatory files and 1 optional:
Also, download the "ot-scripts-xxx.zip" attached to my post and extract all scripts.
3. Install the server
Make sure all files above are in the same folder on your VM. If you run
ls -1
, your directory should look like this:
Code:
dennis-libraries.rar
game
install.sh
otserv_schema_data.rar
realotsloginserver-master.zip
realots-query-manager-master.zip
realots-schema-inc-players.zip
start-game-server.sh
start-login-server.sh
start-query-manager.sh
tibia-game.tarball.tar.gz
Run the commands below, which is giving execution permission to all scripts and running the install script:
Code:
sudo chmod +x install.sh start-query-manager.sh start-game-server.sh start-login-server.sh
sudo ./install.sh
Note: the script will ask you to enter a password for the MySQL database user. You can also pass it as an argument to the script, e.g.:
sudo ./install.sh mypassword
The installation will take about 5 minutes, depending on your resources and Internet connection.
4. Run all services
I've included scripts to run the different services required.
Simply run the following commands (in that order) to start up all the services to serve the game,
each one in its own terminal:
Code:
sudo ./start-query-manager.sh
sudo ./start-game-server.sh
sudo ./start-login-server.sh
5. Customise the 7.70 client
In case you don't want to use an IP changer, you can edit the client to point to your VM server.
Code:
test.cipsoft.com
server.tibia.com
server2.tibia.com
tibia1.cipsoft.com
tibia2.cipsoft.com
Note: make sure you replace the remaining characters with 00 bytes. Check this post for more details:
Configuration - [Tutorial] Make your custom Tibia Client. (https://otland.net/threads/tutorial-make-your-custom-tibia-client.65/)
6. Log in (and have fun)
- On your VM, open the browser and go to http://localhost/phpmyadmin
- Sign in with the username "otserv" and the password you provided to this install script
- Click on the "otserv" database, then the "users" table
- You can use any "login" and "passwd" to log in to an account on the client
Future improvements
Some ideas for the community to improve this even further:
- Provide a docker with everything already set up
- Provide the download link to a VM with everything pre-installed
- Automate the step of editing the client hex
- Document known issues
- When installing packages, use static versions to avoid breaking changings when downloading recent libs
- Improve security
- Provide all files in a single zip
- Automatically download files if they don't exist
- Turn it into an installer
- Include a GUI for creating accounts
- Add instructions to securely set it up for others to join your server