Feature #263

g_mapConfigs

Added by Harlekin over 6 years ago. Updated about 6 years ago.

Status:Fixed% Done:

100%

Priority:NormalSpent time:-
Assignee:IR4T4
Category:Mod QAGAME
Target version:2.71rc2
OS: Arch:

Description

g_mapConfigs (copied from NoQuarter)

Would be very useful as sv_cvar seems to be lost after map change and need to be set again on each map start.

Description
g_mapConfigs allows you to execute a custom config file for each map. When set, it specifies the folder where your map config files are, relative to the server’s no quarter directory ([path to no quarter dir]/<your directory>). The config file for a map has to be named the same as the map with the extension .cfg, for instance oasis.cfg. You should also create a default.cfg file which will be read before the map-specific config files.

default.cfg (1.19 KB) Harlekin, 28.03.2013 13:10

Associated revisions

Revision 0ca1190d
Added by IR4T4 over 6 years ago

game: g_mapConfig and g_CustomConfig introduced - thank you Jaquboss/NQ refs #263

Revision c6f1c588
Added by IR4T4 over 6 years ago

game: G_ConfigParse() added refs #263

Revision 9fd38b4b
Added by IR4T4 about 6 years ago

game: exec code for g_mapConfigs feature refs #263

History

#1 Updated by IR4T4 over 6 years ago

  • Status changed from New to Feedback
  • Assignee set to Harlekin
  • % Done changed from 0 to 80

#2 Updated by Harlekin over 6 years ago

placed default.cfg into legacy and legacy/mapcfg.
instead of autoexec.cfg or default.cfg it trys to execute this:
set g_mapconfig "mapcfg"
couldn’t exec mapcfg/vote_2.cfg

copied default.cfg to radar.config
Warning: No config with filename 'mapcfg/radar.config’ found

set g_customconfig "default.cfg"
Unknown command "sv_cvar^7"

#3 Updated by Harlekin over 6 years ago

added default cfg

#4 Updated by Harlekin over 6 years ago

  • Assignee changed from Harlekin to IR4T4

#5 Updated by IR4T4 over 6 years ago

  • Category changed from Server to Mod QAGAME

#6 Updated by IR4T4 about 6 years ago

  • Status changed from Feedback to Fixed
  • % Done changed from 80 to 100

Also available in: Atom PDF