• 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+ [1.3] Debug on login

JayMeazy

Member
Joined
Sep 7, 2020
Messages
92
Solutions
2
Reaction score
24
Hello, I'm trying to understand how to track down debugs, using the values to go to the offset of the problem is what I imagine you do. This debug, I'm not sure why it happens, I think what I'm gathering is maybe something to do with a mount/outfit change. It should be noted that I made the server support 10.99 by just changing it to 1099 in the protocollogin, so that I could include 1098 in the otclient that I packed, and then I put my custom client in 1099, but it's actually 1098, could this cause problems for everyone? beucase the debug seems to go serverwide after something happpens, but eventually you stop debugging, but you don't get any login information in server log, here is debug info:
here's what otclient says, if you want the 1098 version i'll have to wait until it does it again.
Code:
ERROR: ProtocolGame parse message exception (11643 bytes, 0 unread, last opcode is 159, prev opcode is 141): InputMessage eof reached
 
Solution

Try the solution here

Try the solution here
 
Solution
GameServerCreatureLight, and GameServerPlayerDataBasic, so something about pushing an item with light attribute?
Here is my 1098 debug:
Debug Assertion 10.98 Utils.cpp 524
Last Packet Types: 159 141 130 161 160 120 121 121 120 120
Last Packet: 023 014 000 000 016 050 000 003 015 021 013 128 003 169 252 003
Player Action: 048 046 048 046 048 046 048 058 059 049 055 050
Control.Cpp 1525: exception occured(Type=159)(Main Window = 0488CB58),
Utils.cpp 524: assertion failed(Position=6808) (Size = 6808), Position<=Size-1
[/code]
I'd really like to learn how to track this. What I'm gathering from the post you linked is that it was an otclient user, because the opcodes don't exist in most cases for the normal client, is this right?
 
Last edited:

Try the solution here
Not sure how you knew it was animations, but after I did some investigation i realized i overwrote an animated item, thank you sir!
 
not sure if that fixed a problem, but i have a similar problem still, when i login it debugs 1098 client, and makes otclient not connect, here's what it says in otclient:
Code:
ERROR: invalid encrypted network message 24569
at:
    [C++]: ?xteaDecrypt@Protocol@@AAE_NABV?$shared_object_ptr@VInputMessage@@@stdext@@@Z
ERROR: failed to decrypt message
at:
    [C++]: ?internalRecvData@Protocol@@AAEXPAEI@Z
I'm curious what message 24569 is. On 1098 it's debugging on network.cpp 235, so not the same place as before. here's 1098 debug:
Code:
Network.cpp 235
Last packet types: 162 159 141 130 161 160 120 121 121 120
Last packet: 023 143 001 000 016 050 000 003 015 021 013 128 003 169 252 003
Player Action: 048 046 048 046 048 046 048 058 059 049 055 050
Control.Cpp 1525: exception occured(Type=-1)(Main Window = 04417CA8),
Network.cpp 235: packet size does not fit to symmetric encryption ( PacketSize=24573 )
To me it looks like the packet should be 24573 bytes, but it's 24569 bytes?

So I looked in console to see if anything happened right before, and I see people logging in then immediately out, and right before that I see:
Code:
data/events/scripts/monster.lua:Monster@onDropLoot
Oct 01 20:04:09 tfs: data/events/scripts/monster.lua:47: attempt to index local 'player' (a nil value)
basically i didn't check if the player existed, so something made this throw an error, but i don't see how this would change the structure of the login packet being sent afterwards, i feel like this would be a one and done kind of debug. but i'll fix the script and try again, it's just hard to recreate the debug because i don't know what happens ( sometimes i don't see it for 2-3 days and it might not be the onDropLoot function ). If anyone can help me shed some light i'd be really grateful.
 
Last edited:
Code:
ERROR: invalid encrypted network message 24569
at:
    [C++]: ?xteaDecrypt@Protocol@@AAE_NABV?$shared_object_ptr@VInputMessage@@@stdext@@@Z
ERROR: failed to decrypt message
at:
    [C++]: ?internalRecvData@Protocol@@AAEXPAEI@Z
Hey man, did you find a solution for that? Because the same thing started happening to me today
 
Back
Top