Changes

How to setup a local QuakeJS server under Windows 10

1,892 bytes added, 17:01, 9 September 2019
no edit summary
#*Make sure you get the correct 32-bit or 64-bit version for your OS
#copy ''jq.exe'' & ''wget.exe'' from your Downloads folder to ''C:\Program Files\Git\mingw64\bin\''
 
==Setup QuakeJS Server==
#Hit '''Windows Key + R''' and type "cmd" to launch the Command Prompt.
#Run the following command to ensure we're in our Home Directory<pre>%HOMEPATH%</pre>
#Run the following command to clone my updated quakejs repo to your Home Directory<pre>git clone --recurse-submodules https://github.com/begleysm/quakejs.git</pre>
#Run the following command to switch into the, newly created, ''quakejs'' directory<pre>cd quakejs</pre>
#Run the following command to install the necessary Node.js modules<pre>npm install</pre>
#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>
#Edit the baseq3 server config file (''C:\Users\USERNAME\quakejs\base\baseq3\server.cfg''). Pay special attention to '''seta sv_hostname''', '''seta g_motd''', and especially '''seta rconpassword'''
#Optionally edit the cpma server config file (''C:\Users\USERNAME\quakejs\base\cpma\server.cfg''). Pay special attention to '''seta sv_hostname''', '''seta g_motd''', and especially '''seta rconpassword'''
#You can test (or run) your server with the following command, but there isn't much point until we setup the Content Server and Play Page. <pre>node build/ioq3ded.js +set fs_game baseq3 set dedicated 1 +exec server.cfg</pre>
 
==Setup the Web Server==