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) :
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
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