tutorial on make leaked 7.7 files running
-
First download VmWare workstation or virtual box and install.
-
Now download CentOS 3.1 here: http://archive.kernel.org/centos-vault/3.1/isos/ download 3 disks and install in VmWare, I will not go into details about the Linux installation, you yourself must learn.
-
Install VMware tools in CentOS or install one ftpserver, is recomended VMware tools (faster).
-
Download server files. Now unpack gameserver. Copy folder game to
/home/
, you cannot have permission to put directly to this folder, unpack in /home/yourusername, now use this command in terminal:su mv /home/yourusername/game /home
and click enter, now your game folder is in/home
. -
One tip, if you are run
./game
in user root make this in terminal:cp /home/game/.tibia /root
. If you run in another user make this:cp /home/game/.tibia /home/yourusername/
-
Now is necessary run another linux in another virtual machine, Ubuntu 14.04 recommended.
-
Copy and paste database
otserv_schema_data.sql
to/home/yourusername
(you can make this because vmware tools already installed in ubuntu 14). After installing make this in terminal:sudo apt-get updated
. After make this:sudo apt-get install g++ libmysqlclient-dev mysql-server
. -
mysqlserver will question about pass of root user, choose one and install.
-
In terminal make this:
mysql -u root -p
and click enter, will be asked for your root password.CREATE USER 'otserv'@'localhost' IDENTIFIED BY 'password'; (password can be Cz7u89dmyPzHDNEL or another of your choise). GRANT ALL ON *.* TO 'otserv'@'%' IDENTIFIED BY 'passwordofyourchoise' WITH GRANT OPTION; FLUSH PRIVILEGES; USE otserv; source /home/yourusername/otserv_schema_data.sql;
-
Make this in terminal:
nano /etc/mysql/my.cnf
and edit this line:bind-address = 127.0.0.1
tobind-address = 0.0.0.0
. Now the database is ok.
-
Now copy querymanager folder to
/home/yourusername
, openMain.cpp
in text editor. -
Inside Main.cpp. If you created one password different you have to change password in all lines like this:
Database db("localhost", "otserv", "Cz7u89dmyPzHDNEL", "otserv");
fromCz7u89dmyPzHDNEL
to your password. -
Inside Main.cpp.
std::string q_world = "otserver"
change to"RealOTS"
-
Inside Main.cpp.
hton1(INADDR_LOOPBACK);
change toinet_addr("yourmachineip");
, this is used to connect querymanager to gameserver. -
Now go in your CentOS and make this in terminal:
ifconfig
, you can see your machine ip, get this ip.writeMsg.adByte(213); writeMsg.adByte(163); writeMsg.adByte(67); writeMsg.adByte(173);
-
Put your ip in order, example your ip is 192.168.20.10
change writeMsg.adByte(192); writeMsg.adByte(168); writeMsg.adByte(20); writeMsg.adByte(10);
-
This will determine which gameserver ip will listen. Save this and close.
-
in your terminal make this:
cd /home/yourusername/querymanager
. And make this:make
. Wait to compile new querymanager, after it ends type this:./querymanager
, now your querymanager is ok and listening in your machine ip and por 17778. -
Go to CentOS machine and make this:
nano /root/.tibia
if you using root user, ornano /home/youusername/.tibia
-
Change 127.0.0.1 to your Ubuntu ip where is it querymanager running:
QueryManager = {("127.0.0.1",17778,"nXE?/>j`"),("127.0.0.1",17778,"nXE?/>j`"),("127.0.0.1",17778,"nXE?/>j`"),("127.0.0.1",17778,"nXE?/>j`")}
-
CTRL + o
to save andCTRL + x
to close. -
Type this in terminal (as root):
cd /lib/tls/
, thenmv libc.so.6 libc.backup.so.6
andmv libpthread.so.0 libpthread.backup.so.0
-
Yet in terminal:
cd /home/game/bin
,./game
. Wait it connect to querymanager, if it was successfull you can see gameserver loading map files and monsters. Ok server online.
-
Download realotserloginserver posted by Yamaken, and compile (I will not teach this), after compiled edit
config.lua
, save and close:ip = "yourloginservermachineip" clientVersionMin = 770 clientVersionMax = 770 clientVersionStr = "7.70" mysqlhost = "ipofyourmysqlserver" mysqluser = "otserv" mysqlpass = "Cz7u89dmyPzHDNEL" (or you have chosen) mysqldatabase = "otserv"
-
Edit
gameservers.xml
, to<server id="0" name="RealOTS" ip="yourgameserverip" port="7172" />
, save and close, now run loginserver.
-
Open client 7.70 in xvi32 and edit ips in tibia.exe, tutorial here, do NOT change RSA key. DON'T USE IPCHANGER, ITS CHANGE RSA KEYS.
-
Now choose one account in database to login, enter and play.