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

Debug when joining cast if "Cast channel" is open.

ohman

Member
Joined
Oct 24, 2008
Messages
294
Reaction score
8
Location
Sweden
With "cast channel" I mean the channel where the spectators and the caster can chat with eachother.


Hi! I have a problem! When a caster has the "cast channel" open, all players that join the cast gets debug.

I use 0.3.7 rev 5969. The strange thing is that a custom client that my friend is using dont get debug (dont remember the name). But with a ordinary client and my "custom client" (made by vapus custom client) gets debug.

This is the debug msg:

b89348.png


Thanks!

Edit: Some more info, if you didnt understand. If a caster dont have the "chat channel" open there is no debug.
 
the "custom client" he is TALKING about is the OTCLIENT.
^^
i cant help with C++ code, but the problem he got is when a standar client login and receive the comand to join the cast chat channel
receive it as a unknow data ( useless info for login ) and debug.
a hit is to add a delay when he login and join its channel, if possible.
 
it is Sending a Unknown Packet.we can't really help you if we can't see the code where it add Spectator.i got cast for rev 5963 0.3.7 8.6 if you need it
 
Is he using summs code or did he make a new one? Otherwise you can try to "readd" the code from summs to the 5xxx source code, mby he diden't copy it all or diden't do it right.
 
Do you have the MSG_PRIVATE_FROM declared on const.h?

@EDIT: Oh nvm... I didn't know that was Elf's cast.
 
Last edited:
Do you have the MSG_PRIVATE_FROM declared on const.h?

@EDIT: Oh nvm... I didn't know that was Elf's cast.
this are "MSG_NPC_TO"
MSG_NPC_TO = 0x04,

This are on const.
Code:
    MSG_NONE                    = 0x00,
    MSG_SPEAK_SAY                = 0x01,
    MSG_SPEAK_WHISPER            = 0x02,
    MSG_SPEAK_YELL                = 0x03,
    MSG_NPC_TO                    = 0x04,
    MSG_NPC_FROM                = 0x05,
    MSG_PRIVATE                    = 0x06, /*SPEAK_PRIVATE*/
    MSG_CHANNEL                    = 0x07, /*SPEAK_CHANNEL_Y*/
    MSG_CHANNEL_MANAGEMENT        = 0x08, /*SPEAK_CHANNEL_W*/
    MSG_RVR_CHANNEL                = 0x09, /*RULE VIOLATION SYSTEM*/
    MSG_RVR_ANSWER                = 0x0A, /*RULE VIOLATION SYSTEM*/
    MSG_RVR_CONTINUE            = 0x0B, /*RULE VIOLATION SYSTEM*/
    MSG_GAMEMASTER_BROADCAST    = 0x0C, /*SPEAK_BROADCAST*/
    MSG_GAMEMASTER_CHANNEL        = 0x0D, /*SPEAK_CHANNEL_RN*/
    MSG_GAMEMASTER_PRIVATE        = 0x0E, /*SPEAK_PRIVATE_RED*/
    MSG_CHANNEL_HIGHLIGHT        = 0x0F,
    MSG_GAMEMASTER_ANONYMOUS    = 0x11,
    MSG_SPEAK_MONSTER_SAY        = 0x13,
    MSG_SPEAK_MONSTER_YELL        = 0x14,


-- MSG_PRIVATE_FROM = 0x04,
is for a servs 9.+

Code:
    MSG_NONE                        = 0x00,
    MSG_SPEAK_SAY                    = 0x01,
    MSG_SPEAK_WHISPER                = 0x02,
    MSG_SPEAK_YELL                    = 0x03,
    MSG_PRIVATE_FROM                = 0x04,
    MSG_PRIVATE_TO                    = 0x05,
    MSG_CHANNEL_MANAGEMENT            = 0x06,
    MSG_CHANNEL                        = 0x07,
    MSG_CHANNEL_HIGHLIGHT            = 0x08,
    MSG_SPEAK_SPELL                    = 0x09,
    MSG_NPC_FROM                    = 0x0A,
    MSG_NPC_TO                        = 0x0B,
    MSG_GAMEMASTER_BROADCAST        = 0x0C,
    MSG_GAMEMASTER_CHANNEL            = 0x0D,
    MSG_GAMEMASTER_PRIVATE_FROM        = 0x0E,
    MSG_GAMEMASTER_PRIVATE_TO        = 0x0F,
    MSG_SPEAK_MONSTER_SAY            = 0x22,
    MSG_SPEAK_MONSTER_YELL            = 0x23,
 
Back
Top