User Tools

Site Tools


games:bsd:wine:2004scape_localhost

Information

  • 2004Scape Server 1)
  • :!: no-dev-watcher Branch 2)
  • TODO: Test main branch after d30ddb3
  • These notes provide a local singleplayer server for 2004Scape 3) on FreeBSD 14.1 4)

Prerequisites

Resources

Web

Dependencies

Git

su -l
pkg install git-lite

Java

  • Last tested: 2024/10/03: OpenJDK23U-jdk_x64_windows_hotspot_23_37.msi
  • All users, all-defaults
WINEPREFIX=~/'.wine/2004Scape-Server' WINEARCH='win64' wine ~/'Downloads/OpenJDK23U-jdk_x64_windows_hotspot_23_37.msi'

Node.js

  • Last tested: 2024/10/03: node-v22.9.0-x64.msi
  • Node.js runtime, npm package manager, Add to PATH (corepack manager and Online documentation not required)
  • Tools for Native Modules not required (leave “Automatically install the tools” unchecked)
WINEPREFIX=~/'.wine/2004Scape-Server' WINEARCH='win64' wine ~/'Downloads/node-v22.9.0-x64.msi'

Download Source

cd ~ && mkdir -p ~/'.wine/2004Scape-Server/drive_c/2004Scape-Server' && rm -Rf ~/'.wine/2004Scape-Server/drive_c/2004Scape-Server/src' && git clone --branch 'no-dev-watcher' --depth '1' --recurse-submodules 'https://github.com/2004Scape/Server.git' ~/'.wine/2004Scape-Server/drive_c/2004Scape-Server/src' && sync

Extra Deps

  • :!: 2024/10/03: Requires manually moving files

npm Deps

  • :!: This is expected to fail at first 5)
cd ~/'.wine/2004Scape-Server/drive_c/2004Scape-Server/src' && WINEPREFIX=~/'.wine/2004Scape-Server' WEB_PORT='8888' wine npm start

bcrypt

mkdir -p ~/'.wine/2004Scape-Server/drive_c/2004Scape-Server/src/node_modules/bcrypt/lib/binding'
gio open ~/'.wine/2004Scape-Server/drive_c/2004Scape-Server/src/node_modules/bcrypt/lib/binding'
ls ~/'.wine/2004Scape-Server/drive_c/2004Scape-Server/src/node_modules/bcrypt/lib/binding/napi-v3/bcrypt_lib.node'

Runescript Compiler

gio open ~/'.wine/2004Scape-Server/drive_c/2004Scape-Server/src'
ls ~/'.wine/2004Scape-Server/drive_c/2004Scape-Server/src/RuneScriptCompiler.jar'

npm Build

cd ~/'.wine/2004Scape-Server/drive_c/2004Scape-Server/src' && WINEPREFIX=~/'.wine/2004Scape-Server' wine npm run 'clean'
cd ~/'.wine/2004Scape-Server/drive_c/2004Scape-Server/src' && WINEPREFIX=~/'.wine/2004Scape-Server' wine npm run 'build'

Quick Commands

npm Flags

  • --verbose can be put at the end of npm commands
--verbose

Execute

Server

cd ~/'.wine/2004Scape-Server/drive_c/2004Scape-Server/src' && WINEPREFIX=~/'.wine/2004Scape-Server' WEB_PORT='8888' wine npm start

Client

Update

git -C ~/'.wine/2004Scape-Server/drive_c/2004Scape-Server/src' reset --hard && git -C ~/'.wine/2004Scape-Server/drive_c/2004Scape-Server/src' pull origin 'no-dev-watcher' --rebase && cd ~/'.wine/2004Scape-Server/drive_c/2004Scape-Server/src' && WINEPREFIX=~/'.wine/2004Scape-Server' wine npm run 'clean'

npm

  • Lists available npm commands
cd ~/'.wine/2004Scape-Server/drive_c/2004Scape-Server/src' && WINEPREFIX=~/'.wine/2004Scape-Server' wine npm run

File Manager

Root

gio open ~/'.wine/2004Scape-Server/drive_c/2004Scape-Server/src'

Save Data

gio open ~/'.wine/2004Scape-Server/drive_c/2004Scape-Server/src/data/players'

Other Notes

  • Oracle's Java didn't add java to PATH on wine; Adoptium's is fine
  • :?: Node module bcrypt reportedly has a pre-built win64 module that should auto-download?
  • Port 8888 is what Node on *nix does, and when this was tested on Fedora 41 the default 80 Windows port (wine) couldn't be opened due to lower Linux ports being system-reserved
  • RuneScriptCompiler.jar had to be tag 19 (17 failed)
  • :!: TODO: Desktop launchers, saves back-up
3)
RSPS/RuneScape Private Server based on cache 225 from May 18th, 2004
4)
Server runs in Wine
5)
bcrypt lib and RuneScript Compiler not found
/var/www/wiki/data/pages/games/bsd/wine/2004scape_localhost.txt · Last modified: by Sean Rhone