From 92a6fd04d44bcd405641d7297a0167e2d5aba26f Mon Sep 17 00:00:00 2001 From: Thorbjørn Lindeijer Date: Tue, 13 Feb 2024 12:31:13 +0100 Subject: Updated tmwAthena network protocol * The code defining the message IDs and sizes are now generated by the tools/protocol.py script in the tmwAthena repository. * Reduced client version from 20 to 6, because that is currently the minimum supported version, and any adjustments needed for later likely still need to be made. * Removed use of no longer handled messages: - CMSG_SKILL_USE_BEING - CMSG_SKILL_USE_POSITION - CMSG_SKILL_USE_MAP - SMSG_PARTY_MOVE - CMSG_WHO_REQUEST - SMSG_WHO_ANSWER - SMSG_MVP - SMSG_BEING_MOVE2 - SMSG_BEING_CHANGE_LOOKS * Some messages were renamed to match the server side - CMSG_PLAYER_ATTACK -> CMSG_PLAYER_CHANGE_ACT - CMSG_PLAYER_RESTART -> CMSG_PLAYER_REBOOT - SMSG_ADMIN_IP -> SMSG_BEING_IP_RESPONSE Part of addressing issues #55 and #47, which we now know are about handling SMSG_PLAYER_HP and SMSG_NPC_COMMAND respectively. The client will now ignore them (with a warning) instead of crash. --- src/net/tmwa/chathandler.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/net/tmwa/chathandler.h') diff --git a/src/net/tmwa/chathandler.h b/src/net/tmwa/chathandler.h index 682a3743..a21692c9 100644 --- a/src/net/tmwa/chathandler.h +++ b/src/net/tmwa/chathandler.h @@ -62,7 +62,9 @@ class ChatHandler : public MessageHandler, public Net::ChatHandler void kickUser(int channelId, const std::string &name) override; - void who() override; + void who() override {} + + bool whoSupported() const override { return false; } private: using WhisperQueue = std::queue; -- cgit v1.2.3-70-g09d2