1,575
edits
Changes
→Setup a Local QuakeJS Server
#Clone the original QuakeJS git repository (along with the ioq3 repository sub-module) by running <pre>git clone --recurse-submodules https://github.com/inolen/quakejs.git</pre>
#Move into the newly created ''quakejs'' directory by running <pre>cd quakejs</pre>
#Install the necessary node.js packages by running <pre>npm install</pre>#Fix the You'll see some warnings about deprecated packages and vulnerabilities that can be easily addressed by running <pre>npm audit fix<. You'll have to just accept it and move on. QuakeJS is from 2013/pre>2014.
#To download BASE3Q files, run the server for the 1st time by executing the following command. Hold down '''enter''' to get through the EULA, agree to the EULA by hitting '''y''' and game files will be downloaded. Once all files have been downloaded (you'll see the line '''ignoring setsockopt command''') quit the server by hitting '''Ctrl+C'''<pre>node build/ioq3ded.js +set fs_game baseq3 +set dedicated 1</pre>
#Optionally run the following command to download additional CPMA files. Again hit '''Ctrl+C''' to quit the server once all files have been downloaded (you'll see the line '''ignoring setsockopt command''') <pre>node build/ioq3ded.js +set fs_game cpma +set dedicated 1</pre>