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

C++ Debug

adrenyslopez

Member
Joined
Dec 22, 2015
Messages
173
Reaction score
13
Someone help me because it gives so much debug to the players

i use otbr tfs 1.3
code
Lua:
----- 08/05/2021 16:43:36 - Sir Vinger () -----
Debug Assertion 1100 Buddies.cpp 170
Sat May 08 18:42:54 2021
Graphic Engine: DirectX9 (2)
Operating System: Windows Vista Family in BRA
Processor: Intel Core i7 -2600 @ 3
Video Card: NVIDIA GeForce 210
Last Packet Types: 211 030 172 172 172 162 233 238 238 238
Last Packet: 211 133 000 000 000 003 000 000 000 000 000 000 000 000 000 000
Player Position: [33263,31769,7]
Player Name: Sir Vinger (Zanera-Global)
Player Action: 048 046 048 046 048 046 048 058 055 049 055 050
Player.cpp 344: exception occurred, reason:
Network.cpp 873: exception occurred, reason:
Control.cpp 1535: exception occurred (Type = 211) (MainWindow = 04810E48), reason:
Communication.cpp 4553: exception occurred (CharacterID = 133), reason:
Buddies.cpp 170: assertion failed (BuddyState = 3), reason:
In(BuddyState, BUDDYSTATE_OFFLINE, BUDDYSTATE_PENDING)
Comment:
----- 08/05/2021 16:58:17 - Sir Vinger () -----
Debug Assertion 1100 Buddies.cpp 170
Sat May 08 18:57:42 2021
Graphic Engine: DirectX9 (2)
Operating System: Windows Vista Family in BRA
Processor: Intel Core i7 -2600 @ 3
Video Card: NVIDIA GeForce 210
Last Packet Types: 211 110 183 160 160 180 172 172 233 238
Last Packet: 211 133 000 000 000 003 000 000 000 000 000 000 000 000 000 000
Player Position: [33250,31785,7]
Player Name: Sir Vinger (Zanera-Global)
Player Action: 048 046 048 046 048 046 048 058 055 049 055 050
Player.cpp 344: exception occurred, reason:
Network.cpp 873: exception occurred, reason:
Control.cpp 1535: exception occurred (Type = 211) (MainWindow = 041B0070), reason:
Communication.cpp 4553: exception occurred (CharacterID = 133), reason:
Buddies.cpp 170: assertion failed (BuddyState = 3), reason:
In(BuddyState, BUDDYSTATE_OFFLINE, BUDDYSTATE_PENDING)
Comment:
----- 08/05/2021 17:02:08 - Sir Vinger () -----
Debug Assertion 1100 Buddies.cpp 170
Sat May 08 18:58:19 2021
Graphic Engine: DirectX9 (2)
Operating System: Windows Vista Family in BRA
Processor: Intel Core i7 -2600 @ 3
Video Card: NVIDIA GeForce 210
Last Packet Types: 211 030 160 160 162 233 238 238 238 232
Last Packet: 211 133 000 000 000 003 000 000 000 000 000 000 000 000 000 000
Player Position: [33250,31785,7]
Player Name: Sir Vinger (Zanera-Global)
Player Action: 048 046 048 046 048 046 048 058 055 049 055 050
Player.cpp 344: exception occurred, reason:
Network.cpp 873: exception occurred, reason:
Control.cpp 1535: exception occurred (Type = 211) (MainWindow = 0416B408), reason:
Communication.cpp 4553: exception occurred (CharacterID = 133), reason:
Buddies.cpp 170: assertion failed (BuddyState = 3), reason:
In(BuddyState, BUDDYSTATE_OFFLINE, BUDDYSTATE_PENDING)
Comment:
----- 08/05/2021 17:02:25 - Sir Vinger () -----
Debug Assertion 1100 Buddies.cpp 170
Sat May 08 19:02:08 2021
Graphic Engine: DirectX9 (2)
Operating System: Windows Vista Family in BRA
Processor: Intel Core i7 -2600 @ 3
Video Card: NVIDIA GeForce 210
Last Packet Types: 211 109 162 233 238 238 238 232 232 232
Last Packet: 211 133 000 000 000 003 000 000 000 000 000 000 000 000 000 000
Player Position: [33176,31767,6]
Player Name: Sir Vinger (Zanera-Global)
Player Action: 048 046 048 046 048 046 048 058 055 049 055 050
Player.cpp 344: exception occurred, reason:
Network.cpp 873: exception occurred, reason:
Control.cpp 1535: exception occurred (Type = 211) (MainWindow = 044A4358), reason:
Communication.cpp 4553: exception occurred (CharacterID = 133), reason:
Buddies.cpp 170: assertion failed (BuddyState = 3), reason:
In(BuddyState, BUDDYSTATE_OFFLINE, BUDDYSTATE_PENDING)
Comment:
----- 08/05/2021 17:02:53 - Sir Vinger () -----
Debug Assertion 1100 Buddies.cpp 170
Sat May 08 19:02:30 2021
Graphic Engine: DirectX9 (2)
Operating System: Windows Vista Family in BRA
Processor: Intel Core i7 -2600 @ 3
Video Card: NVIDIA GeForce 210
Last Packet Types: 211 109 101 109 030 110 183 160 160 180
Last Packet: 211 133 000 000 000 003 000 000 000 000 000 000 000 000 000 000
Player Position: [33176,31766,6]
Player Name: Sir Vinger (Zanera-Global)
Player Action: 048 046 048 046 048 046 048 058 055 049 055 050
Player.cpp 344: exception occurred, reason:
Network.cpp 873: exception occurred, reason:
Control.cpp 1535: exception occurred (Type = 211) (MainWindow = 044DB428), reason:
Communication.cpp 4553: exception occurred (CharacterID = 133), reason:
Buddies.cpp 170: assertion failed (BuddyState = 3), reason:
In(BuddyState, BUDDYSTATE_OFFLINE, BUDDYSTATE_PENDING)
Comment:
 
