Table of Contents

Information

Prerequisites

Notes

Dependencies

Git

Java

HD Fullscreen

Download Source

git clone --branch "master" --depth "1" --recurse-submodules "https://gitlab.com/2009scape/rt4-client.git" "%UserProfile%\Projects\RT4-Client\src"
explorer "%UserProfile%\Projects\RT4-Client\src"

Build

CD "%UserProfile%\Projects\RT4-Client\src" && "%UserProfile%\Projects\RT4-Client\src\gradlew.bat" "clean"
CD "%UserProfile%\Projects\RT4-Client\src" && "%UserProfile%\Projects\RT4-Client\src\gradlew.bat" "jar"
CD "%UserProfile%\Projects\RT4-Client\src" && "%UserProfile%\Projects\RT4-Client\src\gradlew.bat" --stop

Settings

localhost

MKDIR "%UserProfile%\Projects\RT4-Client\conf"
notepad "%UserProfile%\Projects\RT4-Client\conf\localhost.json"
{
    "ip_management": "localhost",
    "ip_address": "localhost",
    "world": 1,
    "server_port": 43594,
    "wl_port": 43595,
    "js5_port": 43595,
    "mouseWheelZoom": false,
    "pluginsFolder": "null"
}

Scripts

MKDIR "%UserProfile%\Projects\RT4-Client\scripts"

Client Start

notepad "%UserProfile%\Projects\RT4-Client\scripts\client-start.bat"
@echo off

CD "%UserProfile%\Projects\RT4-Client\src\client"
START "" "%ProgramFiles%\Microsoft\jdk-11.0.25.9-hotspot\bin\javaw.exe" -XX:+UseSerialGC -Xms1G -Xmx4G --add-exports=java.desktop/sun.awt=ALL-UNNAMED -jar "%UserProfile%\Projects\RT4-Client\src\client\build\libs\client-1.0.0.jar" --config "%UserProfile%\Projects\RT4-Client\conf\localhost.json"

:: End

High DPI

notepad "%UserProfile%\Projects\RT4-Client\scripts\client-hidpi-start.bat"
@echo off

CD "%UserProfile%\Projects\RT4-Client\src\client"
START "" "%ProgramFiles%\Microsoft\jdk-11.0.25.9-hotspot\bin\javaw.exe" -XX:+UseSerialGC -Xms1G -Xmx4G --add-exports=java.desktop/sun.awt=ALL-UNNAMED -Dsun.java2d.uiScale=2 -jar "%UserProfile%\Projects\RT4-Client\src\client\build\libs\client-1.0.0.jar" --config "%UserProfile%\Projects\RT4-Client\conf\localhost.json"

:: End

Client Update

notepad "%UserProfile%\Projects\RT4-Client\scripts\client-update.bat"
@echo off

git -C "%UserProfile%\Projects\RT4-Client\src" reset --hard
git -C "%UserProfile%\Projects\RT4-Client\src" pull origin "master" --rebase

CD "%UserProfile%\Projects\RT4-Client\src"
CALL "%UserProfile%\Projects\RT4-Client\src\gradlew.bat" "clean"
CALL "%UserProfile%\Projects\RT4-Client\src\gradlew.bat" "jar"
CALL "%UserProfile%\Projects\RT4-Client\src\gradlew.bat" --stop

:: End

Launcher Shortcuts

Icon

MKDIR "%UserProfile%\Projects\RT4-Client\ext"
explorer "%UserProfile%\Projects\RT4-Client\ext"
explorer "%UserProfile%\Projects\RT4-Client\src\client\src\main\resources"
"%UserProfile%\Projects\RT4-Client\ext\saradomin.ico"

Desktop

Client

"%UserProfile%\Projects\RT4-Client\scripts\client-start.bat"
2009Scape
"%UserProfile%\Projects\RT4-Client\ext\saradomin.ico"

High DPI

"%UserProfile%\Projects\RT4-Client\scripts\client-hidpi-start.bat"
2009Scape (HiDPI)
"%UserProfile%\Projects\RT4-Client\ext\saradomin.ico"

Start Menu

MKDIR "%AppData%\Microsoft\Windows\Start Menu\Programs\2009Scape"

Shortcuts

explorer "%AppData%\Microsoft\Windows\Start Menu\Programs\2009Scape"

Client

"%UserProfile%\Projects\RT4-Client\scripts\client-start.bat"
2009Scape (Client)
"%UserProfile%\Projects\RT4-Client\ext\saradomin.ico"

High DPI

"%UserProfile%\Projects\RT4-Client\scripts\client-hidpi-start.bat"
2009Scape (HiDPI)
"%UserProfile%\Projects\RT4-Client\ext\saradomin.ico"

Update

