diff --git a/apps/openmw-mp/WorldProcessor.cpp b/apps/openmw-mp/WorldProcessor.cpp index 19fc05500..e98770aa2 100644 --- a/apps/openmw-mp/WorldProcessor.cpp +++ b/apps/openmw-mp/WorldProcessor.cpp @@ -38,8 +38,6 @@ bool WorldProcessor::Process(RakNet::Packet &packet, BaseEvent &event) noexcept Player *player = Players::getPlayer(packet.guid); WorldPacket *myPacket = Networking::get().getWorldController()->GetPacket(packet.data[0]); - LOG_MESSAGE_SIMPLE(Log::LOG_VERBOSE, "Received %s from %s", processor.second->strPacketID.c_str(), - player->npc.mName.c_str()); myPacket->setEvent(&event); if (!processor.second->avoidReading) diff --git a/apps/openmw-mp/processors/world/ProcessorActorList.hpp b/apps/openmw-mp/processors/world/ProcessorActorList.hpp index e417c76b5..bf8cbea02 100644 --- a/apps/openmw-mp/processors/world/ProcessorActorList.hpp +++ b/apps/openmw-mp/processors/world/ProcessorActorList.hpp @@ -15,6 +15,8 @@ namespace mwmp void Do(WorldPacket &packet, Player &player, BaseEvent &event) override { + LOG_MESSAGE_SIMPLE(Log::LOG_INFO, "Received %s from %s", strPacketID.c_str(), player.npc.mName.c_str()); + // Send only to players who have the cell loaded Cell *serverCell = CellController::get()->getCell(&event.cell); diff --git a/apps/openmw-mp/processors/world/ProcessorContainer.hpp b/apps/openmw-mp/processors/world/ProcessorContainer.hpp index 1f2097295..b0b8bc804 100644 --- a/apps/openmw-mp/processors/world/ProcessorContainer.hpp +++ b/apps/openmw-mp/processors/world/ProcessorContainer.hpp @@ -19,6 +19,7 @@ namespace mwmp void Do(WorldPacket &packet, Player &player, BaseEvent &event) override { + LOG_MESSAGE_SIMPLE(Log::LOG_INFO, "Received %s from %s", strPacketID.c_str(), player.npc.mName.c_str()); LOG_APPEND(Log::LOG_INFO, "- action: %i", event.action); // Until we have a timestamp-based system, send packets pertaining to more diff --git a/apps/openmw-mp/processors/world/ProcessorObjectDelete.hpp b/apps/openmw-mp/processors/world/ProcessorObjectDelete.hpp index 89f74bcbf..7cf2617e9 100644 --- a/apps/openmw-mp/processors/world/ProcessorObjectDelete.hpp +++ b/apps/openmw-mp/processors/world/ProcessorObjectDelete.hpp @@ -19,6 +19,8 @@ namespace mwmp void Do(WorldPacket &packet, Player &player, BaseEvent &event) override { + LOG_MESSAGE_SIMPLE(Log::LOG_INFO, "Received %s from %s", strPacketID.c_str(), player.npc.mName.c_str()); + packet.Send(true); Script::Call(player.getId(), event.cell.getDescription().c_str()); diff --git a/apps/openmw-mp/processors/world/ProcessorObjectLock.hpp b/apps/openmw-mp/processors/world/ProcessorObjectLock.hpp index 7f03c37b9..53b374f47 100644 --- a/apps/openmw-mp/processors/world/ProcessorObjectLock.hpp +++ b/apps/openmw-mp/processors/world/ProcessorObjectLock.hpp @@ -19,6 +19,8 @@ namespace mwmp void Do(WorldPacket &packet, Player &player, BaseEvent &event) override { + LOG_MESSAGE_SIMPLE(Log::LOG_INFO, "Received %s from %s", strPacketID.c_str(), player.npc.mName.c_str()); + packet.Send(true); Script::Call(player.getId(), event.cell.getDescription().c_str()); diff --git a/apps/openmw-mp/processors/world/ProcessorObjectPlace.hpp b/apps/openmw-mp/processors/world/ProcessorObjectPlace.hpp index 116888bbe..68ceefde5 100644 --- a/apps/openmw-mp/processors/world/ProcessorObjectPlace.hpp +++ b/apps/openmw-mp/processors/world/ProcessorObjectPlace.hpp @@ -20,6 +20,8 @@ namespace mwmp void Do(WorldPacket &packet, Player &player, BaseEvent &event) override { + LOG_MESSAGE_SIMPLE(Log::LOG_INFO, "Received %s from %s", strPacketID.c_str(), player.npc.mName.c_str()); + for (unsigned int i = 0; i < event.objectChanges.count; i++) { event.objectChanges.objects.at(i).mpNum = mwmp::Networking::getPtr()->incrementMpNum(); diff --git a/apps/openmw-mp/processors/world/ProcessorObjectScale.hpp b/apps/openmw-mp/processors/world/ProcessorObjectScale.hpp index f215662e0..8166dc855 100644 --- a/apps/openmw-mp/processors/world/ProcessorObjectScale.hpp +++ b/apps/openmw-mp/processors/world/ProcessorObjectScale.hpp @@ -19,6 +19,8 @@ namespace mwmp void Do(WorldPacket &packet, Player &player, BaseEvent &event) override { + LOG_MESSAGE_SIMPLE(Log::LOG_INFO, "Received %s from %s", strPacketID.c_str(), player.npc.mName.c_str()); + packet.Send(true); Script::Call(player.getId(), event.cell.getDescription().c_str()); diff --git a/apps/openmw-mp/processors/world/ProcessorObjectUnlock.hpp b/apps/openmw-mp/processors/world/ProcessorObjectUnlock.hpp index 2d83cc87c..db21385a0 100644 --- a/apps/openmw-mp/processors/world/ProcessorObjectUnlock.hpp +++ b/apps/openmw-mp/processors/world/ProcessorObjectUnlock.hpp @@ -19,6 +19,8 @@ namespace mwmp void Do(WorldPacket &packet, Player &player, BaseEvent &event) override { + LOG_MESSAGE_SIMPLE(Log::LOG_INFO, "Received %s from %s", strPacketID.c_str(), player.npc.mName.c_str()); + packet.Send(true); Script::Call(player.getId(), event.cell.getDescription().c_str());