mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-05-03 08:03:50 +00:00
Remove temporary quest query diagnostics
This commit is contained in:
parent
4fcf869e34
commit
a37004db03
2 changed files with 0 additions and 27 deletions
|
|
@ -1443,8 +1443,6 @@ private:
|
||||||
// Quest log
|
// Quest log
|
||||||
std::vector<QuestLogEntry> questLog_;
|
std::vector<QuestLogEntry> questLog_;
|
||||||
std::unordered_set<uint32_t> pendingQuestQueryIds_;
|
std::unordered_set<uint32_t> pendingQuestQueryIds_;
|
||||||
int questQueryTracePacketsLeft_ = 0;
|
|
||||||
uint32_t questQueryTraceQuestId_ = 0;
|
|
||||||
|
|
||||||
// Quest giver status per NPC
|
// Quest giver status per NPC
|
||||||
std::unordered_map<uint64_t, QuestGiverStatus> npcQuestStatus_;
|
std::unordered_map<uint64_t, QuestGiverStatus> npcQuestStatus_;
|
||||||
|
|
|
||||||
|
|
@ -933,24 +933,6 @@ void GameHandler::handlePacket(network::Packet& packet) {
|
||||||
// Translate wire opcode to logical opcode via expansion table
|
// Translate wire opcode to logical opcode via expansion table
|
||||||
auto logicalOp = opcodeTable_.fromWire(opcode);
|
auto logicalOp = opcodeTable_.fromWire(opcode);
|
||||||
|
|
||||||
if (questQueryTracePacketsLeft_ > 0) {
|
|
||||||
int logicalId = logicalOp ? static_cast<int>(*logicalOp) : -1;
|
|
||||||
size_t limit = std::min<size_t>(24, packet.getSize());
|
|
||||||
std::string hex;
|
|
||||||
const auto& raw = packet.getData();
|
|
||||||
for (size_t i = 0; i < limit && i < raw.size(); ++i) {
|
|
||||||
char buf[4];
|
|
||||||
snprintf(buf, sizeof(buf), "%02x ", raw[i]);
|
|
||||||
hex += buf;
|
|
||||||
}
|
|
||||||
LOG_INFO("QTRACE RX: wire=0x", std::hex, opcode, std::dec,
|
|
||||||
" logical=", logicalId,
|
|
||||||
" size=", packet.getSize(),
|
|
||||||
" qid=", questQueryTraceQuestId_,
|
|
||||||
" head=[", hex, "]");
|
|
||||||
--questQueryTracePacketsLeft_;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!logicalOp) {
|
if (!logicalOp) {
|
||||||
static std::unordered_set<uint16_t> loggedUnknownWireOpcodes;
|
static std::unordered_set<uint16_t> loggedUnknownWireOpcodes;
|
||||||
if (loggedUnknownWireOpcodes.insert(opcode).second) {
|
if (loggedUnknownWireOpcodes.insert(opcode).second) {
|
||||||
|
|
@ -1963,8 +1945,6 @@ void GameHandler::handlePacket(network::Packet& packet) {
|
||||||
}
|
}
|
||||||
|
|
||||||
uint32_t questId = packet.readUInt32();
|
uint32_t questId = packet.readUInt32();
|
||||||
LOG_INFO("Quest query RX: wire=0x", std::hex, opcode, std::dec,
|
|
||||||
" questId=", questId, " payloadSize=", packet.getSize());
|
|
||||||
packet.readUInt32(); // questMethod
|
packet.readUInt32(); // questMethod
|
||||||
|
|
||||||
const bool isClassicLayout = packetParsers_ && packetParsers_->questLogStride() == 3;
|
const bool isClassicLayout = packetParsers_ && packetParsers_->questLogStride() == 3;
|
||||||
|
|
@ -8698,11 +8678,6 @@ bool GameHandler::requestQuestQuery(uint32_t questId, bool force) {
|
||||||
|
|
||||||
network::Packet pkt(wireOpcode(Opcode::CMSG_QUEST_QUERY));
|
network::Packet pkt(wireOpcode(Opcode::CMSG_QUEST_QUERY));
|
||||||
pkt.writeUInt32(questId);
|
pkt.writeUInt32(questId);
|
||||||
questQueryTraceQuestId_ = questId;
|
|
||||||
questQueryTracePacketsLeft_ = 60;
|
|
||||||
LOG_INFO("Quest query TX: questId=", questId, " wireOpcode=0x",
|
|
||||||
std::hex, wireOpcode(Opcode::CMSG_QUEST_QUERY), std::dec,
|
|
||||||
" force=", force ? 1 : 0);
|
|
||||||
socket->send(pkt);
|
socket->send(pkt);
|
||||||
pendingQuestQueryIds_.insert(questId);
|
pendingQuestQueryIds_.insert(questId);
|
||||||
return true;
|
return true;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue