Dropped login support for protocol 235.

This commit is contained in:
MobiusDevelopment 2019-12-31 13:43:01 +00:00
parent 9e3fb16374
commit d92b0d9627
6 changed files with 6 additions and 40 deletions

View File

@ -102,8 +102,7 @@ MaximumOnlineUsers = 2000
# Delimiter is ; # Delimiter is ;
# WARNING: <u><b><font color="red">Changing the protocol revision may result in incompatible communication and many errors in game!</font></b></u> # WARNING: <u><b><font color="red">Changing the protocol revision may result in incompatible communication and many errors in game!</font></b></u>
# Prelude of War: 228 # Prelude of War: 228
# Prelude of War - Part 2: 235 AllowedProtocolRevisions = 228
AllowedProtocolRevisions = 228;235
# Displays server type next to the server name on character selection. # Displays server type next to the server name on character selection.
# Notes: # Notes:

View File

@ -138,13 +138,11 @@ public class UserInfo extends AbstractMaskPacket<UserInfoType>
return false; return false;
} }
final boolean isProtocol235 = (_player.getClient() != null) && (_player.getClient().getProtocolVersion() == 235);
OutgoingPackets.USER_INFO.writeId(packet); OutgoingPackets.USER_INFO.writeId(packet);
packet.writeD(_player.getObjectId()); packet.writeD(_player.getObjectId());
packet.writeD(_initSize); packet.writeD(_initSize);
packet.writeH(isProtocol235 ? 27 : 25); // 196 - 25, 235 - 27 packet.writeH(25); // 196 - 25
packet.writeB(_masks); packet.writeB(_masks);
if (containsMask(UserInfoType.RELATION)) if (containsMask(UserInfoType.RELATION))
@ -414,16 +412,6 @@ public class UserInfo extends AbstractMaskPacket<UserInfoType>
packet.writeD(0x00); packet.writeD(0x00);
} }
if (isProtocol235)
{
// 1
packet.writeH(6);
packet.writeC(0);
// 2
packet.writeH(6);
packet.writeC(0);
}
return true; return true;
} }

View File

@ -1,12 +1,8 @@
L2J-Mobius Prelude of War (protocol 228) L2J-Mobius Prelude of War
Client Mirror 1: https://drive.google.com/uc?id=1rXtgV9l67b5lBeK_wmCKITE1DQ7EgEJ8&export=download Client Mirror 1: https://drive.google.com/uc?id=1rXtgV9l67b5lBeK_wmCKITE1DQ7EgEJ8&export=download
Client Mirror 2: https://drive.google.com/uc?id=1IugZjcpS5n9_EJPLCecB3H_tLmVlqo2L&export=download Client Mirror 2: https://drive.google.com/uc?id=1IugZjcpS5n9_EJPLCecB3H_tLmVlqo2L&export=download
System: https://mega.nz/#!98likSra!vP3uaDwJs8oiY5q60UzBSXAbgNELWX_dycWb98Mz96U System: https://mega.nz/#!98likSra!vP3uaDwJs8oiY5q60UzBSXAbgNELWX_dycWb98Mz96U
L2J-Mobius Prelude of War - Part 2 (protocol 235) [Login support only!]
Client: https://drive.google.com/uc?id=1MFxyk0upVRqW1HSnkgqvD3As2JAWEMGk&export=download
System: https://mega.nz/#!IsEhQI4K!DkdkNgUmu79by1Ogc0qcAE5P4kJAVqzKhlhDL3iZTwA
Geodata: http://www.mediafire.com/file/w6f0r5opnlopzbq/L2J_Mobius_6.0_Fafurion_Geodata.zip Geodata: http://www.mediafire.com/file/w6f0r5opnlopzbq/L2J_Mobius_6.0_Fafurion_Geodata.zip
JDK: https://www.mediafire.com/file/k25pt0umuf16uoh/openjdk-12.0.2_windows-x64_bin.zip JDK: https://www.mediafire.com/file/k25pt0umuf16uoh/openjdk-12.0.2_windows-x64_bin.zip

