Both sides previous revisionPrevious revisionNext revision | Previous revision |
servers:linux:games:2009scape_localhost [2025/01/17 16:02] – [Media] Sean Rhone | servers:linux:games:2009scape_localhost [2025/04/22 04:33] (current) – Sean Rhone |
---|
| |
* 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]])) | * 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]])) |
| * Last tested commit: [[https://gitlab.com/2009scape/2009scape/-/commit/c296e34b50fbc5621c9fcdb6c1357e3ec01a2baf|c296e34b]] |
| |
===== Media ===== | ===== Media ===== |
===== Prerequisites ===== | ===== Prerequisites ===== |
| |
* [[linux;distros;fedora_workstation_gnome|Fedora Workstation]] | * [[linux;distros;opensuse_tumbleweed_gnome|openSUSE Tumbleweed (GNOME)]] |
| |
===== Notes ===== | ===== Notes ===== |
| |
* For a game client, see [[games:linux:rt4_client_runescape_530|RT4 Client]] | * For a game client, see [[games:linux:rt4_client_runescape_530|RT4 Client]] |
| |
===== Resources ===== | |
| |
* [[https://forum.2009scape.org/viewtopic.php?t=1038-singleplayer-server-rt4-client-master-branches-scripts-and-desktop-start-launchers-on-windows-linux|2009Scape Forums]] | |
| |
====== Dependencies ====== | ====== Dependencies ====== |
* https://gitlab.com/2009scape/2009scape#prerequisites | * https://gitlab.com/2009scape/2009scape#prerequisites |
| |
sudo dnf install git git-lfs temurin-11-jdk | sudo zypper install git-core git-lfs java-21-openjdk-headless |
| |
====== Download Source ====== | ====== Download Source ====== |
====== Initial Build ====== | ====== Initial Build ====== |
| |
cd ~/'Projects/2009Scape-Server/src/Server' && JAVA_HOME='/usr/lib/jvm/temurin-11-jdk' ~/'Projects/2009Scape-Server/src/Server/mvnw' 'clean' | **** |
| |
cd ~/'Projects/2009Scape-Server/src/Server' && JAVA_HOME='/usr/lib/jvm/temurin-11-jdk' ~/'Projects/2009Scape-Server/src/Server/mvnw' 'package' | cd ~/'Projects/2009Scape-Server/src/Server' && ~/'Projects/2009Scape-Server/src/Server/mvnw' 'clean' 'package' -DskipTests |
| |
====== Settings ====== | ====== Settings ====== |
* [[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]]) |
| |
rm -v -f ~/'Projects/2009Scape-Server/src/Server/worldprops/default.conf' | mkdir -p ~/'Projects/2009Scape-Server/conf' && nano ~/'Projects/2009Scape-Server/conf/localhost.conf' |
| |
nano ~/'Projects/2009Scape-Server/src/Server/worldprops/default.conf' | |
| |
<code> | <code> |
jad_practice_enabled = false | jad_practice_enabled = false |
| |
# Holiday (only enable one or none) | # Holiday (only enable one "force" or none) |
force_halloween_randoms = false | force_halloween_randoms = false |
force_christmas_randoms = true | force_christmas_randoms = false |
| holiday_event_randoms = false |
| |
# PVP | # PVP |
pvp = false | pvp = false |
wild_pvp_enabled = false | wild_pvp_enabled = false |
revenant_population = 30 | revenant_population = 0 |
| |
# Server config | # Server config |
enable_castle_wars = false | enable_castle_wars = false |
verbose_cutscene = false | verbose_cutscene = false |
holiday_event_randoms = true | |
enable_bots = false | enable_bots = false |
max_adv_bots = 100 | max_adv_bots = 100 |
| |
cd ~/'Projects/2009Scape-Server/src/Server' | cd ~/'Projects/2009Scape-Server/src/Server' |
'/usr/lib/jvm/temurin-11-jdk/bin/java' -jar ~/'Projects/2009Scape-Server/src/Server/target/server-'*'-jar-with-dependencies.jar' | java -jar ~/'Projects/2009Scape-Server/src/Server/target/server-'*'-jar-with-dependencies.jar' '../../conf/localhost.conf' |
| |
# End</code> | # End</code> |
===== Server Update ===== | ===== Server Update ===== |
| |
* [[https://gitlab.com/2009scape/2009scape/-/commits/master|Commits History]] | * https://gitlab.com/2009scape/2009scape/-/commits/master |
* [[games:linux:rt4_client_runescape_530#scape_localhost|RT4 Client Desktop Action Server-Update]] | * [[games:linux:rt4_client_runescape_530#scape_localhost|RT4 Client Desktop Action Server-Update]] |
| |
| |
cd ~/'Projects/2009Scape-Server/src/Server' | cd ~/'Projects/2009Scape-Server/src/Server' |
JAVA_HOME='/usr/lib/jvm/temurin-11-jdk' ~/'Projects/2009Scape-Server/src/Server/mvnw' 'clean' 'package' -DskipTests | ~/'Projects/2009Scape-Server/src/Server/mvnw' 'clean' 'package' -DskipTests |
| |
notify-send -i ~/'Projects/RT4-Client/src/client/src/main/resources/saradomin.png' '2009Scape worldprops copy/paste in 3 seconds...' | |
sleep '3' | |
gio open 'https://wiki.realmofespionage.xyz/servers:linux:games:2009scape_localhost#settings' | |
rm -f ~/'Projects/2009Scape-Server/src/Server/worldprops/default.conf' | |
nano ~/'Projects/2009Scape-Server/src/Server/worldprops/default.conf' | |
| |
notify-send -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> |
#!/bin/bash | #!/bin/bash |
| |
tar -cvzf ~/'Downloads/'$(date +%Y-%m-%d-%s)'-2009Scape-Server-localhost-Saves.tar.gz' -C ~/'Projects/2009Scape-Server/src/Server/data' 'players' | tar -czf ~/'Downloads/'$(date +%Y-%m-%d-%s)'-2009Scape-Server-localhost-Saves.tar.gz' -C ~/'Projects/2009Scape-Server/src/Server/data' 'players' |
sync | |
notify-send -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> |
===== Server ===== | ===== Server ===== |
| |
cd ~/'Projects/2009Scape-Server/src/Server' && '/usr/lib/jvm/temurin-11-jdk/bin/java' -jar ~/'Projects/2009Scape-Server/src/builddir/server.jar' | cd ~/'Projects/2009Scape-Server/src/Server' && java -jar ~/'Projects/2009Scape-Server/src/Server/target/server-'*'-jar-with-dependencies.jar' |
| |
~/'Projects/2009Scape-Server/scripts/localhost-server-start.sh' | ~/'Projects/2009Scape-Server/scripts/localhost-server-start.sh' |
| |
* [[https://gitlab.com/2009scape/2009scape/-/commits/master|Commits History]] | * [[https://gitlab.com/2009scape/2009scape/-/commits/master|Commits History]] |
| * TODO |
| |
git -C ~/'Projects/2009Scape-Server/src' reset --hard && git -C ~/'Projects/2009Scape-Server/src' pull origin 'master' --rebase && cd ~/'Projects/2009Scape-Server/src/Server' && mvn 'clean' && cd ~/'Projects/2009Scape-Server/src' && ~/'Projects/2009Scape-Server/src/build' -g -c 'g' -q && cd ~ && sync | git -C ~/'Projects/2009Scape-Server/src' reset --hard && git -C ~/'Projects/2009Scape-Server/src' pull origin 'master' --rebase && |
| |
~/'Projects/2009Scape-Server/scripts/localhost-server-update.sh' | ~/'Projects/2009Scape-Server/scripts/localhost-server-update.sh' |
| |
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' |
| |
| ===== Git ===== |
| |
| git -C ~/'Projects/2009Scape-Server/src' fsck --full --strict |
| |
| git -C ~/'Projects/2009Scape-Server/src' gc --aggressive --prune='all' |
| |
===== File Manager ===== | ===== File Manager ===== |
**** | **** |
| |
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' |
| |
====== Resources/TODOs ====== | ====== Resources/TODOs ====== |