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

@ -234,15 +234,6 @@ public class GameClient extends ChannelInboundHandler<GameClient>
return;
}
if (Config.DEBUG_OUTGOING_PACKETS)
{
final String name = packet.getClass().getSimpleName();
if (!Config.ALT_DEV_EXCLUDED_PACKETS.contains(name))
{
PacketLogger.info("[S] " + name);
}
}
// TODO: Set as parameter to packets used?
if (Config.MULTILANG_ENABLE)
{

View File

@ -16,6 +16,7 @@
*/
package org.l2jmobius.gameserver.network;
import org.l2jmobius.Config;
import org.l2jmobius.commons.network.PacketWriter;
/**
@ -685,6 +686,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)
{

View File

@ -234,15 +234,6 @@ public class GameClient extends ChannelInboundHandler<GameClient>
return;
}
if (Config.DEBUG_OUTGOING_PACKETS)
{
final String name = packet.getClass().getSimpleName();
if (!Config.ALT_DEV_EXCLUDED_PACKETS.contains(name))
{
PacketLogger.info("[S] " + name);
}
}
// TODO: Set as parameter to packets used?
if (Config.MULTILANG_ENABLE)
{

View File

@ -16,6 +16,7 @@
*/
package org.l2jmobius.gameserver.network;
import org.l2jmobius.Config;
import org.l2jmobius.commons.network.PacketWriter;
/**
@ -709,6 +710,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)
{

View File

@ -234,15 +234,6 @@ public class GameClient extends ChannelInboundHandler<GameClient>
return;
}
if (Config.DEBUG_OUTGOING_PACKETS)
{
final String name = packet.getClass().getSimpleName();
if (!Config.ALT_DEV_EXCLUDED_PACKETS.contains(name))
{
PacketLogger.info("[S] " + name);
}
}
// TODO: Set as parameter to packets used?
if (Config.MULTILANG_ENABLE)
{

View File

@ -16,6 +16,7 @@
*/
package org.l2jmobius.gameserver.network;
import org.l2jmobius.Config;
import org.l2jmobius.commons.network.PacketWriter;
/**
@ -743,6 +744,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)
{

View File

@ -234,15 +234,6 @@ public class GameClient extends ChannelInboundHandler<GameClient>
return;
}
if (Config.DEBUG_OUTGOING_PACKETS)
{
final String name = packet.getClass().getSimpleName();
if (!Config.ALT_DEV_EXCLUDED_PACKETS.contains(name))
{
PacketLogger.info("[S] " + name);
}
}
// TODO: Set as parameter to packets used?
if (Config.MULTILANG_ENABLE)
{

View File

@ -16,6 +16,7 @@
*/
package org.l2jmobius.gameserver.network;
import org.l2jmobius.Config;
import org.l2jmobius.commons.network.PacketWriter;
/**
@ -773,6 +774,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)
{

View File

@ -234,15 +234,6 @@ public class GameClient extends ChannelInboundHandler<GameClient>
return;
}
if (Config.DEBUG_OUTGOING_PACKETS)
{
final String name = packet.getClass().getSimpleName();
if (!Config.ALT_DEV_EXCLUDED_PACKETS.contains(name))
{
PacketLogger.info("[S] " + name);
}
}
// TODO: Set as parameter to packets used?
if (Config.MULTILANG_ENABLE)
{

View File

@ -16,6 +16,7 @@
*/
package org.l2jmobius.gameserver.network;
import org.l2jmobius.Config;
import org.l2jmobius.commons.network.PacketWriter;
/**
@ -815,6 +816,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)
{

View File

@ -234,15 +234,6 @@ public class GameClient extends ChannelInboundHandler<GameClient>
return;
}
if (Config.DEBUG_OUTGOING_PACKETS)
{
final String name = packet.getClass().getSimpleName();
if (!Config.ALT_DEV_EXCLUDED_PACKETS.contains(name))
{
PacketLogger.info("[S] " + name);
}
}
// TODO: Set as parameter to packets used?
if (Config.MULTILANG_ENABLE)
{

View File

@ -16,6 +16,7 @@
*/
package org.l2jmobius.gameserver.network;
import org.l2jmobius.Config;
import org.l2jmobius.commons.network.PacketWriter;
/**
@ -824,6 +825,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)
{

View File

@ -234,15 +234,6 @@ public class GameClient extends ChannelInboundHandler<GameClient>
return;
}
if (Config.DEBUG_OUTGOING_PACKETS)
{
final String name = packet.getClass().getSimpleName();
if (!Config.ALT_DEV_EXCLUDED_PACKETS.contains(name))
{
PacketLogger.info("[S] " + name);
}
}
// TODO: Set as parameter to packets used?
if (Config.MULTILANG_ENABLE)
{

View File

@ -16,6 +16,7 @@
*/
package org.l2jmobius.gameserver.network;
import org.l2jmobius.Config;
import org.l2jmobius.commons.network.PacketWriter;
/**
@ -824,6 +825,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)
{

View File

@ -234,15 +234,6 @@ public class GameClient extends ChannelInboundHandler<GameClient>
return;
}
if (Config.DEBUG_OUTGOING_PACKETS)
{
final String name = packet.getClass().getSimpleName();
if (!Config.ALT_DEV_EXCLUDED_PACKETS.contains(name))
{
PacketLogger.info("[S] " + name);
}
}
// TODO: Set as parameter to packets used?
if (Config.MULTILANG_ENABLE)
{

View File

@ -16,6 +16,7 @@
*/
package org.l2jmobius.gameserver.network;
import org.l2jmobius.Config;
import org.l2jmobius.commons.network.PacketWriter;
/**
@ -901,6 +902,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)
{

View File

@ -234,15 +234,6 @@ public class GameClient extends ChannelInboundHandler<GameClient>
return;
}
if (Config.DEBUG_OUTGOING_PACKETS)
{
final String name = packet.getClass().getSimpleName();
if (!Config.ALT_DEV_EXCLUDED_PACKETS.contains(name))
{
PacketLogger.info("[S] " + name);
}
}
// TODO: Set as parameter to packets used?
if (Config.MULTILANG_ENABLE)
{

View File

@ -16,6 +16,7 @@
*/
package org.l2jmobius.gameserver.network;
import org.l2jmobius.Config;
import org.l2jmobius.commons.network.PacketWriter;
/**
@ -954,6 +955,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)
{

View File

@ -234,15 +234,6 @@ public class GameClient extends ChannelInboundHandler<GameClient>
return;
}
if (Config.DEBUG_OUTGOING_PACKETS)
{
final String name = packet.getClass().getSimpleName();
if (!Config.ALT_DEV_EXCLUDED_PACKETS.contains(name))
{
PacketLogger.info("[S] " + name);
}
}
// TODO: Set as parameter to packets used?
if (Config.MULTILANG_ENABLE)
{

View File

@ -16,6 +16,7 @@
*/
package org.l2jmobius.gameserver.network;
import org.l2jmobius.Config;
import org.l2jmobius.commons.network.PacketWriter;
/**
@ -1009,6 +1010,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)
{

View File

@ -234,15 +234,6 @@ public class GameClient extends ChannelInboundHandler<GameClient>
return;
}
if (Config.DEBUG_OUTGOING_PACKETS)
{
final String name = packet.getClass().getSimpleName();
if (!Config.ALT_DEV_EXCLUDED_PACKETS.contains(name))
{
PacketLogger.info("[S] " + name);
}
}
// TODO: Set as parameter to packets used?
if (Config.MULTILANG_ENABLE)
{

View File

@ -16,6 +16,7 @@
*/
package org.l2jmobius.gameserver.network;
import org.l2jmobius.Config;
import org.l2jmobius.commons.network.PacketWriter;
/**
@ -1093,6 +1094,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)
{

View File

@ -238,15 +238,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)
{

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)
{

View File

@ -210,39 +210,27 @@ public class GameClient extends ChannelInboundHandler<GameClient>
return;
}
if (_player != null)
// TODO: Set as parameter to packets used?
if ((_player != null) && Config.MULTILANG_ENABLE)
{
if (Config.DEBUG_OUTGOING_PACKETS)
final String lang = _player.getLang();
if ((lang != null) && !lang.equals("en"))
{
final String name = packet.getClass().getSimpleName();
if (!Config.ALT_DEV_EXCLUDED_PACKETS.contains(name))
if (packet instanceof SystemMessage)
{
PacketLogger.info("[S] " + name);
((SystemMessage) packet).setLang(lang);
}
}
// TODO: Set as parameter to packets used?
if (Config.MULTILANG_ENABLE)
{
final String lang = _player.getLang();
if ((lang != null) && !lang.equals("en"))
else if (packet instanceof NpcSay)
{
if (packet instanceof SystemMessage)
{
((SystemMessage) packet).setLang(lang);
}
else if (packet instanceof NpcSay)
{
((NpcSay) packet).setLang(lang);
}
else if (packet instanceof ExShowScreenMessage)
{
((ExShowScreenMessage) packet).setLang(lang);
}
else if (packet instanceof NpcInfo)
{
((NpcInfo) packet).setLang(lang);
}
((NpcSay) packet).setLang(lang);
}
else if (packet instanceof ExShowScreenMessage)
{
((ExShowScreenMessage) packet).setLang(lang);
}
else if (packet instanceof NpcInfo)
{
((NpcInfo) packet).setLang(lang);
}
}
}

View File

@ -16,6 +16,7 @@
*/
package org.l2jmobius.gameserver.network;
import org.l2jmobius.Config;
import org.l2jmobius.commons.network.PacketWriter;
/**
@ -317,6 +318,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)
{

View File

@ -210,39 +210,27 @@ public class GameClient extends ChannelInboundHandler<GameClient>
return;
}
if (_player != null)
// TODO: Set as parameter to packets used?
if ((_player != null) && Config.MULTILANG_ENABLE)
{
if (Config.DEBUG_OUTGOING_PACKETS)
final String lang = _player.getLang();
if ((lang != null) && !lang.equals("en"))
{
final String name = packet.getClass().getSimpleName();
if (!Config.ALT_DEV_EXCLUDED_PACKETS.contains(name))
if (packet instanceof SystemMessage)
{
PacketLogger.info("[S] " + name);
((SystemMessage) packet).setLang(lang);
}
}
// TODO: Set as parameter to packets used?
if (Config.MULTILANG_ENABLE)
{
final String lang = _player.getLang();
if ((lang != null) && !lang.equals("en"))
else if (packet instanceof NpcSay)
{
if (packet instanceof SystemMessage)
{
((SystemMessage) packet).setLang(lang);
}
else if (packet instanceof NpcSay)
{
((NpcSay) packet).setLang(lang);
}
else if (packet instanceof ExShowScreenMessage)
{
((ExShowScreenMessage) packet).setLang(lang);
}
else if (packet instanceof NpcInfo)
{
((NpcInfo) packet).setLang(lang);
}
((NpcSay) packet).setLang(lang);
}
else if (packet instanceof ExShowScreenMessage)
{
((ExShowScreenMessage) packet).setLang(lang);
}
else if (packet instanceof NpcInfo)
{
((NpcInfo) packet).setLang(lang);
}
}
}

View File

@ -16,6 +16,7 @@
*/
package org.l2jmobius.gameserver.network;
import org.l2jmobius.Config;
import org.l2jmobius.commons.network.PacketWriter;
/**
@ -500,6 +501,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)
{

View File

@ -217,39 +217,27 @@ public class GameClient extends ChannelInboundHandler<GameClient>
return;
}
if (_player != null)
// TODO: Set as parameter to packets used?
if ((_player != null) && Config.MULTILANG_ENABLE)
{
if (Config.DEBUG_OUTGOING_PACKETS)
final String lang = _player.getLang();
if ((lang != null) && !lang.equals("en"))
{
final String name = packet.getClass().getSimpleName();
if (!Config.ALT_DEV_EXCLUDED_PACKETS.contains(name))
if (packet instanceof SystemMessage)
{
PacketLogger.info("[S] " + name);
((SystemMessage) packet).setLang(lang);
}
}
// TODO: Set as parameter to packets used?
if (Config.MULTILANG_ENABLE)
{
final String lang = _player.getLang();
if ((lang != null) && !lang.equals("en"))
else if (packet instanceof NpcSay)
{
if (packet instanceof SystemMessage)
{
((SystemMessage) packet).setLang(lang);
}
else if (packet instanceof NpcSay)
{
((NpcSay) packet).setLang(lang);
}
else if (packet instanceof ExShowScreenMessage)
{
((ExShowScreenMessage) packet).setLang(lang);
}
else if (packet instanceof NpcInfo)
{
((NpcInfo) packet).setLang(lang);
}
((NpcSay) packet).setLang(lang);
}
else if (packet instanceof ExShowScreenMessage)
{
((ExShowScreenMessage) packet).setLang(lang);
}
else if (packet instanceof NpcInfo)
{
((NpcInfo) packet).setLang(lang);
}
}
}

View File

@ -16,6 +16,7 @@
*/
package org.l2jmobius.gameserver.network;
import org.l2jmobius.Config;
import org.l2jmobius.commons.network.PacketWriter;
/**
@ -537,6 +538,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)
{

View File

@ -234,15 +234,6 @@ public class GameClient extends ChannelInboundHandler<GameClient>
return;
}
if (Config.DEBUG_OUTGOING_PACKETS)
{
final String name = packet.getClass().getSimpleName();
if (!Config.ALT_DEV_EXCLUDED_PACKETS.contains(name))
{
PacketLogger.info("[S] " + name);
}
}
// TODO: Set as parameter to packets used?
if (Config.MULTILANG_ENABLE)
{

View File

@ -16,6 +16,7 @@
*/
package org.l2jmobius.gameserver.network;
import org.l2jmobius.Config;
import org.l2jmobius.commons.network.PacketWriter;
/**
@ -685,6 +686,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)
{

View File

@ -234,15 +234,6 @@ public class GameClient extends ChannelInboundHandler<GameClient>
return;
}
if (Config.DEBUG_OUTGOING_PACKETS)
{
final String name = packet.getClass().getSimpleName();
if (!Config.ALT_DEV_EXCLUDED_PACKETS.contains(name))
{
PacketLogger.info("[S] " + name);
}
}
// TODO: Set as parameter to packets used?
if (Config.MULTILANG_ENABLE)
{

View File

@ -16,6 +16,7 @@
*/
package org.l2jmobius.gameserver.network;
import org.l2jmobius.Config;
import org.l2jmobius.commons.network.PacketWriter;
/**
@ -709,6 +710,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)
{

View File

@ -234,15 +234,6 @@ public class GameClient extends ChannelInboundHandler<GameClient>
return;
}
if (Config.DEBUG_OUTGOING_PACKETS)
{
final String name = packet.getClass().getSimpleName();
if (!Config.ALT_DEV_EXCLUDED_PACKETS.contains(name))
{
PacketLogger.info("[S] " + name);
}
}
// TODO: Set as parameter to packets used?
if (Config.MULTILANG_ENABLE)
{

View File

@ -16,6 +16,7 @@
*/
package org.l2jmobius.gameserver.network;
import org.l2jmobius.Config;
import org.l2jmobius.commons.network.PacketWriter;
/**
@ -743,6 +744,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)
{

View File

@ -234,15 +234,6 @@ public class GameClient extends ChannelInboundHandler<GameClient>
return;
}
if (Config.DEBUG_OUTGOING_PACKETS)
{
final String name = packet.getClass().getSimpleName();
if (!Config.ALT_DEV_EXCLUDED_PACKETS.contains(name))
{
PacketLogger.info("[S] " + name);
}
}
// TODO: Set as parameter to packets used?
if (Config.MULTILANG_ENABLE)
{

View File

@ -16,6 +16,7 @@
*/
package org.l2jmobius.gameserver.network;
import org.l2jmobius.Config;
import org.l2jmobius.commons.network.PacketWriter;
/**
@ -773,6 +774,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)
{

View File

@ -234,15 +234,6 @@ public class GameClient extends ChannelInboundHandler<GameClient>
return;
}
if (Config.DEBUG_OUTGOING_PACKETS)
{
final String name = packet.getClass().getSimpleName();
if (!Config.ALT_DEV_EXCLUDED_PACKETS.contains(name))
{
PacketLogger.info("[S] " + name);
}
}
// TODO: Set as parameter to packets used?
if (Config.MULTILANG_ENABLE)
{

View File

@ -16,6 +16,7 @@
*/
package org.l2jmobius.gameserver.network;
import org.l2jmobius.Config;
import org.l2jmobius.commons.network.PacketWriter;
/**
@ -815,6 +816,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)
{

View File

@ -234,15 +234,6 @@ public class GameClient extends ChannelInboundHandler<GameClient>
return;
}
if (Config.DEBUG_OUTGOING_PACKETS)
{
final String name = packet.getClass().getSimpleName();
if (!Config.ALT_DEV_EXCLUDED_PACKETS.contains(name))
{
PacketLogger.info("[S] " + name);
}
}
// TODO: Set as parameter to packets used?
if (Config.MULTILANG_ENABLE)
{

View File

@ -16,6 +16,7 @@
*/
package org.l2jmobius.gameserver.network;
import org.l2jmobius.Config;
import org.l2jmobius.commons.network.PacketWriter;
/**
@ -824,6 +825,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)
{

View File

@ -234,15 +234,6 @@ public class GameClient extends ChannelInboundHandler<GameClient>
return;
}
if (Config.DEBUG_OUTGOING_PACKETS)
{
final String name = packet.getClass().getSimpleName();
if (!Config.ALT_DEV_EXCLUDED_PACKETS.contains(name))
{
PacketLogger.info("[S] " + name);
}
}
// TODO: Set as parameter to packets used?
if (Config.MULTILANG_ENABLE)
{

View File

@ -16,6 +16,7 @@
*/
package org.l2jmobius.gameserver.network;
import org.l2jmobius.Config;
import org.l2jmobius.commons.network.PacketWriter;
/**
@ -899,6 +900,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)
{

View File

@ -234,15 +234,6 @@ public class GameClient extends ChannelInboundHandler<GameClient>
return;
}
if (Config.DEBUG_OUTGOING_PACKETS)
{
final String name = packet.getClass().getSimpleName();
if (!Config.ALT_DEV_EXCLUDED_PACKETS.contains(name))
{
PacketLogger.info("[S] " + name);
}
}
// TODO: Set as parameter to packets used?
if (Config.MULTILANG_ENABLE)
{

View File

@ -16,6 +16,7 @@
*/
package org.l2jmobius.gameserver.network;
import org.l2jmobius.Config;
import org.l2jmobius.commons.network.PacketWriter;
/**
@ -824,6 +825,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)
{

View File

@ -234,15 +234,6 @@ public class GameClient extends ChannelInboundHandler<GameClient>
return;
}
if (Config.DEBUG_OUTGOING_PACKETS)
{
final String name = packet.getClass().getSimpleName();
if (!Config.ALT_DEV_EXCLUDED_PACKETS.contains(name))
{
PacketLogger.info("[S] " + name);
}
}
// TODO: Set as parameter to packets used?
if (Config.MULTILANG_ENABLE)
{

View File

@ -16,6 +16,7 @@
*/
package org.l2jmobius.gameserver.network;
import org.l2jmobius.Config;
import org.l2jmobius.commons.network.PacketWriter;
/**
@ -901,6 +902,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)
{

View File

@ -234,15 +234,6 @@ public class GameClient extends ChannelInboundHandler<GameClient>
return;
}
if (Config.DEBUG_OUTGOING_PACKETS)
{
final String name = packet.getClass().getSimpleName();
if (!Config.ALT_DEV_EXCLUDED_PACKETS.contains(name))
{
PacketLogger.info("[S] " + name);
}
}
// TODO: Set as parameter to packets used?
if (Config.MULTILANG_ENABLE)
{

View File

@ -16,6 +16,7 @@
*/
package org.l2jmobius.gameserver.network;
import org.l2jmobius.Config;
import org.l2jmobius.commons.network.PacketWriter;
/**
@ -773,6 +774,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)
{

View File

@ -234,15 +234,6 @@ public class GameClient extends ChannelInboundHandler<GameClient>
return;
}
if (Config.DEBUG_OUTGOING_PACKETS)
{
final String name = packet.getClass().getSimpleName();
if (!Config.ALT_DEV_EXCLUDED_PACKETS.contains(name))
{
PacketLogger.info("[S] " + name);
}
}
// TODO: Set as parameter to packets used?
if (Config.MULTILANG_ENABLE)
{

View File

@ -16,6 +16,7 @@
*/
package org.l2jmobius.gameserver.network;
import org.l2jmobius.Config;
import org.l2jmobius.commons.network.PacketWriter;
/**
@ -954,6 +955,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)
{

View File

@ -234,15 +234,6 @@ public class GameClient extends ChannelInboundHandler<GameClient>
return;
}
if (Config.DEBUG_OUTGOING_PACKETS)
{
final String name = packet.getClass().getSimpleName();
if (!Config.ALT_DEV_EXCLUDED_PACKETS.contains(name))
{
PacketLogger.info("[S] " + name);
}
}
// TODO: Set as parameter to packets used?
if (Config.MULTILANG_ENABLE)
{

View File

@ -16,6 +16,7 @@
*/
package org.l2jmobius.gameserver.network;
import org.l2jmobius.Config;
import org.l2jmobius.commons.network.PacketWriter;
/**
@ -1009,6 +1010,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)
{

View File

@ -234,15 +234,6 @@ public class GameClient extends ChannelInboundHandler<GameClient>
return;
}
if (Config.DEBUG_OUTGOING_PACKETS)
{
final String name = packet.getClass().getSimpleName();
if (!Config.ALT_DEV_EXCLUDED_PACKETS.contains(name))
{
PacketLogger.info("[S] " + name);
}
}
// TODO: Set as parameter to packets used?
if (Config.MULTILANG_ENABLE)
{

View File

@ -16,6 +16,7 @@
*/
package org.l2jmobius.gameserver.network;
import org.l2jmobius.Config;
import org.l2jmobius.commons.network.PacketWriter;
/**
@ -1093,6 +1094,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)
{