User Tools

Site Tools


servers:linux:games:2009scape_localhost

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
servers:linux:games:2009scape_localhost [2024/12/31 04:19] Sean Rhoneservers:linux:games:2009scape_localhost [2025/01/22 01:18] (current) – [Dependencies] Sean Rhone
Line 2: Line 2:
  
   * 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 =====
Line 13: Line 16:
  
   * 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 ======
Line 18: Line 25:
   * 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 ======
  
-****+  https://gitlab.com/2009scape/2009scape/-/commits/master?ref_type=HEADS
  
   cd ~ && mkdir -p ~/'Projects' && rm -Rf ~/'Projects/2009Scape-Server/src' && git clone --branch 'master' --depth '1' --recurse-submodules 'https://gitlab.com/2009scape/2009scape.git' ~/'Projects/2009Scape-Server/src' && sync   cd ~ && mkdir -p ~/'Projects' && rm -Rf ~/'Projects/2009Scape-Server/src' && git clone --branch 'master' --depth '1' --recurse-submodules 'https://gitlab.com/2009scape/2009scape.git' ~/'Projects/2009Scape-Server/src' && sync
Line 28: Line 35:
 ====== 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 ======
Line 105: Line 112:
 # 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
Line 175: Line 182:
  
 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]]
-  * TODO: ''notify-send'' when conf copy/paste is ready 
  
   mkdir -p ~/'Projects/2009Scape-Server/scripts' && nano ~/'Projects/2009Scape-Server/scripts/localhost-server-update.sh' && chmod +x ~/'Projects/2009Scape-Server/scripts/localhost-server-update.sh'   mkdir -p ~/'Projects/2009Scape-Server/scripts' && nano ~/'Projects/2009Scape-Server/scripts/localhost-server-update.sh' && chmod +x ~/'Projects/2009Scape-Server/scripts/localhost-server-update.sh'
Line 197: Line 200:
  
 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...'
Line 204: Line 207:
 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 =====
Line 218: Line 221:
 #!/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 ======
Line 232: Line 233:
 ===== 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 =====
Line 255: Line 257:
  
   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 =====
Line 268: Line 276:
 **** ****
  
-  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 ======
C:/www/wiki/data/attic/servers/linux/games/2009scape_localhost.1735636759.txt.gz · Last modified: by Sean Rhone