Bug 2666 - per-map configuration files
Status: RESOLVED FIXED
Alias: None
Product: Tremulous
Classification: Unclassified
Component: Misc
Version: unspecified
Hardware: All All
: P2 enhancement
Assignee: Tim Angus
QA Contact:
URL: http://tjw.org/tremulous/
Depends on:
Blocks:
 
Reported: 2006-04-17 13:58 EDT by Tony J. White
Modified: 2006-07-02 11:56:14 EDT
2 users (show)

See Also:


Attachments
optional per-map configuration files (1.73 KB, patch)
2006-04-17 13:59 EDT, Tony J. White
give maprotation.cfg settings precedence over g_mapConfigs (2.80 KB, patch)
2006-06-19 19:07 EDT, Tony J. White

Description Tony J. White 2006-04-17 13:58:51 EDT
There is already some facility for map settings in maprotation.cfg, but this cvar simplifies per map configuration especially for those cvars that may be overwritten in map scripts (e.g. g_alienBuildPoints).

Documentation:

g_mapConfigs <string>
  Set this cvar to the name of a directory inside of your fs_game directory
  and every time a map loads the server will exec "default.cfg" followed by
  "<MAPNAME>.cfg" from inside that directory (if they exist).  You can set
  this to "." to use the fs_game directory itself.

  This is useful if you want to adjust a cvar that the mapscripts overwrite
  when a map loads (e.g. g_alienBuildPoints).

  Default is "" (which means off)
Comment 1 Tony J. White 2006-04-17 13:59:24 EDT
Created attachment 877 [details]
optional per-map configuration files
Comment 2 Tim Angus 2006-04-22 18:50:58 EDT
This functionality is present in the map rotation system (assuming it's not broken, in which case it should be fixed).
Comment 3 Tim Angus 2006-06-10 13:07:35 EDT
Applied.
Comment 4 Tony J. White 2006-06-19 19:07:53 EDT
Created attachment 942 [details]
give maprotation.cfg settings precedence over g_mapConfigs


g_mapConfigs wrongly overrides map specific settings in maprotation.cfg.  This patch gives any settings made in the configuration blocks of maprotation entries precedence over the settings made in g_mapConfigs files.