====== 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]])) ===== Media ===== * [[https://media.realmofespionage.xyz/index/category/3|Progress Pics]] ===== Prerequisites ===== * [[linux;distros;opensuse_tumbleweed_gnome|openSUSE Tumbleweed (GNOME)]] ===== Notes ===== * For a game client, see [[games:linux:rt4_client_runescape_530|RT4 Client]] ====== Dependencies ====== * https://gitlab.com/2009scape/2009scape#prerequisites sudo zypper install git-core git-lfs java-21-openjdk-headless ===== Java Priority ===== * ''jre-21-openjdk'' sudo update-alternatives --config 'java' ====== 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 ====== Initial Build ====== **** cd ~/'Projects/2009Scape-Server/src/Server' && JAVA_HOME='/usr/lib64/jvm/java-21-openjdk-21' ~/'Projects/2009Scape-Server/src/Server/mvnw' 'clean' 'package' -DskipTests ====== Settings ====== * Last commit: [[https://gitlab.com/2009scape/2009scape/-/commit/bef103e25934ab2ba465e157fe776d947aa4a49b|July 15, 2025]] ''bef103e2'' * [[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 -p ~/'Projects/2009Scape-Server/conf' && nano ~/'Projects/2009Scape-Server/conf/localhost.conf' [server] # Server log_level = "verbose" write_logs = false 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 inauthentic_candlelight_random = 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 ====== Scripts ====== ===== Server Start ===== mkdir -p ~/'Projects/2009Scape-Server/scripts' && nano ~/'Projects/2009Scape-Server/scripts/localhost-server-start.sh' && chmod +x ~/'Projects/2009Scape-Server/scripts/localhost-server-start.sh' #!/bin/bash cd ~/'Projects/2009Scape-Server/src/Server' export _JAVA_OPTIONS='--sun-misc-unsafe-memory-access=allow --enable-native-access=ALL-UNNAMED -Djava.net.preferIPv6Addresses=false' '/usr/lib64/jvm/java-21-openjdk-21/bin/java' -jar ~/'Projects/2009Scape-Server/src/Server/target/server-'*'-jar-with-dependencies.jar' '../../conf/localhost.conf' # End ~/'Projects/2009Scape-Server/scripts/localhost-server-start.sh' ===== Server Update ===== 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' #!/bin/bash git -C ~/'Projects/2009Scape-Server/src' reset --hard git -C ~/'Projects/2009Scape-Server/src' pull origin 'master' --rebase cd ~/'Projects/2009Scape-Server/src/Server' export JAVA_HOME='/usr/lib64/jvm/java-21-openjdk-21' export _JAVA_OPTIONS='--sun-misc-unsafe-memory-access=allow --enable-native-access=ALL-UNNAMED' ~/'Projects/2009Scape-Server/src/Server/mvnw' 'clean' 'package' -DskipTests unset 'JAVA_HOME' '_JAVA_OPTIONS' zenity --title '2009Scape Updater' --text 'localhost server update complete' --icon ~/'Projects/RT4-Client/src/client/src/main/resources/saradomin.png' --timeout '1' --info # End ~/'Projects/2009Scape-Server/scripts/localhost-server-update.sh' ===== Save Data Back-up ===== mkdir -p ~/'Projects/2009Scape-Server/scripts' && nano ~/'Projects/2009Scape-Server/scripts/localhost-save-backup.sh' && chmod +x ~/'Projects/2009Scape-Server/scripts/localhost-save-backup.sh' #!/bin/bash tar -czf ~/'Downloads/'$(date +%Y-%m-%d-%s)'-2009Scape-localhost-Saves.tar.gz' -C ~/'Projects/2009Scape-Server/src/Server/data' 'players' zenity --title '2009Scape Save Backup' --text 'Save Data Backed-up to Downloads' --icon ~/'Projects/RT4-Client/src/client/src/main/resources/saradomin.png' --timeout '1' --info # End ~/'Projects/2009Scape-Server/scripts/localhost-save-backup.sh' ====== Quick Commands ====== ===== Save Restore ===== **** mkdir -p ~/'Projects/2009Scape-Server/src/Server/data/players' && gio open ~/'Projects/2009Scape-Server/src/Server/data/players'