1,575
edits
Changes
→Setup a Local QuakeJS Server
#Install the necessary node.js packages by running <pre>npm install</pre>
#Fix the vulnerabilities that can be easily addressed by running <pre>npm audit fix</pre>
#Run the server for the 1st time by executing the following command. Continue to hit Hold down '''enter''' a lot to get through the EULA, agree to the EULA by hitting '''y''' and game files will be downloaded. Once all files have been downloaded quit the server by hitting '''Ctrl+C'''<pre>node build/ioq3ded.js +set fs_game baseq3 +set dedicated 1</pre>
#Create a baseq3 server config file by running the following command <pre>nano /base/baseq3/server.cfg</pre> and fill in the body with the following <pre>seta sv_hostname "quakejs" seta sv_maxclients 12 seta g_motd "Welcome to the Local baseq3 QuakeJS Server" seta g_quadfactor 3 seta g_gametype 0 seta timelimit 15 seta fraglimit 25 seta g_weaponrespawn 3 seta g_inactivity 3000 seta g_forcerespawn 0 seta rconpassword "quakejs" set d1 "map q3dm7 ; set nextmap vstr d2" set d2 "map q3dm17 ; set nextmap vstr d1" vstr d1</pre>
#Run your server with the following command <pre>node build/ioq3ded.js +set fs_game baseq3 set dedicated 1 +exec server.cfg</pre>