jojorb / quakejs-server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

QuakeJs - CPMA

Build docker image

cd quake-server
docker build -t rmsrob/quake3js .
docker-compose up

If you need to check inside the container

docker exec -it quakejs bash
# apply change and exit
docker restart quakejs

In Google Chrome open http://localhost:8080/ Agree the EULA and frag!

Again open in Google Chrome if you see this kind of error in the console after accepting the EULA and the game not loading.

ioquake3.js:12428 Uncaught RangeError: Invalid array length
    at Uint8Array.slice (<anonymous>)
    at Object.ensureFlexible (ioquake3.js:12428:49)

if you got CORS issue just open a dedicate Chrome session

open -na Google\ Chrome --args --user-data-dir=/tmp/temporary-chrome-profile-dir --disable-web-security --disable-site-isolation-trials

Add map or .pk3

deposit your .pk3 file inside updates/ folder and then you need to apply a fix

  • on the name of the file and on the manifest.json

to do this use the script

./quakejs/cctools/crc-rename ../../updates/baseq3/*

Drop your cfg

  • open google chrome dev console CTRL + J
  • pass your cfg in between the back tick
FS.writeFile(
  "base/baseq3/your_name.cfg",
  ``
);
  • if you change some video setings
    • open the quakejs console with @ or ~
    • type /reconnect

About


Languages

Language:JavaScript 58.1%Language:C 40.9%Language:Makefile 0.2%Language:HTML 0.2%Language:GLSL 0.2%Language:Shell 0.1%Language:EJS 0.1%Language:Assembly 0.1%Language:Roff 0.1%Language:NSIS 0.0%Language:Objective-C 0.0%Language:Yacc 0.0%Language:MATLAB 0.0%Language:Rich Text Format 0.0%Language:Dockerfile 0.0%Language:AMPL 0.0%Language:VBScript 0.0%