• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

Tibia 7.7 Server Decompiled

fusion32

Intermediate OT User
Joined
Jun 7, 2010
Messages
39
Solutions
2
Reaction score
113
A couple months ago, I set out to decompile the leaked 7.7 server binary. One of the reasons being to have an insight into the original design of Tibia, but with the plus of tripping all the folks gate-keeping it. Now, this is not a replacement for regular OpenTibia servers. The leak itself contains only the game server which operates with different file formats, rules, mechanics, bugs, etc. I expect it to also contain at least a few typos and translation bugs from the decompilation so it's not ready at all for a production environment.

It was designed with a distributed infrastructure in mind meaning it supports/expects running on a different machine than the login server and database. The game server alone won't do much so I also had to write a few supporting services to get everything running. The central piece of the puzzle is the query manager which needs to run alongside the game server, but in this case was designed to be the database itself for simple single world setups.

For obvious reasons, everything will only compile on Linux. A Windows port is technically possible but would require design changes, which I'm not really interested at the moment, nor would have a lot of value, considering that most dedicated servers run Linux. I won't dwell further on how things work. The source code should be very readable and all repositories will contain a minimal README file to compile and setup each server as a service. The only dependency is OpenSSL's libcrypto which should be straightforward to get installed on most Linux distros.

I set everything up at https://kaplar.net to do some testing and to check if would actually run on a real Linux distro instead of WSL. It will remain online for roughly a month if anyone is interested in testing it, but will require a custom RSA key (hence the ipchanger). I don't expect anything in return except for bug reports. I also don't know if Cipsoft would have a problem with it, although there is always a chance so keep that in mind.

Anyway, there you have it. Have fun.

REPOSITORIES:
 
Wow this is really cool. I'll try to make some testings. Kudos for you.

I would love to see it dockerized
 
Last edited:
I published a branch with 7.4 mechanics. The map still needs to be reworked for 7.4.

A bunch of new 7.4 servers 😀soon there will be a map editor also heard someone adding otbm compatibility 😅😅😆
 
This is amazing!
Since @kay started talking about reverse engineering (or decompilation for those who got offended in other thread), I have started something like this for four or five times to figure out how CIP used to implement things... But I never got too far!
Seeing this released feels like a mission accomplished for me. Thanks for that!


@0lo
I was checking your 7.4 changes. What are these changes in ChangeSkill? Like, was it harder to level up skills in 7.4 compared to 7.7?
It’s really funny to realize this nowadays. I used to play back then but never really felt it in the gameplay.
I only remember the mana requirements


@Olddies oh please, no!! this is the chance to we get rid of otbm 😅
 
@0lo
I was checking your 7.4 changes. What are these changes in ChangeSkill? Like, was it harder to level up skills in 7.4 compared to 7.7?
It’s really funny to realize this nowadays. I used to play back then but never really felt it in the gameplay.
I only remember the mana requirements
This post (contains corrected NPC pack in attachment) was an example of what should be changed and I followed the comments of other users as well as chatgpt.
I'm also thinking about preparing a pack of monsters with improved experience and approximate loot based on the notes from the tibia.com archive with changes in 7.4.
 
Last edited:
How unfortunate this comment is
why?
Post automatically merged:

A couple months ago, I set out to decompile the leaked 7.7 server binary. One of the reasons being to have an insight into the original design of Tibia, but with the plus of tripping all the folks gate-keeping it. Now, this is not a replacement for regular OpenTibia servers. The leak itself contains only the game server which operates with different file formats, rules, mechanics, bugs, etc. I expect it to also contain at least a few typos and translation bugs from the decompilation so it's not ready at all for a production environment.

It was designed with a distributed infrastructure in mind meaning it supports/expects running on a different machine than the login server and database. The game server alone won't do much so I also had to write a few supporting services to get everything running. The central piece of the puzzle is the query manager which needs to run alongside the game server, but in this case was designed to be the database itself for simple single world setups.

For obvious reasons, everything will only compile on Linux. A Windows port is technically possible but would require design changes, which I'm not really interested at the moment, nor would have a lot of value, considering that most dedicated servers run Linux. I won't dwell further on how things work. The source code should be very readable and all repositories will contain a minimal README file to compile and setup each server as a service. The only dependency is OpenSSL's libcrypto which should be straightforward to get installed on most Linux distros.

I set everything up at https://kaplar.net to do some testing and to check if would actually run on a real Linux distro instead of WSL. It will remain online for roughly a month if anyone is interested in testing it, but will require a custom RSA key (hence the ipchanger). I don't expect anything in return except for bug reports. I also don't know if Cipsoft would have a problem with it, although there is always a chance so keep that in mind.

Anyway, there you have it. Have fun.

REPOSITORIES:
where to get your client? in order to check the server or i havfe to access with normal client + ipchanger?
Post automatically merged:

tried to log in with otland ipchanger + normal 770 client cannot klog in to server

using this ip https://kaplar.net or just kaplar.net does not matter same message same with this ip 137.184.216.38

LUA:
ping kaplar.net

Haciendo ping a kaplar.net [137.184.216.38] con 32 bytes de datos:
Respuesta desde 137.184.216.38: bytes=32 tiempo=158ms TTL=50
Respuesta desde 137.184.216.38: bytes=32 tiempo=138ms TTL=50
Respuesta desde 137.184.216.38: bytes=32 tiempo=141ms TTL=50
Respuesta desde 137.184.216.38: bytes=32 tiempo=142ms TTL=50
 
Last edited:
You need to change the RSA Key:

LUA:
121793809226659874120563434457378290680712961255388163335981998802810198001060741960884620303767165808945553490232384319640949111025960594429556046947046669780460678698731721332300359415965143790954689620894727453642602895794899765974634449445059302407051484378870077027957637912083504181824460210859132357393
 
Back
Top