Skip to content

Commit cec799c

Browse files
committed
Whitelabel update
1 parent 3238301 commit cec799c

File tree

11 files changed

+37
-27
lines changed

11 files changed

+37
-27
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ data/models/
2929
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
3030
hs_err_pid*
3131
/config/client-config.yaml
32+
/config/runejs-client.yaml
33+
/config/client-435.conf.yaml
3234

3335
# Gradle
3436
.gradle

README.md

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
11
# RuneScape Java Client #435
22

3-
A RuneScape game client from October of 2006 - the client has been modified specifically for use with RuneJS, a RuneScape game server emulator written in ES6 and TypeScript. **This client is not for OldSchool RuneScape** - it actually pre-dates the very first OSRS client by quite some time.
3+
A RuneScape game client from October of 2006 which has been modified to work with RuneJS, a RuneScape game server emulator written in NodeJS and TypeScript. **This client is not for OldSchool RuneScape** - client #435 pre-dates the very first OSRS client by quite some time.
44

5-
The game client is written in Java, as the original was in 2006. As RuneJS is meant to be a learning experience for game content development, there are no plans to create a JavaScript based RuneJS client at this time.
6-
7-
The purpose of this project being open source is to better understand how the game works under the hood, allowing for a better RuneJS game server. Obfuscation cleanup is always welcome! :)
8-
9-
We've no interest in OSRS client hacking, this client exists solely to log into RuneJS and has been modified accordingly.
5+
We've no interest in OSRS client hacking, this client exists as a means to develop on RuneJS game servers and will not work with other server emulators.
106

117
## Usage
128

@@ -16,28 +12,30 @@ Running the client can be done either with the pre-built client JAR file or by b
1612

1713
Running the pre-built client requires having Java installed: https://www.java.com/en/
1814

19-
Once installed, go into the `/prebuilt/` and simply double-click the JAR file to run it. Alternatively, if double clicking the JAR does not work, you can use the command `java -jar RuneJS_Client.jar` from the `/prebuilt/` directory.
15+
Once installed, go into the `/prebuilt/` and simply double-click the JAR file to run it. Alternatively, if double clicking the JAR does not work, you can use the command `java -jar client-435.jar` from the `/prebuilt/` directory.
2016

2117
The client will use a set of default configurations if no file is provided. The default client configuration matches up to the default RuneJS server configuration for quick and easy initial setup. It's highly advised that you generate your own RSA public and private keys for long term use.
2218

23-
To provide your own configurations, create a file named `runejs-client.yaml` in your User Home directory with the following content:
19+
To provide your own configurations, create a file named `client-435.conf.yaml` in your User Home directory with the following content:
2420

2521
```yaml
2622
net:
2723
address: 127.0.0.1
2824
game_port: 43594
2925
cache:
30-
cacheDir: .runejs_cache
31-
jaggrabEnabled: false
26+
cacheDir: .filestore_435
3227
rsa:
33-
rsaPub: YOUR_RSA_PUBLIC_KEY
34-
rsaModulus: YOUR_RSA_PRIVATE_KEY
28+
rsaPub: YOUR_RSA_PUBLIC_KEY (default dev pair provided in the example file)
29+
rsaModulus: YOUR_RSA_PRIVATE_KEY (default dev pair provided in the example file)
3530
login:
36-
useStaticCredentials: false
31+
useStaticCredentials: true
32+
username: a
33+
password: a
3734
game:
3835
roofsEnabled: true
3936
freeTeleports: false
4037
debugContextMenu: true
38+
serverDisplayName: Build 435
4139
```
4240
4341
Make sure to modify the given configuration for your specific needs.
@@ -55,7 +53,7 @@ The `application` gradle plugin provides the `run` task, which starts up the Mai
5553
arguments can be provided via `--args`.
5654

