| Both sides previous revisionPrevious revisionNext revision | Previous revision |
| games:windows:rt4_client_runescape_530 [2025/09/03 05:17] – Sean Rhone | games:windows:rt4_client_runescape_530 [2025/12/11 20:32] (current) – [25] Sean Rhone |
|---|
| ===== Prerequisites ===== | ===== Prerequisites ===== |
| |
| * [[windows;10|Windows 10 (21H2)]] | * [[windows:10|Windows 10 (21H2)]] |
| * [[programs;windows;git|Git]] | * [[programs;windows;git|Git]] |
| * [[servers:windows:games:2009scape_localhost|2009Scape localhost Server]] | * [[servers:windows:games:2009scape_localhost|2009Scape]] |
| |
| ====== Dependencies ====== | ====== Dependencies ====== |
| ===== Java ===== | ===== Java ===== |
| |
| ==== 21 ==== | ==== 25 ==== |
| |
| * https://learn.microsoft.com/en-us/java/openjdk/download#openjdk-21 | * https://aka.ms/download-jdk/microsoft-jdk-25-windows-x64.msi |
| * Last tested: ''microsoft-jdk-21.0.8-windows-x64.msi'' | * Last tested: ''microsoft-jdk-25.0.1-windows-x64.msi'' |
| |
| * Entire feature install of ''Microsoft Build of OpenJDK'' | * Entire feature install of ''Microsoft Build of OpenJDK'' |
| |
| * https://learn.microsoft.com/en-us/java/openjdk/download#openjdk-17 | * https://learn.microsoft.com/en-us/java/openjdk/download#openjdk-17 |
| * Last tested: ''microsoft-jdk-17.0.16-windows-x64.msi'' | * Last tested: ''microsoft-jdk-17.0.17-windows-x64.msi'' |
| * 2025/04/03: Required for [[#build1|building]] ((17 for [[https://gitlab.com/2009scape/rt4-client/-/blob/master/gradle/wrapper/gradle-wrapper.properties?ref_type=heads#L3|Gradle 7.4.2]] requirement; client runs 21+)) | |
| |
| * All secondary features manually-marked unavailable | * All secondary features manually-marked unavailable |
| ===== Build ===== | ===== Build ===== |
| |
| CD "%UserProfile%\Projects\RT4-Client\src" && SET "JAVA_HOME=%ProgramFiles%\Microsoft\jdk-17.0.16.8-hotspot" && "%UserProfile%\Projects\RT4-Client\src\gradlew.bat" "clean" --no-daemon | CD "%UserProfile%\Projects\RT4-Client\src" && SET "JAVA_HOME=%ProgramFiles%\Microsoft\jdk-17.0.17.10-hotspot" && "%UserProfile%\Projects\RT4-Client\src\gradlew.bat" "clean" --no-daemon |
| |
| CD "%UserProfile%\Projects\RT4-Client\src" && SET "JAVA_HOME=%ProgramFiles%\Microsoft\jdk-17.0.16.8-hotspot" && "%UserProfile%\Projects\RT4-Client\src\gradlew.bat" "jar" --no-daemon | CD "%UserProfile%\Projects\RT4-Client\src" && SET "JAVA_HOME=%ProgramFiles%\Microsoft\jdk-17.0.17.10-hotspot" && "%UserProfile%\Projects\RT4-Client\src\gradlew.bat" "jar" --no-daemon |
| |
| ====== Settings ====== | ====== Settings ====== |
| |
| ====== Scripts ====== | ====== Scripts ====== |
| |
| **** | |
| |
| MKDIR "%UserProfile%\Projects\RT4-Client\scripts" | |
| |
| ===== Client Start ===== | ===== Client Start ===== |
| CD "%UserProfile%\Projects\RT4-Client\src\client" | CD "%UserProfile%\Projects\RT4-Client\src\client" |
| |
| SET "_JAVA_OPTIONS=-Dsun.java2d.uiScale=1 -Djava.net.preferIPv6Addresses=false --add-exports=java.desktop/sun.awt=ALL-UNNAMED -Djava.io.tmpdir=..\..\cache" | SET "_JAVA_OPTIONS=-Dsun.java2d.uiScale=1 -Djava.net.preferIPv6Addresses=false --add-exports=java.desktop/sun.awt=ALL-UNNAMED --enable-native-access=ALL-UNNAMED -Djava.io.tmpdir=..\..\cache" |
| |
| START "" "javaw.exe" -DclientHomeOverride="..\..\cache" -jar "%UserProfile%\Projects\RT4-Client\src\client\build\libs\client-1.0.0.jar" --config "%UserProfile%\Projects\RT4-Client\conf\localhost.json" | START "" "javaw.exe" -DclientHomeOverride="..\..\cache" -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" | CD "%UserProfile%\Projects\RT4-Client\src\client" |
| |
| SET "_JAVA_OPTIONS=-Dsun.java2d.uiScale=2 -Djava.net.preferIPv6Addresses=false --add-exports=java.desktop/sun.awt=ALL-UNNAMED -Djava.io.tmpdir=..\..\cache" | SET "_JAVA_OPTIONS=-Dsun.java2d.uiScale=2 -Djava.net.preferIPv6Addresses=false --add-exports=java.desktop/sun.awt=ALL-UNNAMED --enable-native-access=ALL-UNNAMED -Djava.io.tmpdir=..\..\cache" |
| |
| START "" "javaw.exe" -DclientHomeOverride="..\..\cache" -jar "%UserProfile%\Projects\RT4-Client\src\client\build\libs\client-1.0.0.jar" --config "%UserProfile%\Projects\RT4-Client\conf\localhost.json" | START "" "javaw.exe" -DclientHomeOverride="..\..\cache" -jar "%UserProfile%\Projects\RT4-Client\src\client\build\libs\client-1.0.0.jar" --config "%UserProfile%\Projects\RT4-Client\conf\localhost.json" |
| @echo off | @echo off |
| |
| "%ProgramFiles%\Git\bin\git.exe" -C "%UserProfile%\Projects\RT4-Client\src" reset --hard | TITLE RT4 Client Updater |
| | |
| | "%ProgramFiles%\Git\bin\git.exe" -C "%UserProfile%\Projects\RT4-Client\src" reset --hard "origin/master" |
| "%ProgramFiles%\Git\bin\git.exe" -C "%UserProfile%\Projects\RT4-Client\src" pull origin "master" --rebase | "%ProgramFiles%\Git\bin\git.exe" -C "%UserProfile%\Projects\RT4-Client\src" pull origin "master" --rebase |
| |
| |
| CD "%UserProfile%\Projects\RT4-Client\src" | CD "%UserProfile%\Projects\RT4-Client\src" |
| SET "JAVA_HOME=%ProgramFiles%\Microsoft\jdk-17.0.16.8-hotspot" | |
| | SET "JAVA_HOME=%ProgramFiles%\Microsoft\jdk-17.0.17.10-hotspot" |
| CALL "%UserProfile%\Projects\RT4-Client\src\gradlew.bat" "clean" --no-daemon | CALL "%UserProfile%\Projects\RT4-Client\src\gradlew.bat" "clean" --no-daemon |
| CALL "%UserProfile%\Projects\RT4-Client\src\gradlew.bat" "jar" --no-daemon | CALL "%UserProfile%\Projects\RT4-Client\src\gradlew.bat" "jar" --no-daemon |
| ==== GIMP ==== | ==== GIMP ==== |
| |
| * https://www.gimp.org/downloads/ | * [[windows;10#gimp|Notes]] |
| * Convert source ''saradomin.png'' to ''saradomin.ico'' | * Convert source ''saradomin.png'' to ''saradomin.ico'' |
| * ''Ctrl-Shift-E'' (Export As) | * ''Ctrl-Shift-E'' (Export As) |
| | * 32 bpp, 8-bit alpha, no palette |
| |
| MKDIR "%UserProfile%\Projects\RT4-Client\ext" | MKDIR "%UserProfile%\Projects\RT4-Client\ext" |
| |
| "%LocalAppData%\Programs\GIMP 3\bin\gimp-3.exe" "%UserProfile%\Projects\RT4-Client\src\client\src\main\resources\saradomin.png" | "%ProgramFiles%\GIMP 3\bin\gimp-3.exe" "%UserProfile%\Projects\RT4-Client\src\client\src\main\resources\saradomin.png" |
| |
| <code>..\..\..\..\..\ext\saradomin.ico</code> | <code>..\..\..\..\..\ext\saradomin.ico</code> |