| Both sides previous revisionPrevious revisionNext revision | Previous revision |
| servers:linux:games:2009scape_localhost [2026/05/22 00:27] – old revision restored (2026/05/04 02:41) Sean Rhone | servers:linux:games:2009scape_localhost [2026/07/11 08:33] (current) – Sean Rhone |
|---|
| ====== Information ====== | ====== Information ====== |
| |
| * 2009Scape Server ((https://gitlab.com/2009scape/2009scape)) | * 2009Scape Server |
| | |
| * These notes provide a local single-player server for 2009Scape ((RSPS/RuneScape Private Server based on cache ''530'' from 2009, [[https://gitlab.com/2009scape/2009scape#history-of-this-codebase|more info]])) | |
| |
| ===== Media ===== | ===== Media ===== |
| * https://gitlab.com/2009scape/2009scape#prerequisites | * https://gitlab.com/2009scape/2009scape#prerequisites |
| |
| sudo zypper install git-core git-lfs java-21-openjdk-devel | sudo zypper install git-core git-lfs java-21-openjdk-headless java-26-openjdk-headless |
| |
| ====== Download Source ====== | ====== Download Source ====== |
| ====== Initial Build ====== | ====== Initial Build ====== |
| |
| * ~5 minutes i5-8400H ((2026/05/04: ''03:17 min'' 4C8T)) | * ~5 minutes i5-8400H ((2026/05/22: ''03:18 min'' 4C4T)) |
| |
| cd ~/'Projects/2009Scape-Server/src/Server' && JAVA_HOME='/usr/lib64/jvm/java-21-openjdk-21' ~/'Projects/2009Scape-Server/src/Server/mvnw' --define 'skipTests' 'clean' 'package' && cd - | cd ~/'Projects/2009Scape-Server/src/Server' && JAVA_HOME='/usr/lib64/jvm/java-21-openjdk-21' ~/'Projects/2009Scape-Server/src/Server/mvnw' --define 'skipTests' 'clean' 'package' && cd - |
| ====== Settings ====== | ====== Settings ====== |
| |
| * Last commit: [[https://gitlab.com/2009scape/2009scape/-/commit/dfb53cfa03fff99374e60875e01a16f10d995749|November 25, 2025]] ''dfb53cfa'' | * Last commit: [[https://gitlab.com/2009scape/2009scape/-/commit/afeffc1b98a565572c39d0aaeda925fbba6ab2aa|Jul 3, 2026]] ''afeffc1b'' |
| * [[https://gitlab.com/2009scape/2009scape/-/commits/master/Server/worldprops/default.conf?ref_type=heads|New commits check]] | * [[https://gitlab.com/2009scape/2009scape/-/commits/master/Server/worldprops/default.conf?ref_type=heads|New commits check]] |
| * [[https://gitlab.com/2009scape/2009scape/-/blob/master/Server/worldprops/default.conf?ref_type=heads|Upstream worldprops/default.conf]] ([[https://gitlab.com/2009scape/2009scape/-/raw/master/Server/worldprops/default.conf?ref_type=heads|raw]]) | * [[https://gitlab.com/2009scape/2009scape/-/blob/master/Server/worldprops/default.conf?ref_type=heads|Upstream worldprops/default.conf]] ([[https://gitlab.com/2009scape/2009scape/-/raw/master/Server/worldprops/default.conf?ref_type=heads|raw]]) |
| * [[https://gitlab.com/2009scape/2009scape/-/blob/master/Server/src/main/core/game/worldevents/holiday/HolidayRandoms.kt|HolidayRandoms.kt]] | * [[https://gitlab.com/2009scape/2009scape/-/blob/master/Server/src/main/core/game/worldevents/holiday/HolidayRandoms.kt|HolidayRandoms.kt]] |
| |
| * :!: ''force_christmas_randoms'' is enabled | |
| |
| mkdir -p ~/'Projects/2009Scape-Server/conf' && nano ~/'Projects/2009Scape-Server/conf/localhost.conf' | mkdir -p ~/'Projects/2009Scape-Server/conf' && nano ~/'Projects/2009Scape-Server/conf/localhost.conf' |
| connectivity_check_url = "localhost" | connectivity_check_url = "localhost" |
| connectivity_timeout = 500 | connectivity_timeout = 500 |
| | websocket_enabled = false |
| | websocket_port = 0 |
| | websocket_tls_enabled = false |
| | websocket_tls_keystore_path = "" |
| | websocket_tls_keystore_password = "" |
| |
| [database] | [database] |
| motw_identifier = "0" | motw_identifier = "0" |
| motw_text = "Welcome to your localhost server!" | motw_text = "Welcome to your localhost server!" |
| new_player_location = "2524,5002,0" | new_player_location = "3094,3107,0" |
| home_location = "3222,3218,0" | home_location = "3222,3218,0" |
| autostock_ge = false | autostock_ge = false |
| inauthentic_candlelight_random = false | inauthentic_candlelight_random = false |
| ######################################## | ######################################## |
| holiday_event_randoms = true | holiday_event_randoms = false |
| force_halloween_randoms = false | force_halloween_randoms = false |
| force_christmas_randoms = true | force_christmas_randoms = false |
| ######################################## | ######################################## |
| | april_fools_event = false |
| | force_april_fools = false |
| runecrafting_formula_revision = 530 | runecrafting_formula_revision = 530 |
| enhanced_deep_wilderness = false | enhanced_deep_wilderness = false |
| export _JAVA_OPTIONS="--sun-misc-unsafe-memory-access='allow' --enable-native-access='ALL-UNNAMED' -Djava.net.preferIPv6Addresses='false'" | export _JAVA_OPTIONS="--sun-misc-unsafe-memory-access='allow' --enable-native-access='ALL-UNNAMED' -Djava.net.preferIPv6Addresses='false'" |
| |
| '/usr/lib64/jvm/java-25-openjdk-25/bin/java' -jar ~/'Projects/2009Scape-Server/src/Server/target/server-'*'-jar-with-dependencies.jar' '../../conf/localhost.conf' | '/usr/lib64/jvm/java-26-openjdk-26/bin/java' -jar ~/'Projects/2009Scape-Server/src/Server/target/server-'*'-jar-with-dependencies.jar' '../../conf/localhost.conf' |
| |
| unset '_JAVA_OPTIONS' | unset '_JAVA_OPTIONS' |
| | cd '/tmp' |
| |
| # End</code> | # End</code> |
| <code> | <code> |
| #!/bin/bash | #!/bin/bash |
| | |
| | cd '/tmp' |
| |
| git -C ~/'Projects/2009Scape-Server/src' reset --hard 'origin/master' | git -C ~/'Projects/2009Scape-Server/src' reset --hard 'origin/master' |
| cd ~/'Projects/2009Scape-Server/src/Server' | cd ~/'Projects/2009Scape-Server/src/Server' |
| |
| export JAVA_HOME='/usr/lib64/jvm/java-17-openjdk-17' | export JAVA_HOME='/usr/lib64/jvm/java-21-openjdk-21' |
| |
| ~/'Projects/2009Scape-Server/src/Server/mvnw' 'clean' 'package' -DskipTests | ~/'Projects/2009Scape-Server/src/Server/mvnw' --define 'skipTests' 'clean' 'package' |
| |
| unset 'JAVA_HOME' | unset 'JAVA_HOME' |
| | cd '/tmp' |
| |
| notify-send -t '2000' -i ~/'Projects/RT4-Client/src/client/src/main/resources/saradomin.png' '2009Scape localhost server update complete' | zenity --title '2009Scape Updater' --text 'localhost server update complete' --icon ~/'Projects/RT4-Client/src/client/src/main/resources/saradomin.png' --timeout '2' --info |
| | : |
| |
| # End</code> | # End</code> |
| <code> | <code> |
| #!/bin/bash | #!/bin/bash |
| | |
| | cd '/tmp' |
| |
| tar -czf ~/'Downloads/'$(date +%Y-%m-%d-%s)'-2009Scape-localhost-Saves.tar.gz' -C ~/'Projects/2009Scape-Server/src/Server/data' 'players' | tar -czf ~/'Downloads/'$(date +%Y-%m-%d-%s)'-2009Scape-localhost-Saves.tar.gz' -C ~/'Projects/2009Scape-Server/src/Server/data' 'players' |
| |
| notify-send -t '2000' -i ~/'Projects/RT4-Client/src/client/src/main/resources/saradomin.png' '2009Scape Save Data Backed-up Successfully to Downloads' | zenity --title '2009Scape Save Backup' --text 'Save Data Backed-up to Downloads' --icon ~/'Projects/RT4-Client/src/client/src/main/resources/saradomin.png' --timeout '2' --info |
| |
| # End</code> | # End</code> |
| ===== Save Restore ===== | ===== Save Restore ===== |
| |
| * ''src/Server/data/players/espionage724.json'' | * ''Server/data/players/espionage724.json'' |
| |
| mkdir -p ~/'Projects/2009Scape-Server/src/Server/data/players' && gio open ~/'Projects/2009Scape-Server/src/Server/data/players' | mkdir -p ~/'Projects/2009Scape-Server/src/Server/data/players' && gio open ~/'Projects/2009Scape-Server/src/Server/data/players' |
| |