"%UserProfile%\Projects\RT4-Client\scripts\client-update.bat"
Client Updater

Updates Check

https://gitlab.com/2009scape/rt4-client/-/commits/master
Client - Updates Check

Install Notes

https://wiki.realmofespionage.xyz/games:windows:rt4_client_runescape_530
Client - Install Notes

Steam

"C:\Program Files\Microsoft\jdk-11.0.25.9-hotspot\bin\javaw.exe"
2009Scape (localhost)
C:\Users\Espionage724\Projects\RT4-Client\src\client\src\main\resources\saradomin.png
C:\Users\Espionage724\Projects\RT4-Client\src\client
-XX:+UseSerialGC -Xms1G -Xmx4G --add-exports=java.desktop/sun.awt=ALL-UNNAMED -jar "C:\Users\Espionage724\Projects\RT4-Client\src\client\build\libs\client-1.0.0.jar" --config "C:\Users\Espionage724\Projects\RT4-Client\conf\localhost.json"

High DPI

"C:\Program Files\Microsoft\jdk-11.0.25.9-hotspot\bin\javaw.exe"
2009Scape (localhost) - HiDPI
C:\Users\Espionage724\Projects\RT4-Client\src\client\src\main\resources\saradomin.png
C:\Users\Espionage724\Projects\RT4-Client\src\client
-XX:+UseSerialGC -Xms1G -Xmx4G --add-exports=java.desktop/sun.awt=ALL-UNNAMED -Dsun.java2d.uiScale=2 -jar "C:\Users\Espionage724\Projects\RT4-Client\src\client\build\libs\client-1.0.0.jar" --config "C:\Users\Espionage724\Projects\RT4-Client\conf\localhost.json"

Quick Commands

Execute

System Java

CD "%UserProfile%\Projects\RT4-Client\src\client" && java -jar "%UserProfile%\Projects\RT4-Client\src\client\build\libs\client-1.0.0.jar" --config "%UserProfile%\Projects\RT4-Client\conf\localhost.json"

Testing

CD "%UserProfile%\Projects\RT4-Client\src\client" && "%ProgramFiles%\Microsoft\jdk-11.0.25.9-hotspot\bin\java.exe" -XX:+UseSerialGC -Xms1G -Xmx4G --add-exports=java.desktop/sun.awt=ALL-UNNAMED -jar "%UserProfile%\Projects\RT4-Client\src\client\build\libs\client-1.0.0.jar" --config "%UserProfile%\Projects\RT4-Client\conf\localhost.json"
CD "%UserProfile%\Projects\RT4-Client\src\client" && "%ProgramFiles%\Microsoft\jdk-11.0.25.9-hotspot\bin\java.exe" -XX:+UseSerialGC -Xms1G -Xmx4G --add-exports=java.desktop/sun.awt=ALL-UNNAMED -Dsun.java2d.uiScale=2 -jar "%UserProfile%\Projects\RT4-Client\src\client\build\libs\client-1.0.0.jar" --config "%UserProfile%\Projects\RT4-Client\conf\localhost.json"

Update

git -C ~/'Projects/RT4-Client/src' reset --hard && git -C ~/'Projects/RT4-Client/src' pull origin 'master' --rebase && cd ~/'Projects/RT4-Client/src' && ~/'Projects/RT4-Client/src/gradlew' 'clean' && ~/'Projects/RT4-Client/src/gradlew' 'jar' && ~/'Projects/RT4-Client/src/gradlew' --stop && cd ~ && sync
~/'Projects/RT4-Client/scripts/client-update.sh'

gradlew

CD "%UserProfile%\Projects\RT4-Client\src" && "%UserProfile%\Projects\RT4-Client\src\gradlew.bat" "tasks" && "%UserProfile%\Projects\RT4-Client\src\gradlew.bat" --stop
CD "%UserProfile%\Projects\RT4-Client\src" && "%UserProfile%\Projects\RT4-Client\src\gradlew.bat" "tasks" --all && "%UserProfile%\Projects\RT4-Client\src\gradlew.bat" --stop
CD "%UserProfile%\Projects\RT4-Client\src" && "%UserProfile%\Projects\RT4-Client\src\gradlew.bat" --stop

File Manager

Root

explorer "%UserProfile%\Projects\RT4-Client\src"

Plugins

explorer "%UserProfile%\Projects\RT4-Client\src\client\plugins"
3)
2024/11/07: Still true with JDK 17 on W10 and Intel UHD 630 as of 5cf2f187; JDK 11 fullscreens fine
4)
only need the binary files present; PATHs expect JDK 17+
5)
Windows 10 can't use .png as icons; GIMP converts easily
6)
both zoom (hold Ctrl or Shift) and camera rotation movement (wheel-hold); neither are available by-default without the plugin enabled