Server.cfg: Difference between revisions

From NPC for VCMP 0.4 Servers
Jump to navigation Jump to search
(Created page with "== server.cfg Configuration Properties == === max_npc === * '''Description:''' Limits the number of NPCs (Non-Player Characters) in the server. * '''Usage:''' Add the following line to your `server.cfg` file: <pre> max_npc <value> </pre> * '''Accepted Values:''' * `0` to `100`: Limits the number of NPCs to the specified value. * `-1`: Allows any number of NPCs (unlimited). * '''Example:''' <pre> max_npc 50 </pre> === recdir === * '''Description:''...")
 
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
__NOEDITSECTION__
== server.cfg Configuration Properties ==
== server.cfg Configuration Properties ==


Line 16: Line 17:


=== recdir ===
=== recdir ===
* '''Description:''' Specifies the directory for saving playback recordings.
* '''Description:''' Specifies the directory for saving playback recordings created by [[StartRecordingPlayerData]], [[StartRecordingAllPlayerData]] or [[PutServerInRecordingMode]]
* '''Usage:''' Add the following line to your `server.cfg` file:
* '''Usage:''' Add the following line to your `server.cfg` file:
   <pre>
   <pre>
Line 24: Line 25:
   * `1`: Saves recordings to the `recordings` folder.
   * `1`: Saves recordings to the `recordings` folder.
   * `2`: Saves recordings to the `npcscripts/recordings` folder.
   * `2`: Saves recordings to the `npcscripts/recordings` folder.
* '''Note:''' This configuration is optional, and if not provided, the default recording folder is used.
* '''Note:''' This configuration is optional, and if not provided, the default recording folder is used. Also the [[.hrec_file|.hrec]] file's location (for saving aswell as loading) will always be <source inline>recordings/a_server/</source> and is not affected by this parameter.
* '''Example:'''
* '''Example:'''
   <pre>
   <pre>

Latest revision as of 14:57, 4 February 2024

server.cfg Configuration Properties

max_npc

  • Description: Limits the number of NPCs (Non-Player Characters) in the server.
  • Usage: Add the following line to your `server.cfg` file:
  max_npc <value>
  
  • Accepted Values:
 * `0` to `100`: Limits the number of NPCs to the specified value.
 * `-1`: Allows any number of NPCs (unlimited).
  • Example:
  max_npc 50
  

recdir

  recdir <value>
  
  • Accepted Values:
 * `1`: Saves recordings to the `recordings` folder.
 * `2`: Saves recordings to the `npcscripts/recordings` folder.
  • Note: This configuration is optional, and if not provided, the default recording folder is used. Also the .hrec file's location (for saving aswell as loading) will always be recordings/a_server/ and is not affected by this parameter.
  • Example:
  recdir 2
  

Note: Ensure that you only include one configuration per line in the `server.cfg` file, and the values are specified as per the guidelines mentioned above.