Server scripts for the game "MX Simulator".
- Download the JavaScript files you want and move them to your server's
js
directory. - Edit your
serverargs.txt
file and include the line argument--javascript js/<scriptname>.js
. - Include the
--args-file serverargs.txt
argument when starting your server.
Example:
--max-clients 11
--greeting "Welcome to my server"
--results-file results.txt
--track-interval 15
--laps 5
--erode 0.3
--javascript js/elimination.js
--javascript js/myinfo.js
trackinfo/alcrest.trackinfo
You must be a server admin to run commands.
The elimination.js
script is used to host "elimination" races. Type in the server command server, quali <n>
to qualify the top "n" players. The remaining players will be eliminated. When players are eliminated, a message will be broadcast to the server, and the player will be moved into spectator mode.