diff options
author | Thorbjørn Lindeijer <bjorn@lindeijer.nl> | 2024-02-13 12:31:13 +0100 |
---|---|---|
committer | Thorbjørn Lindeijer <bjorn@lindeijer.nl> | 2024-02-13 20:56:48 +0100 |
commit | 92a6fd04d44bcd405641d7297a0167e2d5aba26f (patch) | |
tree | 06df1fca07892be18a35e446965f25bcfc236d19 /src/net/manaserv | |
parent | 10da00488a37cb04a2cb515c94acde7104e74506 (diff) | |
download | mana-92a6fd04d44bcd405641d7297a0167e2d5aba26f.tar.gz mana-92a6fd04d44bcd405641d7297a0167e2d5aba26f.tar.bz2 mana-92a6fd04d44bcd405641d7297a0167e2d5aba26f.tar.xz mana-92a6fd04d44bcd405641d7297a0167e2d5aba26f.zip |
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.
Diffstat (limited to 'src/net/manaserv')
-rw-r--r-- | src/net/manaserv/chathandler.h | 3 | ||||
-rw-r--r-- | src/net/manaserv/gamehandler.cpp | 5 | ||||
-rw-r--r-- | src/net/manaserv/gamehandler.h | 2 |
3 files changed, 2 insertions, 8 deletions
diff --git a/src/net/manaserv/chathandler.h b/src/net/manaserv/chathandler.h index f9602407..4ad04a70 100644 --- a/src/net/manaserv/chathandler.h +++ b/src/net/manaserv/chathandler.h @@ -23,7 +23,6 @@ #define NET_MANASERV_CHATHANDLER_H #include "net/chathandler.h" -#include "net/serverinfo.h" #include "net/manaserv/messagehandler.h" @@ -71,6 +70,8 @@ class ChatHandler : public MessageHandler, public Net::ChatHandler void who() override; + bool whoSupported() const override { return true; } + private: /** * Handle chat messages sent from the game server. diff --git a/src/net/manaserv/gamehandler.cpp b/src/net/manaserv/gamehandler.cpp index 265c0d8a..1bf4d69f 100644 --- a/src/net/manaserv/gamehandler.cpp +++ b/src/net/manaserv/gamehandler.cpp @@ -115,11 +115,6 @@ void GameHandler::disconnect() chatHandler->disconnect(); } -void GameHandler::who() -{ - // TODO -} - void GameHandler::quit(bool reconnectAccount) { MessageOut msg(PGMSG_DISCONNECT); diff --git a/src/net/manaserv/gamehandler.h b/src/net/manaserv/gamehandler.h index 2bc56ef0..01d23b43 100644 --- a/src/net/manaserv/gamehandler.h +++ b/src/net/manaserv/gamehandler.h @@ -44,8 +44,6 @@ class GameHandler : public MessageHandler, public Net::GameHandler void disconnect() override; - void who() override; - void quit(bool reconnectAccount); void quit() override { quit(false); } |