User Tools

Site Tools


games:windows:2004scape_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
games:windows:2004scape_localhost [2025/04/07 15:00] – [Block] Sean Rhonegames:windows:2004scape_localhost [2026/01/29 00:00] (current) – [Server Update] Sean Rhone
Line 1: Line 1:
 ====== Information ====== ====== Information ======
  
-  * 2004Scape Server ((https://github.com/2004Scape/Server)) +  * Lost City ''225'' Server + Client 
- +  * [[https://lostcity.rs/t/singleplayer-main-branch-scripts-and-desktop-start-launchers-on-windows-linux-freebsd/54|Lost City Forums]]
-  * These notes provide a local single-player server for 2004Scape ((RSPS/RuneScape Private Server based on cache ''225'' from May 18th, 2004)) +
-  * Last tested commit: [[https://github.com/2004Scape/Server/commit/910f1910c1f489503e3885cebcff62c75f45b1a1|910f191]]+
  
 ===== Media ===== ===== Media =====
  
-  * [[https://www.youtube.com/watch?v=RFmbHS4w9mU|Desktop and Start Menu Shortcuts Presentation Video]] 
   * [[https://media.realmofespionage.xyz/index/category/2|Progress Pics]]   * [[https://media.realmofespionage.xyz/index/category/2|Progress Pics]]
 +  * [[https://www.youtube.com/watch?v=o-HlDZREEAw|Full install video]]
  
 ===== Prerequisites ===== ===== Prerequisites =====
  
   * [[windows:10|Windows 10 (21H2)]]   * [[windows:10|Windows 10 (21H2)]]
-  * [[windows;11_ltsc|Windows 11 (24H2)]] +  * [[programs;windows;git|Git]] 
- +  * [[windows;notes;edge_tweaks|Microsoft Edge]]
-===== Resources ===== +
- +
-  * [[https://lostcity.rs/t/singleplayer-main-branch-scripts-and-desktop-start-launchers-on-windows-linux-freebsd/54|Lost City Forums]] +
-  * [[https://2004.lostcity.rs/worldmap|World Map]] (interactive)+
  
 ====== Dependencies ====== ====== Dependencies ======
  
-  * https://github.com/2004Scape/Server?tab=readme-ov-file#dependencies+  * https://github.com/LostCityRS/Engine-TS/blob/225/README.md#dependencies
  
-===== Git =====+===== Java =====
  
-  * https://gitforwindows.org/ +  * https://learn.microsoft.com/en-us/java/openjdk/overview
-  * Last tested: ''Git-2.49.0-64-bit.exe''+
  
-  * No components required +==== 25 ====
-  * Git from the command line and also from 3rd-party software +
- +
-===== Java =====+
  
-  * https://learn.microsoft.com/en-us/java/openjdk/download#openjdk-21 +  * https://aka.ms/download-jdk/microsoft-jdk-25-windows-x64.msi 
-  * Last tested: ''microsoft-jdk-21.0.6-windows-x64.msi''+  * Last tested: ''microsoft-jdk-25.0.1-windows-x64.msi''
  
   * Entire feature install of ''Microsoft Build of OpenJDK''   * Entire feature install of ''Microsoft Build of OpenJDK''
  
-===== Node.js =====+===== Bun =====
  
-  * https://nodejs.org/en/download +  * https://bun.com/ 
-  * Last tested''node-v22.14.0-x64.msi''+  * https://github.com/oven-sh/bun 
 +  * Latest [[https://github.com/oven-sh/bun/releases/latest/download/bun-windows-x64.zip|bun-windows-x64.zip]] (([[https://github.com/oven-sh/bun/releases/latest/download/bun-windows-x64-baseline.zip|baseline]] for older CPU, [[https://bun.com/docs/installation#baseline-builds|more info]]))
  
-  * [x] Node.js runtime +  MKDIR "%UserProfile%\Projects\LostCity-225-EngineTS\ext" & DEL /Q "%UserProfile%\Projects\LostCity-225-EngineTS\ext\bun.exe" & "curl.exe" --output "%UserProfile%\Downloads\bun-windows-x64.zip" --location "https://github.com/oven-sh/bun/releases/latest/download/bun-windows-x64.zip" && "tar.exe" -xvf "%UserProfile%\Downloads\bun-windows-x64.zip" --strip-components="1" -C "%UserProfile%\Projects\LostCity-225-EngineTS\ext" "bun-windows-x64/bun.exe" && "%UserProfile%\Projects\LostCity-225-EngineTS\ext\bun.exe" -v
-  * [x] npm package manager +
-  * Add to PATH -> [x] Node.js and npm +
-  * corepack manager, Online documentation shortcuts, PATH npm modules not required +
-  * Tools for Native Modules not required (leave auto-install necessary tools unchecked)+
  
 ====== Download Source ====== ====== Download Source ======
  
-  * https://github.com/2004Scape/Server/commits/main/+===== Engine-TS =====
  
-  "%ProgramFiles%\Git\bin\git.exe" clone --branch "main" --depth "1" --recurse-submodules "https://github.com/2004Scape/Server.git" "%UserProfile%\Projects\2004Scape-Server\src"+  * https://github.com/LostCityRS/Engine-TS/commits/225/ 
 + 
 +  "%ProgramFiles%\Git\bin\git.exe" clone --branch "225" --depth "1" --recurse-submodules "https://github.com/LostCityRS/Engine-TS.git" "%UserProfile%\Projects\LostCity-225-EngineTS\src
 + 
 +===== Content ===== 
 + 
 +  * https://github.com/LostCityRS/Content/commits/225/ 
 + 
 +  "%ProgramFiles%\Git\bin\git.exe" clone --branch "225" --depth "1" --recurse-submodules "https://github.com/LostCityRS/Content.git" "%UserProfile%\Projects\LostCity-225-EngineTS\content"
  
 ====== Initial Build ====== ====== Initial Build ======
Line 61: Line 56:
 **** ****
  
-  CD "%UserProfile%\Projects\2004Scape-Server\src" && "%ProgramFiles%\nodejs\node.exe" "%ProgramFiles%\nodejs\node_modules\npm\bin\npm-cli.js" install --verbose+  "%UserProfile%\Projects\LostCity-225-EngineTS\ext\bun.exe" --cwd="%UserProfile%\Projects\LostCity-225-EngineTS\src" install
  
 ====== Set-up ====== ====== Set-up ======
Line 67: Line 62:
   * Set up as a development world   * Set up as a development world
  
-  "%ProgramFiles%\nodejs\node.exe" "%ProgramFiles%\nodejs\node_modules\npm\bin\npm-cli.js" --prefix "%UserProfile%\Projects\2004Scape-Server\srcrun "setup"+  "%UserProfile%\Projects\LostCity-225-EngineTS\ext\bun.exe" --cwd="%UserProfile%\Projects\LostCity-225-EngineTS\src" run "setup" 
 + 
 +====== Settings ====== 
 + 
 +  * Last commit: [[https://github.com/LostCityRS/Engine-TS/commit/de5fa4db73add4e7277f0a9045d6eeb3a0800f59|Jun 25, 2025]] ''de5fa4d'' 
 +  * [[https://github.com/LostCityRS/Engine-TS/commits/225/.env.example|New commits check]] 
 +  * [[https://github.com/LostCityRS/Engine-TS/blob/225/.env.example|Upstream Settings]] ([[https://raw.githubusercontent.com/LostCityRS/Engine-TS/refs/heads/225/.env.example|raw]]) 
 + 
 +  MKDIR "%UserProfile%\Projects\LostCity-225-EngineTS\conf"notepad.exe" "%UserProfile%\Projects\LostCity-225-EngineTS\conf\localhost.env" 
 + 
 +<code> 
 +NODE_XPRATE=1 
 +NODE_PROFILE=localhost 
 +NODE_STAFF=Test 
 +NODE_DEBUGPROC_CHAR=: 
 +NODE_CLIENT_ROUTEFINDER=false 
 + 
 +# End</code>
  
 ====== Scripts ====== ====== Scripts ======
  
-****+  MKDIR "%UserProfile%\Projects\LostCity-225-EngineTS\scripts"
  
-  MKDIR "%UserProfile%\Projects\2004Scape-Server\scripts"+  "explorer.exe" "%UserProfile%\Projects\LostCity-225-EngineTS\scripts"
  
 ===== Server Start ===== ===== Server Start =====
  
-  "notepad.exe" "%UserProfile%\Projects\2004Scape-Server\scripts\localhost-server-start.bat"+  * http://localhost:80/rs2.cgi 
 + 
 +  "notepad.exe" "%UserProfile%\Projects\LostCity-225-EngineTS\scripts\localhost-server-start.bat"
  
 <code> <code>
 @echo off @echo off
  
-"%ProgramFiles%\nodejs\node.exe" "%ProgramFiles%\nodejs\node_modules\npm\bin\npm-cli.js" --prefix "%UserProfile%\Projects\2004Scape-Server\src" run "quickstart"+TITLE 2004Scape Server 
 +CD "%Temp%" 
 + 
 +SET "NODE=%UserProfile%\Projects\LostCity-225-EngineTS\ext\bun.exe" 
 +SET "_JAVA_OPTIONS=--sun-misc-unsafe-memory-access=allow" 
 + 
 +"%UserProfile%\Projects\LostCity-225-EngineTS\ext\bun.exe" --env-file="%UserProfile%\Projects\LostCity-225-EngineTS\conf\localhost.env" --cwd="%UserProfile%\Projects\LostCity-225-EngineTS\src" run "quickstart" || EXIT "1" 
 + 
 +SET "NODE=" 
 +SET "_JAVA_OPTIONS="
  
 :: End</code> :: End</code>
  
-  "%UserProfile%\Projects\2004Scape-Server\scripts\localhost-server-start.bat"+  "%UserProfile%\Projects\LostCity-225-EngineTS\scripts\localhost-server-start.bat"
  
 ===== Server Update ===== ===== Server Update =====
  
-  "notepad.exe" "%UserProfile%\Projects\2004Scape-Server\scripts\localhost-server-update.bat"+  "notepad.exe" "%UserProfile%\Projects\LostCity-225-EngineTS\scripts\localhost-server-update.bat"
  
 <code> <code>
 @echo off @echo off
  
-"%ProgramFiles%\Git\bin\git.exe" -C "%UserProfile%\Projects\2004Scape-Server\src" reset --hard +TITLE 2004Scape Updater 
-"%ProgramFiles%\Git\bin\git.exe" -C "%UserProfile%\Projects\2004Scape-Server\src" pull origin "main--rebase+CD "%Temp%"
  
-"%ProgramFiles%\nodejs\node.exe" "%ProgramFiles%\nodejs\node_modules\npm\bin\npm-cli.js" --prefix "%UserProfile%\Projects\2004Scape-Server\src" run "clean+"%ProgramFiles%\Git\bin\git.exe" -C "%UserProfile%\Projects\LostCity-225-EngineTS\src" reset --hard "origin/225" 
-CD "%UserProfile%\Projects\2004Scape-Server\src+"%ProgramFiles%\Git\bin\git.exe" -"%UserProfile%\Projects\LostCity-225-EngineTS\src" pull origin "225--rebase 
-"%ProgramFiles%\nodejs\node.exe" "%ProgramFiles%\nodejs\node_modules\npm\bin\npm-cli.jsinstall --verbose + 
-"%ProgramFiles%\nodejs\node.exe" "%ProgramFiles%\nodejs\node_modules\npm\bin\npm-cli.js" --prefix "%UserProfile%\Projects\2004Scape-Server\src" run "setup"+"%ProgramFiles%\Git\bin\git.exe" -C "%UserProfile%\Projects\LostCity-225-EngineTS\content" reset --hard "origin/225
 +"%ProgramFiles%\Git\bin\git.exe" -C "%UserProfile%\Projects\LostCity-225-EngineTS\content" pull origin "225" --rebase 
 + 
 +DEL /Q "%Temp%\bun-windows-x64.zip" 
 +"curl.exe" --output "%Temp%\bun-windows-x64.zip" --location "https://github.com/oven-sh/bun/releases/latest/download/bun-windows-x64.zip" --progress-bar 
 +DEL /Q "%UserProfile%\Projects\LostCity-225-EngineTS\ext\bun.exe" 
 +"tar.exe" -xf "%Temp%\bun-windows-x64.zip" --strip-components="1" -C "%UserProfile%\Projects\LostCity-225-EngineTS\ext" "bun-windows-x64/bun.exe" 
 +DEL /Q "%Temp%\bun-windows-x64.zip" 
 + 
 +SET "NODE=%UserProfile%\Projects\LostCity-225-EngineTS\ext\bun.exe" 
 +SET "PATH=%PATH%;%UserProfile%\Projects\LostCity-225-EngineTS\ext" 
 + 
 +"%UserProfile%\Projects\LostCity-225-EngineTS\ext\bun.exe" --cwd="%UserProfile%\Projects\LostCity-225-EngineTS\src" run "clean" 
 +"%UserProfile%\Projects\LostCity-225-EngineTS\ext\bun.exe" --cwd="%UserProfile%\Projects\LostCity-225-EngineTS\src" install 
 +"%UserProfile%\Projects\LostCity-225-EngineTS\ext\bun.exe" --cwd="%UserProfile%\Projects\LostCity-225-EngineTS\src" run "setup
 + 
 +SET "NODE=" 
 + 
 +MSG %USERNAME% /TIME:"2" "2004Scape localhost server update complete"
  
 :: End</code> :: End</code>
  
-  "%UserProfile%\Projects\2004Scape-Server\scripts\localhost-server-update.bat"+  "%UserProfile%\Projects\LostCity-225-EngineTS\scripts\localhost-server-update.bat"
  
 ===== Save Data Back-up ===== ===== Save Data Back-up =====
  
-  "notepad.exe" "%UserProfile%\Projects\2004Scape-Server\scripts\localhost-save-backup.bat"+  "notepad.exe" "%UserProfile%\Projects\LostCity-225-EngineTS\scripts\localhost-save-backup.bat"
  
 <code> <code>
 @echo off @echo off
  
-"tar.exe" -czf "%UserProfile%\Downloads\%RANDOM%-2004Scape-Server-localhost-Saves.tar.gz" -C "%UserProfile%\Projects\2004Scape-Server\src\data\players" "main"+CD "%Temp%" 
 + 
 +"tar.exe" -czf "%UserProfile%\Downloads\%RANDOM%-2004Scape-localhost-Saves.tar.gz" -C "%UserProfile%\Projects\LostCity-225-EngineTS\src\data\players" "localhost" 
 + 
 +MSG %USERNAME% /TIME:"2" "2004Scape Save Data Backed-up Successfully to Downloads"
  
 :: End</code> :: End</code>
  
-  "%UserProfile%\Projects\2004Scape-Server\scripts\localhost-save-backup.bat"+  "%UserProfile%\Projects\LostCity-225-EngineTS\scripts\localhost-save-backup.bat"
  
-====== Firewall ======+====== Extras ======
  
-===== Block =====+===== Icon =====
  
-  "netsh.exe" advfirewall firewall add rule name="2004Scape localhost Server (node.exe)" dir="in" action="block" profile="any" program="%ProgramFiles%\nodejs\node.exe"+  * https://raw.githubusercontent.com/2004Scape/Server/7b0f1ec303dc1f76c7b29a2fff83b5797dafa01b/public/favicon.ico ([[https://drive.google.com/file/d/1T_v-_KVylhmrb7JKWElaYqhPiKbia8Jr/view?usp=sharing|mirror]]) 
 +  * Copies to ''src\public\favicon.ico'' for browser windows to show favicon
  
-  "netsh.exe" advfirewall firewall add rule name="2004Scape localhost Server (node.exe)dir="outaction="blockprofile="anyprogram="%ProgramFiles%\nodejs\node.exe"+  MKDIR "%UserProfile%\Projects\LostCity-225-EngineTS\ext" & DEL /Q "%Temp%\2004Scape-favicon.ico" "%UserProfile%\Projects\LostCity-225-EngineTS\ext\favicon.ico" "%UserProfile%\Projects\LostCity-225-EngineTS\src\public\favicon.ico" & "curl.exe" --output "%Temp%\2004Scape-favicon.ico" --location "https://raw.githubusercontent.com/2004Scape/Server/7b0f1ec303dc1f76c7b29a2fff83b5797dafa01b/public/favicon.ico" && "certutil.exe" -hashfile "%Temp%\2004Scape-favicon.icoSHA384 | FIND "c70ef71357951b3c1895cf205746eb93959cf8031d1f83b6f43d8a9efbb272d79ed6b4a64fb1c39f6898ed56601bfc63&& MOVE /Y "%Temp%\2004Scape-favicon.ico" "%UserProfile%\Projects\LostCity-225-EngineTS\ext\favicon.ico" && COPY /Y "%UserProfile%\Projects\LostCity-225-EngineTS\ext\favicon.ico" "%UserProfile%\Projects\LostCity-225-EngineTS\src\public\favicon.ico"
  
-===== LAN =====+===== Map =====
  
-  * Allows loading the game applet/connecting on other devices on LAN ((2024/11/09Works on Xbox One Edge with physical keyboard for log-in; controller works in-game flawlessly; :?: may work better 2025 with touch/phone improvements)+  * https://runescape.wiki/w/World_map#/media/File:June_2004_Map.jpg ([[https://drive.google.com/file/d/1V_nMvkDwE__dtokzG0xaytUwrqOtGKMO/view?usp=sharing|mirror]])
-  * :!: Can't have above block rule enabled at the same time+
  
-  "netsh.exeadvfirewall firewall add rule name="2004Scape localhost Server (node.exe)dir="inaction="allowprofile="anyprogram="%ProgramFiles%\nodejs\node.exeprotocol="tcplocalport="80remoteip="localsubnet"+  MKDIR "%UserProfile%\Projects\LostCity-225-EngineTS\ext" & DEL /Q "%Temp%\June_2004_Map.jpg" "%UserProfile%\Projects\LostCity-225-EngineTS\ext\June_2004_Map.jpg" & "curl.exe" --output "%Temp%\June_2004_Map.jpg--location "https://runescape.wiki/images/June_2004_Map.jpg?35d17&& "certutil.exe-hashfile "%Temp%\June_2004_Map.jpgSHA384 | FIND "abfdfe4597975addbb9d79d2cce2e56f0054f2742f351bd9dc700f55e91157e6c2142749f113927b027ed42efb8ad833&& MOVE /Y "%Temp%\June_2004_Map.jpg" "%UserProfile%\Projects\LostCity-225-EngineTS\ext\June_2004_Map.jpg"
  
-===== Delete Rule =====+==== Chaos Altar ====
  
-****+  https://oldschool.runescape.wiki/w/File:Chaos_Altar_map.png
  
-  "netsh.exe" advfirewall firewall delete rule name="2004Scape localhost Server (node.exe)"+  MKDIR "%UserProfile%\Projects\LostCity-225-EngineTS\ext" & DEL /Q "%Temp%\Chaos_Altar_map.png" "%UserProfile%\Projects\LostCity-225-EngineTS\ext\Chaos_Altar_map.png" & "curl.exe" --output "%Temp%\Chaos_Altar_map.png" --location "https://oldschool.runescape.wiki/images/Chaos_Altar_map.png?71a3b" && "certutil.exe" -hashfile "%Temp%\Chaos_Altar_map.png" SHA384 | FIND "64dc7c294ec5978bcfb3865d6a65dccb1e35e8964b65c1bc6ea98c228a1663924a297093952c1bd57c63c0cb4a4b7b45" && MOVE /Y "%Temp%\Chaos_Altar_map.png" "%UserProfile%\Projects\LostCity-225-EngineTS\ext\Chaos_Altar_map.png"
  
-====== Extras ======+===== SC55_zzdenis SoundFont =====
  
-****+  https://lostcity.rs/t/different-soundfonts-midi/4861 ([[https://www.youtube.com/watch?v=mVPLVDXJjUY|video]]) 
 +  https://www.doomworld.com/forum/topic/129928-new-sc55-soundfont-266mb-all-new-441k-samples/ 
 +  https://drive.google.com/file/d/1wdYpwoCka8r7ZuIzPn1CHy13_4aP9oSq/view?usp=sharing 
 +  ''298,185,428 SC55_zzdenis_v0.5.sf2''
  
-  MKDIR "%UserProfile%\Projects\2004Scape-Server\ext"+  MKDIR "%UserProfile%\Projects\LostCity-225-EngineTS\ext" & "certutil.exe" -hashfile "%UserProfile%\Downloads\SC55_zzdenis_v0.5.sf2" SHA384 | FIND "f386f638777072fc220e39afbd7efcd227ca2bfcf13403bf47fbb2e2b8f4d151239710cc36c8530a75c3b4c3f55066b7" && MOVE /Y "%UserProfile%\Downloads\SC55_zzdenis_v0.5.sf2" "%UserProfile%\Projects\LostCity-225-EngineTS\ext"
  
-===== Map =====+  DEL /Q "%UserProfile%\Projects\LostCity-225-EngineTS\src\public\client\SCC1_Florestan.sf2" && MKLINK "%UserProfile%\Projects\LostCity-225-EngineTS\src\public\client\SCC1_Florestan.sf2" "%UserProfile%\Projects\LostCity-225-EngineTS\ext\SC55_zzdenis_v0.5.sf2"
  
-  * https://runescape.wiki/images/June_2004_Map.jpg?35d17 ([[https://runescape.wiki/w/World_map#/media/File:June_2004_Map.jpg|Source]])+  DIR "%UserProfile%\Projects\LostCity-225-EngineTS\src\public\client\SCC1_Florestan.sf2"
  
-  "%UserProfile%\Projects\2004Scape-Server\ext\June_2004_Map.jpg"+==== Update Script ====
  
-===== Icon =====+  * Above ''MSG'' line
  
-  * https://raw.githubusercontent.com/2004Scape/Server/7b0f1ec303dc1f76c7b29a2fff83b5797dafa01b/public/favicon.ico+  "notepad.exe" "%UserProfile%\Projects\LostCity-225-EngineTS\scripts\localhost-server-update.bat"
  
-  "%UserProfile%\Projects\2004Scape-Server\ext\favicon.ico"+<code> 
 +:: SC55_zzdenis_v0.5.sf2 
 +DEL /Q "%UserProfile%\Projects\LostCity-225-EngineTS\src\public\client\SCC1_Florestan.sf2" 
 +MKLINK "%UserProfile%\Projects\LostCity-225-EngineTS\src\public\client\SCC1_Florestan.sf2" "%UserProfile%\Projects\LostCity-225-EngineTS\ext\SC55_zzdenis_v0.5.sf2" 
 +:: SF End</code>
  
-===== Save Back to Downloads =====+===== Login Autofill =====
  
-  * For Firefox to go back to default ''Downloads'' folder after above downloads +  * [[https://github.com/2004Scape/Server/issues/1498|#1498]] 
-  * https://raw.githubusercontent.com/2004Scape/Server/7b0f1ec303dc1f76c7b29a2fff83b5797dafa01b/public/favicon.ico+  * Modifies ''client.js'' to have pre-filled username/password
  
-  "%UserProfile%\Downloads\favicon.ico"+  "notepad.exe" "%UserProfile%\Projects\LostCity-225-EngineTS\scripts\localhost-autologin-sed.sh"
  
-  DEL /"%UserProfile%\Downloads\favicon.ico"+<code> 
 +#!/bin/sh 
 + 
 +cd '/tmp' 
 + 
 +'/usr/bin/sed' -i -e 's/usernameInput="";passwordInput=""/usernameInput="Espionage724";passwordInput="1"/g' ~/'Projects/LostCity-225-EngineTS/src/public/client/client.js' 
 + 
 +# End</code> 
 + 
 +  "%ProgramFiles%\Git\bin\sh.exe" -- "%UserProfile%\Projects\LostCity-225-EngineTS\scripts\localhost-autologin-sed.sh" 
 + 
 +==== Update Script ==== 
 + 
 +  * Above ''MSG'' line 
 + 
 +  "notepad.exe" "%UserProfile%\Projects\LostCity-225-EngineTS\scripts\localhost-server-update.bat" 
 + 
 +<code> 
 +:: Login Autofill 
 +"%ProgramFiles%\Git\bin\sh.exe" -- "%UserProfile%\Projects\LostCity-225-EngineTS\scripts\localhost-autologin-sed.sh" 
 +:: Autofill End</code>
  
 ====== Launcher Shortcuts ====== ====== Launcher Shortcuts ======
  
 ===== Desktop ===== ===== Desktop =====
- 
-  * Right-click Desktop -> New -> Shortcut 
  
 ==== Server Start ==== ==== Server Start ====
  
-  "%UserProfile%\Projects\2004Scape-Server\scripts\localhost-server-start.bat"+  "%UserProfile%\Projects\LostCity-225-EngineTS\scripts\localhost-server-start.bat"
  
   2004Scape Server   2004Scape Server
Line 182: Line 252:
 ==== Client ==== ==== Client ====
  
-  "http://localhost/rs2.cgi"+  "%ProgramFiles(x86)%\Microsoft\Edge\Application\msedge_proxy.exe" --proxy-server="localhost:80" --kiosk --edge-kiosk-type="public-browsing" --new-window --window-size="815,600" --app="http://localhost:80/rs2.cgi"
  
   2004Scape   2004Scape
Line 190: Line 260:
 **** ****
  
-  "%UserProfile%\Projects\2004Scape-Server\ext\favicon.ico"+  "%UserProfile%\Projects\LostCity-225-EngineTS\ext\favicon.ico"
  
 ===== Start Menu ===== ===== Start Menu =====
  
-  Right-click -> New -> Shortcut +****
- +
-  MKDIR "%AppData%\Microsoft\Windows\Start Menu\Programs\2004Scape"+
  
-  "explorer.exe" "%AppData%\Microsoft\Windows\Start Menu\Programs\2004Scape"+  MKDIR "%AppData%\Microsoft\Windows\Start Menu\Programs\2004Scape""explorer.exe" "%AppData%\Microsoft\Windows\Start Menu\Programs\2004Scape"
  
 ==== Server Start ==== ==== Server Start ====
  
-  "%UserProfile%\Projects\2004Scape-Server\scripts\localhost-server-start.bat"+  "%UserProfile%\Projects\LostCity-225-EngineTS\scripts\localhost-server-start.bat"
  
   Server Start   Server Start
Line 208: Line 276:
 ==== Client ==== ==== Client ====
  
-  "http://localhost/rs2.cgi"+  "%ProgramFiles(x86)%\Microsoft\Edge\Application\msedge_proxy.exe" --proxy-server="localhost:80" --kiosk --edge-kiosk-type="public-browsing" --new-window --window-size="815,600" --app="http://localhost:80/rs2.cgi"
  
   2004Scape (localhost)   2004Scape (localhost)
Line 216: Line 284:
 **** ****
  
-  "%UserProfile%\Projects\2004Scape-Server\ext\favicon.ico"+  "%UserProfile%\Projects\LostCity-225-EngineTS\ext\favicon.ico"
  
 ==== Update ==== ==== Update ====
  
-  "%UserProfile%\Projects\2004Scape-Server\scripts\localhost-server-update.bat"+  "%UserProfile%\Projects\LostCity-225-EngineTS\scripts\localhost-server-update.bat"
  
   Updater   Updater
Line 226: Line 294:
 ==== Save Backup ==== ==== Save Backup ====
  
-  "%UserProfile%\Projects\2004Scape-Server\scripts\localhost-save-backup.bat"+  "%UserProfile%\Projects\LostCity-225-EngineTS\scripts\localhost-save-backup.bat"
  
   Save Back-up   Save Back-up
Line 232: Line 300:
 ==== Save Folder ==== ==== Save Folder ====
  
-  MKDIR "%UserProfile%\Projects\2004Scape-Server\src\data\players"+  MKDIR "%UserProfile%\Projects\LostCity-225-EngineTS\src\data\players\localhost"
  
-  "%UserProfile%\Projects\2004Scape-Server\src\data\players"+  "%UserProfile%\Projects\LostCity-225-EngineTS\src\data\players\localhost"
  
   Save Folder   Save Folder
  
-==== Commits Check ====+==== World Map ====
  
-  "https://github.com/2004Scape/Server/commits/main/"+  "%UserProfile%\Projects\LostCity-225-EngineTS\ext\June_2004_Map.jpg"
  
-  Updates Check+  World Map
  
-==== World Map ====+==== Chaos Altar Map ====
  
-  "%UserProfile%\Projects\2004Scape-Server\ext\June_2004_Map.jpg"+  "%UserProfile%\Projects\LostCity-225-EngineTS\ext\Chaos_Altar_map.png"
  
-  World Map+  Chaos Altar Map
  
 ==== Install Notes ==== ==== Install Notes ====
Line 258: Line 326:
 ====== Quick Commands ====== ====== Quick Commands ======
  
-===== Execute =====+===== Save Restore =====
  
-==== Server ====+  * ''data\players\localhost\espionage724.sav''
  
-****+  MKDIR "%UserProfile%\Projects\LostCity-225-EngineTS\src\data\players\localhost" & "explorer.exe" "%UserProfile%\Projects\LostCity-225-EngineTS\src\data\players\localhost"
  
-  "%ProgramFiles%\nodejs\node.exe" "%ProgramFiles%\nodejs\node_modules\npm\bin\npm-cli.js" --prefix "%UserProfile%\Projects\2004Scape-Server\src" run "quickstart" --verbose+===== Firewall TODO =====
  
-==== Client ====+==== Bun ====
  
-  http://localhost/rs2.cgi +****
-  http://localhost:80+
  
-===== Update =====+  "netsh.exe" advfirewall firewall add rule name="2004Scape localhost Server (bun.exe)" dir="in" action="block" profile="any" program="%UserProfile%\Projects\LostCity-225-EngineTS\ext\bun.exe"
  
-  * https://github.com/2004Scape/Server/commits/main/+=== Delete Rule ===
  
-  "%ProgramFiles%\Git\bin\git.exe" -C "%UserProfile%\Projects\2004Scape-Server\src" reset --hard && "%ProgramFiles%\Git\bin\git.exe" -C "%UserProfile%\Projects\2004Scape-Server\src" pull origin "main" --rebase && "%ProgramFiles%\nodejs\node.exe" "%ProgramFiles%\nodejs\node_modules\npm\bin\npm-cli.js" --prefix "%UserProfile%\Projects\2004Scape-Server\src" run "clean" --verbose && "%ProgramFiles%\nodejs\node.exe" "%ProgramFiles%\nodejs\node_modules\npm\bin\npm-cli.js" --prefix "%UserProfile%\Projects\2004Scape-Server\src" "ci" --verbose && "%ProgramFiles%\nodejs\node.exe" "%ProgramFiles%\nodejs\node_modules\npm\bin\npm-cli.js" --prefix "%UserProfile%\Projects\2004Scape-Server\src" run "setup" --verbose +****
- +
-===== Save Data Back-up ===== +
- +
-  :!: The ''tar'' command replaces ''Downloads\2004Scape-Server-localhost-Saves.tar.gz'' each time without back-up or date codes +
- +
-  "explorer.exe" "%UserProfile%\Projects\2004Scape-Server\src\data\players" +
- +
-  "tar.exe" -cvzf "%UserProfile%\Downloads\2004Scape-Server-localhost-Saves.tar.gz" -C "%UserProfile%\Projects\2004Scape-Server\src\data\players" "main" +
- +
-===== npm ===== +
- +
-  Lists available ''npm'' commands +
- +
-  "%ProgramFiles%\nodejs\node.exe" "%ProgramFiles%\nodejs\node_modules\npm\bin\npm-cli.js" --prefix "%UserProfile%\Projects\2004Scape-Server\src" run +
- +
-  CD "%UserProfile%\Projects\2004Scape-Server\src" && npm run +
- +
-===== File Manager ===== +
- +
-==== Save Data ==== +
- +
-  :?: Restoring a ''.sav'' may require logging in once to Tutorial Island, logging out, then re-restoring the ''.sav'' +
- +
-  MKDIR "%UserProfile%\Projects\2004Scape-Server\src\data\players\main" +
- +
-  "explorer.exe" "%UserProfile%\Projects\2004Scape-Server\src\data\players" +
- +
-====== SoundFont Tests ====== +
- +
-  "explorer.exe" "%UserProfile%\Projects\2004Scape-Server\src\public\client"+
  
-  SCC1_Florestan.sf2+  "netsh.exe" advfirewall firewall delete rule name="2004Scape localhost Server (bun.exe)"
  
-===== SoundFonts =====+=== Allow LAN ===
  
-  * https://www.doomworld.com/forum/topic/115527-roland-sc-55-soundfonts-compared-500-soundfont-pack-w-download/?tab=comments#comment-2153630 +  * Needs above Bun block rule deleted first
-  * https://www.doomworld.com/forum/topic/136501-best-soundfonts/+
  
-  * ''SC-55 SoundFont v1.2a1.sf2'' preferred+  "netsh.exe" advfirewall firewall add rule name="2004Scape localhost Server (bun.exe)" dir="in" action="allow" profile="any" program="%UserProfile%\Projects\LostCity-225-EngineTS\ext\bun.exe" protocol="tcp" localport="80" remoteip="localsubnet"
  
C:/www/wiki/data/attic/games/windows/2004scape_localhost.1744052456.txt.gz · Last modified: by Sean Rhone

Except where otherwise noted, content on this wiki is licensed under the following license: CC0 1.0 Universal
CC0 1.0 Universal Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki