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

TFS 1.X+ kick problem when activating ping option in otc tfs 1.5 otv8

bpm91

Intermediate OT User
Joined
May 23, 2019
Messages
942
Solutions
7
Reaction score
130
Location
Brazil
YouTube
caruniawikibr
Hi guys I will try to explain as exemplified as possible.
I'm trying to enable the ping option on my otcv8. however i am using version 7.72 tfs 1.5 nekiro downgrade. ie it is a downgrade from version 8.60
however when I add this option the ping appears, but the character drops every X time. would it be something in tfs to be fixed or added or implemented?
i add option

XML:
 if(version >= 770) then
        g_game.enableFeature(GameLooktypeU16)
        g_game.enableFeature(GameMessageStatements)
        g_game.enableFeature(GameLoginPacketEncryption)
        g_game.enableFeature(GamePlayerAddons)
        g_game.enableFeature(GameNewOutfitProtocol)
    This line---->    g_game.enableFeature(GameClientPing)   <<<<---
 
Depending on your sources, the ping packet process in sources was changed around 8v somwehre.

So You either need to enable the ping feature and then add the sorrce ping/pong in sources

You'll want to check this function:

And if you're using older protocols, change this to support OTC and/or to use the old ping packet data.

Something like this

C++:
void ProtocolGame::sendPing()
{
    NetworkMessage msg;
    if (player->getOperatingSystem() >= CLIENTOS_OTCLIENT_LINUX) {
        msg.addByte(0x1D);
    } else {
        // classic clients ping
        msg.addByte(0x1E);
    }
    writeToOutputBuffer(msg);
}

Not sending the right ping back will dc from OTC every 10 seconds or so.
 
Back
Top