Both sides previous revisionPrevious revisionNext revision | Previous revision |
servers:linux:games:2009scape_localhost [2024/12/31 04:21] – [Server Update] Sean Rhone | servers:linux:games:2009scape_localhost [2025/01/22 01:18] (current) – [Dependencies] Sean Rhone |
---|
| |
* 2009Scape Server ((https://gitlab.com/2009scape/2009scape)) | * 2009Scape Server ((https://gitlab.com/2009scape/2009scape)) |
* ''master'' Branch ((https://gitlab.com/2009scape/2009scape/-/tree/master?ref_type=heads)) | |
| |
* These notes provide a local singleplayer server for 2009Scape ((RSPS/RuneScape Private Server based on cache ''530'' from 2009, [[https://gitlab.com/2009scape/2009scape#history-of-this-codebase|more info]])) on Linux (also see [[servers:bsd:games:2009scape_localhost|FreeBSD]] and [[servers:windows:games:2009scape_localhost|Windows]]) | * 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 ===== |
| |
| * [[https://media.realmofespionage.xyz/index/category/3|Progress Pics]] |
| |
===== Prerequisites ===== | ===== Prerequisites ===== |
| |
* 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 dnf install git git-lfs java-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 ====== |
# Holiday (only enable one or none) | # Holiday (only enable one or none) |
force_halloween_randoms = false | force_halloween_randoms = false |
force_christmas_randoms = true | force_christmas_randoms = false |
| |
# PVP | # PVP |
| |
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' |
| |
# End</code> | # End</code> |
| |
~/'Projects/2009Scape-Server/scripts/localhost-server-start.sh' | |
| |
===== Server Update ===== | ===== Server Update ===== |
| |
* [[https://gitlab.com/2009scape/2009scape/-/commits/master|Commits History]] | * https://gitlab.com/2009scape/2009scape/-/commits/master |
* [[https://gitlab.com/2009scape/2009scape/-/blob/master/build?ref_type=heads#L19|build script flags]] | |
* [[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...' | notify-send -i ~/'Projects/RT4-Client/src/client/src/main/resources/saradomin.png' '2009Scape worldprops copy/paste in 3 seconds...' |
rm -f ~/'Projects/2009Scape-Server/src/Server/worldprops/default.conf' | rm -f ~/'Projects/2009Scape-Server/src/Server/worldprops/default.conf' |
nano ~/'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 ===== |
#!/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 | sync |
notify-send '2009Scape Save Data Backed-up Successfully to Downloads' | notify-send -i ~/'Projects/RT4-Client/src/client/src/main/resources/saradomin.png' '2009Scape Save Data Backed-up Successfully to Downloads' |
| |
# End</code> | # End</code> |
| |
~/'Projects/2009Scape-Server/scripts/localhost-save-backup.sh' | |
| |
====== Quick Commands ====== | ====== Quick Commands ====== |
===== 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' |
| |
ptyxis --standalone --title='2009Scape Server — ' -- ~/'Projects/2009Scape-Server/scripts/localhost-server-start.sh'" | ptyxis --standalone --title='2009Scape Server — ' -- ~/'Projects/2009Scape-Server/scripts/localhost-server-start.sh' |
| |
===== Update ===== | ===== Update ===== |
| |
* [[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' |
| |
ptyxis --standalone --title='2009Scape Updater — ' -- ~/'Projects/2009Scape-Server/scripts/localhost-server-update.sh' | ptyxis --standalone --title='2009Scape Server Updater — ' -- ~/'Projects/2009Scape-Server/scripts/localhost-server-update.sh' |
| |
===== Save Data Back-up ===== | ===== Save Data Back-up ===== |
| |
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 ====== |