Added new JS5 file server (launcher no longer has to handle cache downloading) - PLEASE SET YOUR CACHE LOCATION IN file-server.properties

Updated client to connect to the new file server
This commit is contained in:
Woah 2021-03-26 21:58:25 -04:00
parent a8e2c99073
commit 680925744d
15 changed files with 482 additions and 2979 deletions

View file

@ -1315,6 +1315,7 @@ public final class Client extends GameShell {
if (Class58.aJs5Worker_917.errors > Class163_Sub2_Sub1.anInt4026) {
anInt3068 = 5 * 50 * (Class58.aJs5Worker_917.errors + -1);
//Port swap
if (Class162.anInt2036 == Class140_Sub6.accRegistryPort) {
Class140_Sub6.accRegistryPort = currentPort;
} else {
@ -1357,12 +1358,16 @@ public final class Client extends GameShell {
} else {
try {
if (PacketParser.anInt80 == 0) {
Class17.aClass64_413 = Class38.gameSignlink.method1441((byte) 8, Class38_Sub1.accRegistryIp, Class140_Sub6.accRegistryPort);
System.out.println("Trying " + GameConfig.Companion.getJS5_SERVER_PORT());
Class17.aClass64_413 = Class38.gameSignlink.method1441((byte) 8, Class38_Sub1.accRegistryIp, GameConfig.Companion.getJS5_SERVER_PORT());
++PacketParser.anInt80;
}
if (PacketParser.anInt80 == 1) {
/* If the connection is null we reset the JS5 port to the backup server JS5 for compatibility reasons */
if (2 == Objects.requireNonNull(Class17.aClass64_413).anInt978) {
GameConfig.Companion.setJS5_SERVER_PORT(GameConfig.SERVER_PORT + ObjectDefinition.paramWorldID);
this.method46(1000);
return;
}