Need for Speed: Hot Pursuit 2/Online: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 10: | Line 10: | ||
* TCP 80, 8511, 28900 | * TCP 80, 8511, 28900 | ||
* UDP 1230, 8512, 27900, 61220 through 61230 | * UDP 1230, 8512, 27900, 61220 through 61230 | ||
There are three editable files inside the game's save data folder (usually Documents/EA Games/Need for Speed: Hot Pursuit 2, but can be changed with the widescreen fix): | There are three editable files inside the game's save data folder (usually Documents/EA Games/Need for Speed: Hot Pursuit 2, but can be changed with the widescreen fix): | ||
* '''banlist.txt''' (possibly referring to bootlist.txt?) - this records the identities of players who you have banned. It adds one line for each player you ban. To un-ban a player, simply edit this file and remove the corresponding line. | |||
* '''netprefs.ini''' - users can modify the netprefs.ini file to specify custom ports for the game servers. If this file is deleted it will be recreated with default settings. | |||
* '''server.ini''' - various game options for a hosted server can be configured here. | |||
=== Server Console Commands === | === Server Console Commands === |
Revision as of 15:27, 1 August 2024
OpenSpy
Server hosting
Dedicated Server
Configuration
According to the official ReadMe documentation, the following ports are used by the game:
- TCP 80, 8511, 28900
- UDP 1230, 8512, 27900, 61220 through 61230
There are three editable files inside the game's save data folder (usually Documents/EA Games/Need for Speed: Hot Pursuit 2, but can be changed with the widescreen fix):
- banlist.txt (possibly referring to bootlist.txt?) - this records the identities of players who you have banned. It adds one line for each player you ban. To un-ban a player, simply edit this file and remove the corresponding line.
- netprefs.ini - users can modify the netprefs.ini file to specify custom ports for the game servers. If this file is deleted it will be recreated with default settings.
- server.ini - various game options for a hosted server can be configured here.
Server Console Commands
Can be found in an online game by pressing the ~ key and then typing "/?".
Command | Function | Client-side or server-side? |
---|---|---|
/name [playername] | Requests change to new client name | Client |
/voteboot [playername] | Adds a vote to boot client, if eligible to vote | Client |
/votebootbyid [id] | Same as voteboot but using client id for identification. | Client |
/votemap [trackname] or /votemap [tracknumber] | (e.g. /votemap Coastal Parklands) Adds a vote to change track, if eligible to vote. Also recognizes Random. Only first 5 chars of track name needed, English only. | Client |
/setup | If in setup mode, launches car select dialog | Client |
/startrace | Attempts to start race immediately, without a countdown | Server |
/boot [playername] | Boots player. player is banned until next setup phase. | Server |
/ban [playername] | Bans the player permanently. to un-ban, must hand edit ban file. | Server |
/bootbyid [id] | Same as boot but using client id for identification. | Server |
/banbyid [id] | Same as ban but using client id for identification. | Server |
/send [playername],[message] | Sends a directed message to player. | Both |
/quit or /exit | Exit directly to desktop. | Both |
/disconnect | Exit to FE, equivalent to disconnect button. | Both |
/challenge or /reset | Equivalent to request restart button if client, resets if running server. | Both |
/idlist | Shows list of connected clients with the server assigned client ID. | Both |
/server finishtimeout [ms] | Sets the timeout for race over after the first player finishes a single race. (default is 90 seconds, 0 is off) | Server |
/server laptimeout [ms] | Sets lap inactivity timeout. (default 10 minutes, min 5 minutes, 0=off) | Server |
/server maxsetuptime [ms] | Sets max setup time after entering setup mode (default 0=off, min 15 seconds) | Server |
/server heartbeat [ms] | Sets heartbeat time before booting unresponsive client. (min 10 seconds) | Server |
/server resultsdisplaytime [ms] | Length of time for server to stay in results mode after race finish. | Server |
/server countdown [ms] | Sets setup time after first car selected. (default 15 seconds, min 5 seconds) | Server |
/server docountdown [1 or 0] | If 0 sets first car selected countdown to off, non 0 = on. (default on) | Server |
/server voting [1 or 0] | If 0 ignores votes for booting and track change. (default on) | Server |
/server numraces [num] | Number of races before settings, e.g. random, are reprocessed (default is 5) | Server |
/server laps [num] | Alter number of laps for next race, will be processed on next server reset. | Server |
/server class [class] | Class restriction for next race (1-5 = class, any other number is any class) | Server |
/server direction [num] | Direction for next race after a reset. | Server |
/track [trackname] or /track [tracknumber] | Changes next track that server will use after a reset. | Server |
/racetype ko or /racetype sr | Changes racetype that server will use after a reset. | Server |
/servername [NewName] | Changes server name. | Server |
/password [NewPassword] | Changes server password. Maximum of 12 characters. | Server |
/votemap | The Voting commands allow settings to be changed on Servers by Clients. Requesting a restart also uses the voting mechanism. | Server |
/voteboot | Server | |
/request [car] | (Not mentioned in official ReadMe). Must use name of car folder in the game's Cars directory (e.g. "speedstr" for Opel Speedster) | Client |