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

OTClient OTC Addon outfits problem [TFS 1.2]

armyman

Member
Joined
Feb 15, 2014
Messages
318
Reaction score
14
Server version: 7.72
using downgraded [TFS] 1.2

My OTC game.cpp

C++:
void Game::setClientVersion(int version)
{
    if(m_clientVersion == version)
        return;

    if(isOnline())
        stdext::throw_exception("Unable to change client version while online");

    if(version != 0 && (version < 740 || version > 1099))
        stdext::throw_exception(stdext::format("Client version %d not supported", version));

    m_features.reset();
    enableFeature(Otc::GameFormatCreatureName);

    if(version >= 770) {
        enableFeature(Otc::GameLooktypeU16);
        enableFeature(Otc::GameClientPing);
        enableFeature(Otc::GameMessageStatements);
        enableFeature(Otc::GameLoginPacketEncryption);
        enableFeature(Otc::GameNewOutfitProtocol);
    }

I added NewOutfitProtocol, all work perfectly, 0 otc terminal errors

Screenshot
Imgur

My OTC game.cpp with addon system now.


C++:
void Game::setClientVersion(int version)
{
    if(m_clientVersion == version)
        return;

    if(isOnline())
        stdext::throw_exception("Unable to change client version while online");

    if(version != 0 && (version < 740 || version > 1099))
        stdext::throw_exception(stdext::format("Client version %d not supported", version));

    m_features.reset();
    enableFeature(Otc::GameFormatCreatureName);

    if(version >= 770) {
        enableFeature(Otc::GameLooktypeU16);
        enableFeature(Otc::GameClientPing);
        enableFeature(Otc::GameMessageStatements);
        enableFeature(Otc::GameLoginPacketEncryption);
        enableFeature(Otc::GameNewOutfitProtocol);
        enableFeature(Otc::GamePlayerAddons);
    }

Screenshot
Imgur

Problems: Black screen part, character no move, all my skills are -1 and no display outfit window.

My current TFS protocolgame.cpp

[C++] /** * This program is free software; you can redistribute it and/or modify * i - Pastebin.com

anyone here know that may be the problem?


 
Server version: 7.72
using downgraded [TFS] 1.2

My OTC game.cpp

C++:
void Game::setClientVersion(int version)
{
    if(m_clientVersion == version)
        return;

    if(isOnline())
        stdext::throw_exception("Unable to change client version while online");

    if(version != 0 && (version < 740 || version > 1099))
        stdext::throw_exception(stdext::format("Client version %d not supported", version));

    m_features.reset();
    enableFeature(Otc::GameFormatCreatureName);

    if(version >= 770) {
        enableFeature(Otc::GameLooktypeU16);
        enableFeature(Otc::GameClientPing);
        enableFeature(Otc::GameMessageStatements);
        enableFeature(Otc::GameLoginPacketEncryption);
        enableFeature(Otc::GameNewOutfitProtocol);
    }

I added NewOutfitProtocol, all work perfectly, 0 otc terminal errors

Screenshot
Imgur

My OTC game.cpp with addon system now.


C++:
void Game::setClientVersion(int version)
{
    if(m_clientVersion == version)
        return;

    if(isOnline())
        stdext::throw_exception("Unable to change client version while online");

    if(version != 0 && (version < 740 || version > 1099))
        stdext::throw_exception(stdext::format("Client version %d not supported", version));

    m_features.reset();
    enableFeature(Otc::GameFormatCreatureName);

    if(version >= 770) {
        enableFeature(Otc::GameLooktypeU16);
        enableFeature(Otc::GameClientPing);
        enableFeature(Otc::GameMessageStatements);
        enableFeature(Otc::GameLoginPacketEncryption);
        enableFeature(Otc::GameNewOutfitProtocol);
        enableFeature(Otc::GamePlayerAddons);
    }

Screenshot
Imgur

Problems: Black screen part, character no move, all my skills are -1 and no display outfit window.

My current TFS protocolgame.cpp

[C++] /** * This program is free software; you can redistribute it and/or modify * i - Pastebin.com

anyone here know that may be the problem?

im not sure but maybe could be, that to enable addons system at your server at least.. you need to add addons code into others server files parts other places as well as protocolgame.cpp,
 

Similar threads

Back
Top