View File

@ -102,8 +102,7 @@ MaximumOnlineUsers = 2000
# Delimiter is ; # Delimiter is ;
# WARNING: <u><b><font color="red">Changing the protocol revision may result in incompatible communication and many errors in game!</font></b></u> # WARNING: <u><b><font color="red">Changing the protocol revision may result in incompatible communication and many errors in game!</font></b></u>
# The Kamael: 228 # The Kamael: 228
# Essence: 235 AllowedProtocolRevisions = 228
AllowedProtocolRevisions = 228;235
# Displays server type next to the server name on character selection. # Displays server type next to the server name on character selection.
# Notes: # Notes:

View File

@ -136,13 +136,11 @@ public class UserInfo extends AbstractMaskPacket<UserInfoType>
return false; return false;
} }
final boolean isProtocol235 = (_player.getClient() != null) && (_player.getClient().getProtocolVersion() == 235);
OutgoingPackets.USER_INFO.writeId(packet); OutgoingPackets.USER_INFO.writeId(packet);
packet.writeD(_player.getObjectId()); packet.writeD(_player.getObjectId());
packet.writeD(_initSize); packet.writeD(_initSize);
packet.writeH(isProtocol235 ? 27 : 25); // 196 - 25, 235 - 27 packet.writeH(25); // 196 - 25
packet.writeB(_masks); packet.writeB(_masks);
if (containsMask(UserInfoType.RELATION)) if (containsMask(UserInfoType.RELATION))
@ -427,16 +425,6 @@ public class UserInfo extends AbstractMaskPacket<UserInfoType>
packet.writeD(0x00); packet.writeD(0x00);
} }
if (isProtocol235)
{
// 1
packet.writeH(6);
packet.writeC(0);
// 2
packet.writeH(6);
packet.writeC(0);
}
return true; return true;
} }

View File

@ -1,12 +1,8 @@
L2J-Mobius The Kamael (protocol 228) L2J-Mobius The Kamael
Client Mirror 1: https://drive.google.com/uc?id=1rXtgV9l67b5lBeK_wmCKITE1DQ7EgEJ8&export=download Client Mirror 1: https://drive.google.com/uc?id=1rXtgV9l67b5lBeK_wmCKITE1DQ7EgEJ8&export=download
Client Mirror 2: https://drive.google.com/uc?id=1IugZjcpS5n9_EJPLCecB3H_tLmVlqo2L&export=download Client Mirror 2: https://drive.google.com/uc?id=1IugZjcpS5n9_EJPLCecB3H_tLmVlqo2L&export=download
System: https://mega.nz/#!98likSra!vP3uaDwJs8oiY5q60UzBSXAbgNELWX_dycWb98Mz96U System: https://mega.nz/#!98likSra!vP3uaDwJs8oiY5q60UzBSXAbgNELWX_dycWb98Mz96U
L2J-Mobius Essence (protocol 235) [Login support only!]
Client: https://drive.google.com/uc?id=1MFxyk0upVRqW1HSnkgqvD3As2JAWEMGk&export=download
System: https://mega.nz/#!IsEhQI4K!DkdkNgUmu79by1Ogc0qcAE5P4kJAVqzKhlhDL3iZTwA
Geodata: http://www.mediafire.com/file/tas8fp9ee2r6mn9/L2J_Mobius_Classic_2.2_Antharas_Geodata.zip Geodata: http://www.mediafire.com/file/tas8fp9ee2r6mn9/L2J_Mobius_Classic_2.2_Antharas_Geodata.zip
JDK: https://www.mediafire.com/file/k25pt0umuf16uoh/openjdk-12.0.2_windows-x64_bin.zip JDK: https://www.mediafire.com/file/k25pt0umuf16uoh/openjdk-12.0.2_windows-x64_bin.zip