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 [2025/01/17 16:02] – [Media] Sean Rhoneservers:linux:games:2009scape_localhost [2025/01/22 01:18] (current) – [Dependencies] Sean Rhone
Line 25: 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 ======
Line 35: 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 112: 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 182: 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
   * [[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]]
  
Line 202: 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 213: Line 211:
  
 # End</code> # End</code>
- 
-  ~/'Projects/2009Scape-Server/scripts/localhost-server-update.sh' 
  
 ===== Save Data Back-up ===== ===== Save Data Back-up =====
Line 225: 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 -i ~/'Projects/RT4-Client/src/client/src/main/resources/saradomin.png' '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 239: 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'
Line 248: Line 242:
  
   * [[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'
Line 262: 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 275: 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.1737147759.txt.gz · Last modified: by Sean Rhone