emtneutrino / races

BSD 3-Clause "New" or "Revised" License
13 stars 12 forks source link

INSTALLATION

CLIENT COMMANDS

Required arguments are in square brackets. Optional arguments are in parentheses.

/races - display list of available /races commands
/races edit - toggle editing track waypoints
/races clear - clear track waypoints
/races reverse - reverse order of track waypoints

For the following /races commands, [access] = {pvt, pub} where 'pvt' operates on a private track and 'pub' operates on a public track

/races load [access] [name] - load private or public track saved as [name]
/races save [access] [name] - save new private or public track as [name]
/races overwrite [access] [name] - overwrite existing private or public track saved as [name]
/races delete [access] [name] - delete private or public track saved as [name]
/races list [access] - list saved private or public tracks
/races blt [access] [name] - list 10 best lap times of private or public track saved as [name]

/races ai spawn [name] (vehicle) - spawn AI driver named [name] in (vehicle); (vehicle) defaults to 'adder' if not specified
/races ai delete [name] - delete an AI driver named [name]
/races ai deleteAll - delete all AI drivers
/races ai list - list AI driver names

For the following /races ai commands, [access] = {pvt, pub} where 'pvt' operates on a private AI group and 'pub' operates on a public AI group

/races ai loadGrp [access] [name] - load private or public AI group saved as [name]
/races ai saveGrp [access] [name] - save new private or public AI group as [name]
/races ai overwriteGrp [access] [name] - overwrite existing private or public AI group saved as [name]
/races ai deleteGrp [access] [name] - delete private or public AI group saved as [name]
/races ai listGrps [access] - list saved private or public AI groups

/races vl add [vehicle] - add [vehicle] to vehicle list
/races vl delete [vehicle] - delete [vehicle] from vehicle list
/races vl addClass [class] - add all vehicles of type [class] to vehicle list
/races vl deleteClass [class] - delete all vehicles of type [class] from vehicle list
/races vl addAll - add all vehicles to vehicle list
/races vl deleteAll - delete all vehicles from vehicle list
/races vl list - list all vehicles in vehicle list

For the following /races vl commands, [access] = {pvt, pub} where 'pvt' operates on a private vehicle list and 'pub' operates on a public vehicle list

/races vl loadLst [access] [name] - load private or public vehicle list saved as [name]
/races vl saveLst [access] [name] - save new private or public vehicle list as [name]
/races vl overwriteLst [access] [name] - overwrite existing private or public vehicle list saved as [name]
/races vl deleteLst [access] [name] - delete private or public vehicle list saved as [name]
/races vl listLsts [access] - list saved private or public vehicle lists

For the following /races register commands, (buy-in) defaults to 500, (laps) defaults to 1 lap, (DNF timeout) defaults to 120 seconds and (allow AI) = {yes, no} defaults to 'no'

/races register (buy-in) (laps) (DNF timeout) (allow AI) - register your race with no vehicle restrictions
/races register (buy-in) (laps) (DNF timeout) (allow AI) rest [vehicle] - register your race restricted to [vehicle]
/races register (buy-in) (laps) (DNF timeout) (allow AI) class [class] - register your race restricted to vehicles of type [class]; if [class] is '-1' then use custom vehicle list
/races register (buy-in) (laps) (DNF timeout) (allow AI) rand (class) (start) (recur) (order) - register your race changing vehicles randomly every lap; (class) defaults to any; (start) defaults to any; (recur) = {yes, no} defaults to 'yes'; (order) = {yes, no} defaults to 'no'

/races unregister - unregister your race
/races start (delay) - start your registered race; (delay) defaults to 30 seconds if not specified

/races leave - leave a race that you joined
/races rivals - list players in a race that you joined
/races respawn - respawn at last waypoint
/races results - view latest race results
/races spawn (vehicle) - spawn a vehicle; (vehicle) defaults to 'adder' if not specified
/races lvehicles (class) - list available vehicles of type (class); (class) defaults to all classes if not specified
/races speedo (unit) - change unit of speed measurement to (unit) = {imperial, metric}; otherwise toggle display of speedometer if (unit) is not specified
/races funds - view available funds
/races panel (panel) - display (panel) = {track, ai, list, register} panel; (panel) defaults to main panel if not specified

IF YOU DO NOT WANT TO TYPE CHAT COMMANDS, YOU CAN BRING UP A PANEL THAT CAN DO THE SAME TASK BY TYPING /races panel, /races panel track, /races panel ai, /races panel list OR /races panel register.

SERVER COMMANDS

Required arguments are in square brackets.

races - display list of available races commands
races list - list public tracks
races export [name] - export public track saved as [name] without best lap times to file named [name].json
races import [name] - import track file named [name].json into public tracks without best lap times
races exportwblt [name] - export public track saved as [name] with best lap times to file named [name].json
races importwblt [name] - import track file named [name].json into public tracks with best lap times

SAMPLE TRACKS

QUICK GUIDE FOR RACE CREATORS

QUICK GUIDE FOR RACING

CLIENT COMMAND DETAILS

SERVER COMMAND DETAILS

EVENT LOGGING

ADD-ON VEHICLES

PORTING

SCREENSHOTS

VIDEOS

LICENSE

Copyright (c) 2024, Neil J. Tan
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

  1. Redistributions of source code must retain the above copyright notice, this
    list of conditions and the following disclaimer.

  2. Redistributions in binary form must reproduce the above copyright notice,
    this list of conditions and the following disclaimer in the documentation
    and/or other materials provided with the distribution.

  3. Neither the name of the copyright holder nor the names of its
    contributors may be used to endorse or promote products derived from
    this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

RECENT CHANGES AFFECTING PAST VERSIONS

CHANGE NOTES