hi guys i use l2hardcode 206 rev server and sometimes i get this error in game server and all ingame chars stuck
Exception in thread "SelectorThread-53" java.lang.NullPointerException
at net.sf.l2j.gameserver.network.L2GameClient.onForcedDisconnection(L2Ga
meClient.java:482)
at com.l2jserver.mmocore.network.MMOConnection.onForcedDisconnection(MMO
Connection.java:224)
at com.l2jserver.mmocore.network.SelectorThread.readPacket(SelectorThrea
d.java:380)
at com.l2jserver.mmocore.network.SelectorThread.run(SelectorThread.java:
229)
I open the l2j server and see
1. XOR->NewCrypt.encXORPass(raw, offset, size, Rnd.nextInt()); ---> XOR can also be taken from l2j
2. _staticCrypt.crypt(raw, offset, size);
----->
I scroll down the code and see this code
----->
===================================================
I'm transferring this code to C#
And in c# I first do decryptBlock and then XOR and everything works, I get the package
and the first 2 bytes have already been removed as far as I remember
This only works for the login server.
The blowfish encryption key is used static, it can be found in the l2j server
Question
politsopoulos
hi guys i use l2hardcode 206 rev server and sometimes i get this error in game server and all ingame chars stuck
1 answer to this question
Recommended Posts