====== Information ======
* 2009Scape Server ((https://gitlab.com/2009scape/2009scape))
* 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 =====
* [[https://media.realmofespionage.xyz/index/category/3|Progress Pics]]
===== Prerequisites =====
* [[windows:10|Windows 10 (21H2)]]
* [[windows;11_ltsc|Windows 11 (24H2)]]
===== Notes =====
* For a game client, see [[games:windows:rt4_client_runescape_530|RT4 Client]]
====== Dependencies ======
* https://gitlab.com/2009scape/2009scape#prerequisites
===== Git =====
* https://gitforwindows.org/
* Last tested: ''Git-2.49.0-64-bit.exe''
* :!: Git LFS component required
* Git from the command line and also from 3rd-party software
===== Java =====
* https://learn.microsoft.com/en-us/java/openjdk/download#openjdk-21
* Last tested: ''microsoft-jdk-21.0.7-windows-x64.msi''
* Entire feature install of ''Microsoft Build of OpenJDK''
====== Download Source ======
* https://gitlab.com/2009scape/2009scape/-/commits/master?ref_type=HEADS
"%ProgramFiles%\Git\bin\git.exe" clone --branch "master" --depth "1" --recurse-submodules "https://gitlab.com/2009scape/2009scape.git" "%UserProfile%\Projects\2009Scape-Server\src"
====== Initial Build ======
****
CD "%UserProfile%\Projects\2009Scape-Server\src\Server" && "%UserProfile%\Projects\2009Scape-Server\src\Server\mvnw.cmd" "clean" "package" -DskipTests
====== Settings ======
* Last commit: [[https://gitlab.com/2009scape/2009scape/-/commit/317b4e9b5c330c6492663631d3edca9794dfc2f9|August 10, 2024]] ''317b4e9b''
* [[https://gitlab.com/2009scape/2009scape/-/commits/master/Server/worldprops/default.conf?ref_type=heads|New commits check]]
* [[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]])
MKDIR "%UserProfile%\Projects\2009Scape-Server\conf"
"notepad.exe" "%UserProfile%\Projects\2009Scape-Server\conf\localhost.conf"
[server]
# Server
log_level = "verbose"
write_logs = true
msip = "localhost"
secret_key = "2009scape_development"
preload_map = false
# Accounts
use_auth = false
persist_accounts = false
noauth_default_admin = false
daily_accounts_per_ip = 3
# Watchdog
watchdog_enabled = false
connectivity_check_url = "localhost"
connectivity_timeout = 500
[database]
# MySQL
database_address = "localhost"
database_port = "3306"
database_name = "2009scape"
database_username = "2009scape"
database_password = "x"
[integrations]
# Grafana Analytics?
grafana_logging = false
grafana_log_path = "@data/logs"
grafana_log_ttl_days = 1
[world]
# localhost
motw_text = "Welcome to your localhost server!"
show_rules = false
new_player_announcement = false
allow_token_purchase = false
autostock_ge = false
bots_influence_ge_price = false
enable_doubling_money_scammers = false
personalized_shops = false
enable_default_clan = false
# Jagex-like
i_want_to_cheat = false
default_xp_rate = 1.0
runecrafting_formula_revision = 530
allow_slayer_reroll = false
better_agility_pyramid_gp = false
better_dfs = false
enhanced_deep_wilderness = false
skillcape_perks = false
jad_practice_enabled = false
# Holiday (only enable one "force" or none)
force_halloween_randoms = false
force_christmas_randoms = false
holiday_event_randoms = false
# PVP
pvp = false
wild_pvp_enabled = false
revenant_population = 0
# Server config
debug = false
dev = false
start_gui = false
daily_restart = false
smartpathfinder_bfs = true
enable_botting = false
motw_identifier = "0"
ge_announcement_limit = 500
increased_door_time = false
enable_castle_wars = false
verbose_cutscene = false
enable_bots = false
max_adv_bots = 100
new_player_location = "2524,5002,0"
home_location = "3222,3218,0"
# World
name = "2009Scape (::1)"
world_id = "1"
country_id = "0"
members = true
name_ge = "2009Scape"
activity = "2009Scape Classic."
[paths]
# Paths
data_path = "data"
bot_data = "@data/botdata"
cache_path = "@data/cache"
configs_path = "@data/configs"
eco_data = "@data/eco"
grand_exchange_data_path = "@data/eco"
logs_path = "@data/logs"
object_parser_path = "@data/ObjectParser.xml"
save_path = "@data/players"
store_path = "@data/serverstore"
# Drop Tables
rare_drop_table_path = "@data/configs/shared_tables/RDT.xml"
gem_drop_table_path = "@data/configs/shared_tables/GDT.xml"
herb_drop_table_path = "@data/configs/shared_tables/HDT.xml"
cele_drop_table_path = "@data/configs/shared_tables/CELEDT.xml"
allotment_seed_drop_table_path = "@data/configs/shared_tables/ASDT.xml"
uncommon_seed_drop_table_path = "@data/configs/shared_tables/USDT.xml"
rare_seed_drop_table_path = "@data/configs/shared_tables/RSDT.xml"
# End
====== Firewall ======
===== Block =====
* TODO: Exe block like 04
netsh advfirewall firewall add rule name="RuneScape localhost Server" dir="in" action="block" protocol="TCP" localport="43594,43595"
====== Scripts ======
****
MKDIR "%UserProfile%\Projects\2009Scape-Server\scripts"
===== Server Start =====
"notepad.exe" "%UserProfile%\Projects\2009Scape-Server\scripts\localhost-server-start.bat"
@echo off
CD "%UserProfile%\Projects\2009Scape-Server\src\Server"
"java.exe" -jar "%UserProfile%\Projects\2009Scape-Server\src\Server\target\server-1.0.0-jar-with-dependencies.jar" "%UserProfile%\Projects\2009Scape-Server\conf\localhost.conf" || exit "1"
:: End
"%UserProfile%\Projects\2009Scape-Server\scripts\localhost-server-start.bat"
===== Server Update =====
"notepad.exe" "%UserProfile%\Projects\2009Scape-Server\scripts\localhost-server-update.bat"
@echo off
"%ProgramFiles%\Git\bin\git.exe" -C "%UserProfile%\Projects\2009Scape-Server\src" reset --hard
"%ProgramFiles%\Git\bin\git.exe" -C "%UserProfile%\Projects\2009Scape-Server\src" pull origin "master" --rebase
CD "%UserProfile%\Projects\2009Scape-Server\src\Server"
CALL "%UserProfile%\Projects\2009Scape-Server\src\Server\mvnw.cmd" "clean" "package" -DskipTests
:: End
"%UserProfile%\Projects\2009Scape-Server\scripts\localhost-server-update.bat"
===== Save Data Back-up =====
"notepad.exe" "%UserProfile%\Projects\2009Scape-Server\scripts\localhost-save-backup.bat"
@echo off
"tar.exe" -czf "%UserProfile%\Downloads\%RANDOM%-2009Scape-Server-localhost-Saves.tar.gz" -C "%UserProfile%\Projects\2009Scape-Server\src\Server\data" "players"
:: End
"%UserProfile%\Projects\2009Scape-Server\scripts\localhost-save-backup.bat"
====== Launcher Shortcuts ======
===== Desktop =====
* Right-click Desktop -> New -> Shortcut
==== Server Start ====
"%UserProfile%\Projects\2009Scape-Server\scripts\localhost-server-start.bat"
2009Scape Server
===== Start Menu =====
****
MKDIR "%AppData%\Microsoft\Windows\Start Menu\Programs\2009Scape"
==== Shortcuts ====
* Right-click -> New -> Shortcut
"explorer.exe" "%AppData%\Microsoft\Windows\Start Menu\Programs\2009Scape"
=== Server Start ===
"%UserProfile%\Projects\2009Scape-Server\scripts\localhost-server-start.bat"
Server Start
=== Update ===
"%UserProfile%\Projects\2009Scape-Server\scripts\localhost-server-update.bat"
Server Updater
=== Save Backup ===
"%UserProfile%\Projects\2009Scape-Server\scripts\localhost-save-backup.bat"
Save Back-up
=== Save Folder ===
MKDIR "%UserProfile%\Projects\2009Scape-Server\src\Server\data\players"
"%UserProfile%\Projects\2009Scape-Server\src\Server\data\players"
Save Folder
=== Commits Check ===
"https://gitlab.com/2009scape/2009scape/-/commits/master?ref_type=HEADS"
Updates Check (Server)
=== Install Notes ===
"https://wiki.realmofespionage.xyz/servers;windows;games;2009scape_localhost"
Install Notes (Server)
====== Quick Commands ======
===== Execute =====
****
CD "%UserProfile%\Projects\2009Scape-Server\src\Server" && "java.exe" -jar "%UserProfile%\Projects\2009Scape-Server\src\Server\target\server-1.0.0-jar-with-dependencies.jar" "%UserProfile%\Projects\2009Scape-Server\conf\localhost.conf"
===== Update =====
* https://gitlab.com/2009scape/2009scape/-/commits/master?ref_type=HEADS
"%ProgramFiles%\Git\bin\git.exe" -C "%UserProfile%\Projects\2009Scape-Server\src" reset --hard && "%ProgramFiles%\Git\bin\git.exe" -C "%UserProfile%\Projects\2009Scape-Server\src" pull origin "master" --rebase && CD "%UserProfile%\Projects\2009Scape-Server\src\Server" && CALL "%UserProfile%\Projects\2009Scape-Server\src\Server\mvnw.cmd" "clean" "package" -DskipTests
===== Save Data Back-up =====
* :!: The ''tar'' command replaces ''Downloads\2009Scape-Server-localhost-Saves.tar.gz'' each time without back-up or date codes
"explorer.exe" "%UserProfile%\Projects\2009Scape-Server\src\Server\data\players"
"tar.exe" -cvzf "%UserProfile%\Downloads\2009Scape-Server-localhost-Saves.tar.gz" -C "%UserProfile%\Projects\2009Scape-Server\src\Server\data" "players"
===== File Manager =====
==== Root ====
****
"explorer.exe" "%UserProfile%\Projects\2009Scape-Server\src"
==== Saves ====
MKDIR "%UserProfile%\Projects\2009Scape-Server\src\Server\data\players"
"explorer.exe" "%UserProfile%\Projects\2009Scape-Server\src\Server\data\players"
====== Resources/TODOs ======
* https://github.com/2009scape/2009Scape-mobile/issues/13
* https://gitlab.com/2009scape/singleplayer/windows/-/raw/master/game/worldprops/default.conf
* https://gitlab.com/2009scape/2009scape/-/blob/master/Server/src/main/core/game/system/config/ServerConfigParser.kt#L66
* https://gitlab.com/2009scape/2009scape/-/blob/master/Server/src/main/core/game/world/GameSettings.kt#L120
* If stuck on tile/somewhere in-game: [[#settings|conf]] ''noauth_default_admin = true''
* Pest Control and Mining Star bots auto-still appear with bots disabled in conf (bots disabled stops auto-spawn bots at Lumbridge/seemingly general areas)