| |
servers:linux:games:2009scape_localhost [2025/04/14 08:55] – Sean Rhone | servers:linux:games:2009scape_localhost [2025/05/16 21:39] (current) – external edit 127.0.0.1 |
---|
| |
* 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/f75577d41d7b0c3050c0207e4fbf5d706f778cc9|~f75577d4]] | * Last tested commit: [[https://gitlab.com/2009scape/2009scape/-/commit/c296e34b50fbc5621c9fcdb6c1357e3ec01a2baf|c296e34b]] |
| |
===== Media ===== | ===== Media ===== |
===== Prerequisites ===== | ===== Prerequisites ===== |
| |
* [[linux;distros;debian_12_xfce|Debian 12 (Xfce)]] | * [[linux;distros;opensuse_tumbleweed_gnome|openSUSE Tumbleweed (GNOME)]] |
| |
===== Notes ===== | ===== Notes ===== |
* https://gitlab.com/2009scape/2009scape#prerequisites | * https://gitlab.com/2009scape/2009scape#prerequisites |
| |
sudo apt install git git-lfs openjdk-17-jre-headless | sudo zypper install git-core git-lfs java-21-openjdk-headless |
| |
====== Download Source ====== | ====== Download Source ====== |
| |
cd ~/'Projects/2009Scape-Server/src/Server' | cd ~/'Projects/2009Scape-Server/src/Server' |
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> |
| |
| ~/'Projects/2009Scape-Server/scripts/localhost-server-start.sh' |
| |
===== Server Update ===== | ===== Server Update ===== |
~/'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...' | zenity --title '2009Scape Updater' --text 'localhost server update complete' --icon ~/'Projects/RT4-Client/src/client/src/main/resources/saradomin.png' --timeout '2' --info |
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' | |
| |
# End</code> | # End</code> |
| |
| ~/'Projects/2009Scape-Server/scripts/localhost-server-update.sh' |
| |
===== Save Data Back-up ===== | ===== Save Data Back-up ===== |
| |
tar -czf ~/'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> |
| |
| ~/'Projects/2009Scape-Server/scripts/localhost-save-backup.sh' |
| |
====== Quick Commands ====== | ====== Quick Commands ====== |