Both sides previous revisionPrevious revisionNext revision | Previous revision |
servers:linux:games:2009scape_localhost [2025/01/29 23:14] – 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 ===== |
* https://gitlab.com/2009scape/2009scape#prerequisites | * https://gitlab.com/2009scape/2009scape#prerequisites |
| |
sudo dnf install git git-lfs java-openjdk-headless | sudo zypper install git-core git-lfs java-21-openjdk-headless |
| |
====== Download Source ====== | ====== Download Source ====== |
* [[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 = false | 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' |
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 ====== |