• 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!

Exaltation forge otland tfs

Katherine

New Member
Joined
Sep 12, 2011
Messages
6
Solutions
1
Reaction score
1
Hi guys.. I am back to tibia from 10 years absent and now i see many good things on it.
Was looked inside code and didn't found any distro with Equipment upgrade things

i ran tibia 12 client and looking for this
1659118826282.png

as you can see client don't understand how much items player got...


ok so first step is send bytes to server to get client request
so this is how we can easy debug
Lua:
function onRecvbyte(player, msg, byte)
    print("recieved byte: " .. byte)
    print(msg)
    print("==============")
end


and we got this in console:



Code:
recieved byte: 237
userdata: 0x42594768
==============
recieved byte: 237
userdata: 0x42594810
==============
recieved byte: 237
userdata: 0x425948b8
==============
recieved byte: 237
userdata: 0x42594960
==============
recieved byte: 237
userdata: 0x42594a08
==============
recieved byte: 192
userdata: 0x42594ab0
==============


2. Filtered 237 = 0xED because other buttons uses it too, we will do some updates later.
But now we look "unique" button id (if we can say that).. is 192 = 0xC0

So now we must answer to client with some data to set information about allowed items etc etc...
Who maybe working on it or have some info? Or maybe it already done?
 
I have it fully functional except for saving history to the database, but I made a lot of source edits so don't expect it to work on clean tfs

I also have plans to move parsing to c++ so keep in mind that this isn't final version
 
So nice🥰 to see that you are very smart and i understand how much time you lost to catch every byte.. Uhhh :eek:

WOW
my next question was about tournament but now i see answers lol
I LOVE YOU!!!!!!!!!

Lua:
        //case 0xBF: break; // exaltation forge (scripted)
        //case 0xC0: break; //request forge history (scripted)
        // 0xC1-0xC2 - empty
        // 0xC3 - tournament ui 1
        // 0xC4 - tournament ui 2
        // 0xC5 - empty
        // 0xC6 - tournament ui 3
        // 0xC7 - tournament ui 4
        // 0xC8 - tournament ui 5


Just say if i will finish "history" for forge upgrades may it help you ? I don't have any server and living in Ukraine so any time a bomb can destroy my house lol... just coding on home pc cuz a lot of free time
 
Last edited:
Just say if i will finish "history" for forge upgrades may it help you ?
it could help

I haven't decided on how to handle the database yet (to keep it compatible with clean tfs) so I decided to do edit other systems first.
 
I have it fully functional except for saving history to the database, but I made a lot of source edits so don't expect it to work on clean tfs

I also have plans to move parsing to c++ so keep in mind that this isn't final version
any way to add the changes to my otbr source code?
 
what is this otbr?
otservbr-global - RL Tibia server 12+ (map, quests, systems ex. autoloot). A bit buggy, but with a lot of features from 12+.
Engine:
Datapack (RL map 12+ compatible with 'canary' engine):
 
yea and if do this
<module type="recvbyte" byte="192" script="forge1280/000_constants.lua" />
<module type="recvbyte" byte="192" script="forge1280/010_config.lua" />
<module type="recvbyte" byte="192" script="forge1280/020_functions.lua" />
<module type="recvbyte" byte="192" script="forge1280/030_protocol.lua" />
<module type="recvbyte" byte="192" script="forge1280/040_monsters.lua" />
<module type="recvbyte" byte="192" script="forge1280/050_find_fiend_spell.lua" />
it got bugged with unknown functions.. but strange if otbr based on tfs need to some code c++ i think


i got tested
Bash:
[2022-10-08 10:05:49.128] [error] Lua script error:
scriptInterface: [Test Interface]
scriptId: [data/modules/scripts/forge1280/000_constants.lua]
timerEvent: []
 callbackId:[]
