Compare commits

..
1 Commits
Author SHA1 Message Date
dark98 b7ce15cbbf 2006Scape compatibility
- Fix welcome-back interface rendering and player icon decoding
- Configure world-aware login and on-demand connections
- Add Java Sound playback and restart title music after logout
- Target Java 8 builds
2026-12-05 02:26:07 +00:00
2 changed files with 6 additions and 4 deletions

No files matched your search

+5
View File
@@ -1,9 +1,14 @@
import java.math.BigInteger;
public class ClientSettings {
public static final String SERVER_HOST = "server.2006scape.org";
public static final int SERVER_WORLD = 1;
public static final boolean SINGLE_ONDEMAND = true;
public static final String SERVER_NAME = "2006Scape";
public static final BigInteger RSA_MODULUS = new BigInteger("91553247461173033466542043374346300088148707506479543786501537350363031301992107112953015516557748875487935404852620239974482067336878286174236183516364787082711186740254168914127361643305190640280157664988536979163450791820893999053469529344247707567448479470137716627440246788713008490213212272520901741443");
public static final BigInteger RSA_EXPONENT = new BigInteger("65537");
public static int getWorldPort(int portOffset) {
return (SERVER_WORLD == 1) ? (43594 + portOffset) : (43596 + SERVER_WORLD + portOffset);
+1 -4
View File
@@ -9,7 +9,6 @@ import java.io.DataInputStream;
import java.io.EOFException;
import java.io.IOException;
import java.io.OutputStream;
import java.math.BigInteger;
import java.net.InetAddress;
import java.net.Socket;
import java.net.URI;
@@ -26,8 +25,6 @@ public class Game extends GameShell {
public static final int[][] designPartColor = {{6798, 107, 10283, 16, 4797, 7744, 5799, 4634, 33697, 22433, 2983, 54193}, {8741, 12, 64030, 43162, 7735, 8404, 1701, 38430, 24094, 10153, 56621, 4783, 1341, 16578, 35003, 25239}, {25238, 8742, 12, 64030, 43162, 7735, 8404, 1701, 38430, 24094, 10153, 56621, 4783, 1341, 16578, 35003}, {4626, 11146, 6439, 12, 4758, 10270}, {4550, 4537, 5681, 5673, 5790, 6806, 8076, 4574}};
public static final int[] designHairColor = {9104, 10275, 7595, 3610, 7975, 8526, 918, 38802, 24466, 10145, 58654, 5027, 1457, 16565, 34991, 25486};
public static final BigInteger RSA_MODULUS = new BigInteger("91553247461173033466542043374346300088148707506479543786501537350363031301992107112953015516557748875487935404852620239974482067336878286174236183516364787082711186740254168914127361643305190640280157664988536979163450791820893999053469529344247707567448479470137716627440246788713008490213212272520901741443");
public static final BigInteger RSA_EXPONENT = new BigInteger("65537");
public static final String VALID_CHAT_CHARACTERS = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!\"\243$%^&*()-_=+[{]};:'@#~,<.>/?\\| ";
public static final int[] BITMASK;
public static final int MAX_PLAYER_COUNT = 2048;
@@ -7054,7 +7051,7 @@ public class Game extends GameShell {
out.write32(Signlink.uid);
out.writeString(username);
out.writeString(password);
out.encrypt(RSA_EXPONENT, RSA_MODULUS);
out.encrypt(ClientSettings.RSA_EXPONENT, ClientSettings.RSA_MODULUS);
login.position = 0;
login.write8(reconnect ? 18 : 16);