Ex server packet debugging.

This commit is contained in:
MobiusDevelopment
2022-10-10 21:19:31 +00:00
parent 4af79f003d
commit c1c60d742c
58 changed files with 338 additions and 318 deletions

View File

@ -227,15 +227,6 @@ public class GameClient extends ChannelInboundHandler<GameClient>
return;
}
if (Config.DEBUG_OUTGOING_PACKETS && (_player != null))
{
final String name = packet.getClass().getSimpleName();
if (!Config.ALT_DEV_EXCLUDED_PACKETS.contains(name))
{
PacketLogger.info("[S] " + name);
}
}
// Write into the channel.
_channel.writeAndFlush(packet);

View File

@ -16,6 +16,7 @@
*/
package org.l2jmobius.gameserver.network;
import org.l2jmobius.Config;
import org.l2jmobius.commons.network.PacketWriter;
/**
@ -310,6 +311,15 @@ public enum OutgoingPackets
public void writeId(PacketWriter packet)
{
if (Config.DEBUG_OUTGOING_PACKETS)
{
final String name = packet.getClass().getSimpleName();
if (!Config.ALT_DEV_EXCLUDED_PACKETS.contains(name))
{
PacketLogger.info((_id2 > 0 ? "[S EX] " : "[S] ") + name);
}
}
packet.writeC(_id1);
if (_id2 > 0)
{