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

Solved new outfits /debug /issue

Diarreamental

Well-Known Member
Joined
Jul 6, 2015
Messages
453
Solutions
1
Reaction score
80
Hello
im adding new outfits to my server and
im source editing my protocolgame.cpp file
to make possible change outfits from windows outfits.(new outfits)

The new outfit appear in my outfits window i can change color.. and i can go on to choose another outfit
but when the new outfit is going to appear in outfit window s, i get instant client crash /bug

someone told me that has something to be with bytes in my protocolgame.cpp can someone help me?
i use otx 2.6
if you don't undertand me properly here is a VIDEO OF MY PROBLEM(BETTER EXPLAIN) :

Code:
void ProtocolGame::sendOutfitWindow()
{
    NetworkMessage_ptr msg = getOutputBuffer();
    if(!msg)
        return;

    TRACK_MESSAGE(msg);
    msg->put<char>(0xC8);
    AddCreatureOutfit(msg, player, player->getDefaultOutfit(), true);

#ifdef _MULTIPLATFORM77
    msg->put<uint16_t>(player->sex % 2 ? 128 : 136);
    msg->put<uint16_t>(player->isPremium() ? (player->sex % 2 ? 264 : 265) : (player->sex % 2 ? 131 : 139));
#else
    msg->put<char>(player->sex % 2 ? 128 : 136);
    msg->put<char>(player->isPremium() ? (player->sex % 2 ?264 :265) : (player->sex % 2 ? 131 : 139));
#endif

    player->hasRequestedOutfit(true);
}

i've edited/changed just this
(player->sex % 2 ? 264 : 265) << in both lines the numbers used to be 134:142

264 and 265 aer ovbiusly the numbers of the new outfit that i've added
 
bump im still looking for ideas/options i have the extend.dll but doesn't works with tibia 7.72 anyway

also maybe anyone can help me with otclient? i have this error when i try to log in with it.
i've changed ports , rsa and ip in otclient but im two errors menthioned below:

OTCLIENT SAYS:
"your connection has been lost either your your network or server has went downn (error 2)."

also in my exe console i get this :
[Warning - Protocol::RSA_decrypt] Not valid packet size (IP: xxx.xx.xxx.xxx)

i know everything is properly setup because with my custom client i can log in, also others people.
Im using OTX 2.6 scaretable

any idea?

regards

bump !
 
Last edited:
How if possible to add outfit but no premium only ppl buy on shop ??

if (player->isPremium()) {


I know if people are premium can use all outfits this but i want to add outfit here but people need to buy on shop any help about this thanks <3
 
Hello, i jo the post because It appears thé same on otserv 12.60 god or players changing outfit and SERVER Crash i dont see thé error on console but i know on localhost they crash when i try change outfit as a god or players i dont know if thé issue if thé problem. I try each outfit without knowing which make Crash its randomly if antoje know thé solution
 
Back
Top