5755
```
58-
./gradlew run --args="1 live live highmem members"
56+
./gradlew run
5957
```
6058
6159
**Building a Jar**
@@ -64,5 +62,5 @@ The `jar` task can be used to build a jar, which is generated in the `build/libs
6462
6563
```
6664
./gradlew jar
67-
java -jar ./build/libs/435-client-0.1.jar 1 live live highmem members
65+
java -jar ./build/libs/client-435-0.1.jar
6866
```

config/runejs-client.example.yaml renamed to config/client-435.conf.example.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ net:
22
address: 127.0.0.1
33
game_port: 43594
44
cache:
5-
cacheDir: .runejs_cache
5+
cacheDir: .filestore_435
66
rsa:
77
rsaPub: 65537
88
rsaModulus: 119568088839203297999728368933573315070738693395974011872885408638642676871679245723887367232256427712869170521351089799352546294030059890127723509653145359924771433131004387212857375068629466435244653901851504845054452735390701003613803443469723435116497545687393297329052988014281948392136928774011011998343
@@ -14,3 +14,4 @@ game:
1414
roofsEnabled: true
1515
freeTeleports: false
1616
debugContextMenu: true
17+
serverDisplayName: Build 435

prebuilt/RuneJS_Client.jar

-958 KB
Binary file not shown.

prebuilt/client-435-0.1.jar

987 KB
Binary file not shown.

settings.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
rootProject.name = 'runejs-client'
1+
rootProject.name = 'client-435'

src/main/java/com/jagex/runescape/GameShell.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ public void openClientApplet(String cacheFolder, int cacheIndexes, int fileStore
425425
IdentityKit.height = height;
426426
MovedStatics.anApplet_Sub1_179 = this;
427427
Class35.aFrame1732 = new Frame();
428-
Class35.aFrame1732.setTitle("Jagex");
428+
Class35.aFrame1732.setTitle(Configuration.SERVER_DISPLAY_NAME);
429429
// Class35.aFrame1732.setResizable(false);
430430
ScreenController.frameMode(ScreenMode.FIXED);
431431
Class35.aFrame1732.setPreferredSize(new Dimension(width, height));

src/main/java/com/jagex/runescape/Main.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -657,7 +657,7 @@ else if (params[3].equals("highmem"))
657657
} else
658658
Class22.membersWorld = false;
659659
Main main = new Main();
660-
main.openClientApplet("runescape", 13, 32 + Class44.modewhat, InetAddress.getByName(Configuration.SERVER_ADDRESS), 435);
660+
main.openClientApplet("client435", 13, 32 + Class44.modewhat, InetAddress.getByName(Configuration.SERVER_ADDRESS), 435);
661661

662662
} catch (Exception exception) {
663663
exception.printStackTrace();

src/main/java/com/jagex/runescape/frame/console/Console.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
import com.jagex.runescape.media.renderable.actor.Player;
1313
import com.jagex.runescape.scene.SceneCluster;
1414
import com.jagex.runescape.scene.tile.WallDecoration;
15+
import tech.henning.fourthreefive.Configuration;
1516

1617
import java.awt.*;
1718
import java.awt.datatransfer.Clipboard;
@@ -22,7 +23,7 @@
2223
import java.util.List;
2324

2425
public class Console {
25-
private static final String CONSOLE_VERSION = "RuneJS #435";
26+
private static final String CONSOLE_VERSION = Configuration.SERVER_DISPLAY_NAME;
2627
public static Console console; // TODO: Temp until finding a better spot to store this
2728
private String[] consoleMessages;
2829
private int messageCount;
@@ -50,7 +51,7 @@ public Console() {
5051
this.previousCommandCount = 1;
5152
this.previousCommandIndex = 1;
5253
this.commands = new CommandList();
53-
this.log("Welcome to the RuneJS console, type help for help.");
54+
this.log("Welcome to the " + Configuration.SERVER_DISPLAY_NAME + " console, type help for help.");
5455
this.initialiseCommands();
5556
}
5657

src/main/java/com/jagex/runescape/language/English.java

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
package com.jagex.runescape.language;
22

33

4+
import tech.henning.fourthreefive.Configuration;
5+
46
public class English {
57
public static String suffixFromYourIgnoreListFirst = " from your ignore list first";
68
public static String suffixHasLoggedIn = " has logged in.";
@@ -75,8 +77,8 @@ public class English {
7577
public static String effectRed = "red:";
7678
public static String remove = "Remove";
7779
public static String reportAbuse = "Report abuse";
78-
public static String runeScapeHasBeenUpdated = "RuneScape has been updated!";
79-
public static String runeScapeIsLoadingPleaseWait = "RuneScape is loading - please wait...";
80+
public static String runeScapeHasBeenUpdated = Configuration.SERVER_DISPLAY_NAME + " has been updated!";
81+
public static String runeScapeIsLoadingPleaseWait = Configuration.SERVER_DISPLAY_NAME + " is loading - please wait...";
8082
public static String sidePanelRedrawn = "Side panel redrawn";
8183
public static String prefixSkill = "skill-";
8284
public static String effectSlide = "slide:";
@@ -122,7 +124,7 @@ public class English {
122124
public static String malformedLoginPacket = "Malformed login packet.";
123125
public static String pleaseTryAgain = "Please try again.";
124126
public static String pleaseWait1MinuteAndTryAgain = "Please wait 1 minute and try again.";
125-
public static String welcomeToRunescape = "Welcome to RuneScape";
127+
public static String welcomeToRunescape = "Welcome to " + Configuration.SERVER_DISPLAY_NAME;
126128
public static String use = "Use";
127129
public static String accountLockedAsWeSuspectItHasBeenStolen = "Account locked as we suspect it has been stolen.";
128130
public static String loadedWordpack = "Loaded wordpack";
@@ -169,7 +171,7 @@ public class English {
169171
public static String connectingToUpdateServer = "Connecting to update server";
170172
public static String addFriend = "Add friend";
171173
public static String andChooseTheCreateAccount = "and choose the 'create account'";
172-
public static String goBackToTheMainRunescapeWebPage = "go back to the main RuneScape webpage";
174+
public static String goBackToTheMainRunescapeWebPage = "go back to the main " + Configuration.SERVER_DISPLAY_NAME + " webpage";
173175
public static String sContinue = "Continue";
174176
public static String ok = "Ok";
175177
public static String commandFpson = "::fpson";

0 commit comments

Comments
 (0)