games:bsd:wine:2004scape_localhost
Table of Contents
Information
Prerequisites
Resources
Web
- Info post (Jul 3, 2024)
Dependencies
- 2024/10/03: Git (native), Java (win64), NodeJS (win64)
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
- Extract from
tar.gz
;napi-v3
folder goes intobinding
folder
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
- Move
RuneScriptCompiler.jar
tosrc
root
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 ofnpm
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
- Running
npm run clean
requires starting the server once afterwards with an internet connection to download packages to start the server for playing offline
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 onwine
; Adoptium's is fine - Node module
bcrypt
reportedly has a pre-builtwin64
module that should auto-download? - Port
8888
is what Node on *nix does, and when this was tested on Fedora 41 the default80
Windows port (wine
) couldn't be opened due to lower Linux ports being system-reserved RuneScriptCompiler.jar
had to be tag19
(17
failed)- TODO: Desktop launchers, saves back-up
/var/www/wiki/data/pages/games/bsd/wine/2004scape_localhost.txt · Last modified: by Sean Rhone