function: []
error [data/modules/scripts/forge1280/000_constants.lua:5: attempt to perform arithmetic on global 'RESOURCE_FORGE_DUST' (a nil value)
stack traceback:
        [C]: in function '__add'
        data/modules/scripts/forge1280/000_constants.lua:5: in main chunk]
[2022-10-08 10:05:49.129] [warning] [Event::checkScript] - Can not load script: scripts/forge1280/000_constants.lua
[2022-10-08 10:05:49.129] [error]
[2022-10-08 10:05:49.130] [error] Lua script error:
scriptInterface: [Test Interface]
scriptId: [data/modules/scripts/forge1280/010_config.lua]
timerEvent: []
 callbackId:[]
function: []
error [data/modules/scripts/forge1280/010_config.lua:65: table index is nil
stack traceback:
        [C]: in function '__newindex'
        data/modules/scripts/forge1280/010_config.lua:65: in main chunk]
[2022-10-08 10:05:49.130] [warning] [Event::checkScript] - Can not load script: scripts/forge1280/010_config.lua
[2022-10-08 10:05:49.130] [error]
[2022-10-08 10:05:49.132] [error] Lua script error:
scriptInterface: [Test Interface]
scriptId: [data/modules/scripts/forge1280/020_functions.lua]
timerEvent: []
 callbackId:[]
function: []
error [data/modules/scripts/forge1280/020_functions.lua:2: attempt to call global 'getForgeMeta' (a nil value)
stack traceback:
        [C]: in function 'getForgeMeta'
        data/modules/scripts/forge1280/020_functions.lua:2: in main chunk]
[2022-10-08 10:05:49.132] [warning] [Event::checkScript] - Can not load script: scripts/forge1280/020_functions.lua
[2022-10-08 10:05:49.132] [error]
[2022-10-08 10:05:49.133] [error] Lua script error:
scriptInterface: [Test Interface]
scriptId: [data/modules/scripts/forge1280/030_protocol.lua]
timerEvent: []
 callbackId:[]
function: []
error [data/modules/scripts/forge1280/030_protocol.lua:61: attempt to call global 'setPacketEvent' (a nil value)
stack traceback:
        [C]: in function 'setPacketEvent'
        data/modules/scripts/forge1280/030_protocol.lua:61: in main chunk]
[2022-10-08 10:05:49.134] [warning] [Event::checkScript] - Can not load script: scripts/forge1280/030_protocol.lua
[2022-10-08 10:05:49.134] [error]
[2022-10-08 10:05:49.135] [error] Lua script error:
scriptInterface: [Test Interface]
scriptId: [data/modules/scripts/forge1280/040_monsters.lua]
timerEvent: []
 callbackId:[]
function: []
error [data/modules/scripts/forge1280/040_monsters.lua:211: attempt to index local 'ec' (a nil value)
stack traceback:
        [C]: in function '__newindex'
        data/modules/scripts/forge1280/040_monsters.lua:211: in main chunk]
[2022-10-08 10:05:49.136] [warning] [Event::checkScript] - Can not load script: scripts/forge1280/040_monsters.lua
[2022-10-08 10:05:49.136] [error]
[2022-10-08 10:05:49.137] [warning] [Event::checkScript] - Event onRecvbyte not found scripts/forge1280/050_find_fiend_spell.lua
 
if otbr based on tfs need to some code c++ i think
OTBR didn't base their tiers code on TFS. Both engines developed their own implementation of tiers after 12.80 update which is why this code it may be hard to port.
Both codes are independent - not based on each other. Some of us only exchanged packet structure info.

Otland TFS tiers implementation is loosely based on my fork, but it's mostly just workarounds to get it working, no actual functionality.

I finished moving packets parsing to c++ btw. setPacketEvent is no longer used for forge
 
I have it fully functional except for saving history to the database, but I made a lot of source edits so don't expect it to work on clean tfs

I also have plans to move parsing to c++ so keep in mind that this isn't final version
Will the final content of the exaltation forge be public? I would like to test it...
 
Back
Top