Solution
Replace this line from the function
C++:
msg.addByte(newStatus);
With this one
C++:
msg.addByte(newStatus == VIPSTATUS_TRAINING && version <= 1199 ? VIPSTATUS_ONLINE : newStatus);

Kooda

Member
Joined
May 7, 2021
Messages
20
Solutions
4
Reaction score
14
Can you show this function
C++:
void ProtocolGame::sendUpdatedVIPStatus(uint32_t guid, VipStatus_t newStatus)
From this file please
src/server/network/protocol/protocolgame.cpp
 
OP
OP
A

adrenyslopez

Member
Joined
Dec 22, 2015
Messages
173
Reaction score
13
Can you show this function
C++:
void ProtocolGame::sendUpdatedVIPStatus(uint32_t guid, VipStatus_t newStatus)
From this file please
src/server/network/protocol/protocolgame.cpp


I had to put it in pastebin, it exceeds the character limit
/** * The Forgotten Server - a free and open-source MMORPG server emulator * - Pastebin.com (https://pastebin.com/CcVRb7r6)
Post automatically merged:

void ProtocolGame::sendUpdatedVIPStatus(uint32_t guid, VipStatus_t newStatus)
Lua:
void ProtocolGame::sendUpdatedVIPStatus(uint32_t guid, VipStatus_t newStatus)
{
    NetworkMessage msg;
    msg.addByte(0xD3);
    msg.add<uint32_t>(guid);
    msg.addByte(newStatus);
    writeToOutputBuffer(msg);
}
 

Kooda

Member
Joined
May 7, 2021
Messages
20
Solutions
4
Reaction score
14
Replace this line from the function
C++:
msg.addByte(newStatus);
With this one
C++:
msg.addByte(newStatus == VIPSTATUS_TRAINING && version <= 1199 ? VIPSTATUS_ONLINE : newStatus);
 
Solution
OP
OP
A

adrenyslopez

Member
Joined
Dec 22, 2015
Messages
173
Reaction score
13
Replace this line from the function
C++:
msg.addByte(newStatus);
With this one
C++:
msg.addByte(newStatus == VIPSTATUS_TRAINING && version <= 1199 ? VIPSTATUS_ONLINE : newStatus);
Lua:
----- 10/05/2021 14:29:55 - Ikki De Fenix (189.30.156.12) -----
Debug Assertion 1100 Buddies.cpp 170
Sun May 09 15:35:41 2021
Graphic Engine: DirectX9 (2)
Operating System: Windows Vista Family in BRA
Processor: Intel CORE I3-6
Video Card: Intel (R) HD GR
Last Packet Types: 211 162 233 238 238 238 232 232 232 159
Last Packet: 211 215 000 000 000 003 000 000 000 000 000 000 000 000 000 000
Player Position: [32957,32076,7]
Player Name: Ikki De Fenix (Zanera-Global)
Player Action: 048 046 048 046 048 046 048 058 055 049 055 050
Player.cpp 344: exception occurred, reason:
Network.cpp 873: exception occurred, reason:
Control.cpp 1535: exception occurred (Type = 211) (MainWindow = 0447D7A8), reason:
Communication.cpp 4553: exception occurred (CharacterID = 215), reason:
Buddies.cpp 170: assertion failed (BuddyState = 3), reason:
In(BuddyState, BUDDYSTATE_OFFLINE, BUDDYSTATE_PENDING)
Comment:
 
Top