Gameinfo.gi: Difference between revisions
Jump to navigation
Jump to search

Game Definition Files

Note:Booleans are represented as 0 or 1.
Note:If a string contains spaces or tabs you have to wrap it in "quote marks".
Confirm:Confirm if some of these options from Source 1 still works in Source 2.
Note:Your mod won’t be protected by
VAC if it is based on a singleplayer game.
Note:Last retrieved Oct 2, 2023.
m (-autolang collapse) |
(Added some keyvalues.) |
||
Line 4: | Line 4: | ||
{{tabs|custom1=liblist.gam|custom1alt=liblist.gam (GoldSrc)|custom2=gameinfo.txt|custom2alt=gameinfo.txt (Source)|custom3=gameinfo.gi|custom3alt=gameinfo.gi (Source 2)}} | {{tabs|custom1=liblist.gam|custom1alt=liblist.gam (GoldSrc)|custom2=gameinfo.txt|custom2alt=gameinfo.txt (Source)|custom3=gameinfo.gi|custom3alt=gameinfo.gi (Source 2)}} | ||
{{langsp|title={{mono|gameinfo.gi}}}}{{Toc-right}} | {{langsp|title={{mono|gameinfo.gi}}}}{{Toc-right}} | ||
{{Code|preset=2|GameInfo.gi}} is a [[KeyValues]] config file that describes a Source 2 games/mod. It is slightly different compared to the [[Gameinfo.txt|Source 1 counterpart (gameinfo.txt)]]. For example, {{code|preset=2|GameInfo.gi}} can contain a Source 2 equivalent of an "{{code|preset=2|[[autoexec.cfg]]}}", which is defined in the "[[#convarref|ConVars]]" KeyValue. | {{Code|preset=2|GameInfo.gi}} is a [[KeyValues]] config file that describes a Source 2 games/mod. It is slightly different compared to the [[Gameinfo.txt|Source 1 counterpart (gameinfo.txt)]]. For example, {{code|preset=2|GameInfo.gi}} can contain a Source 2 equivalent of an "{{code|preset=2|[[autoexec.cfg]]}}", which is defined in the "[[#convarref|ConVars]]" KeyValue. | ||
{{Note|[[Boolean]]s are represented as 0 or 1.}} | {{Note|[[Boolean]]s are represented as 0 or 1.}} | ||
{{Note|If a string contains spaces or tabs you have to wrap it in "quote marks".}} | {{Note|If a string contains spaces or tabs you have to wrap it in "quote marks".}} | ||
==Basic settings== | |||
===Name=== | |||
Keys that affect the menu and window title. | |||
{{KV|intn=0|Game|string|The name of the mod in [[w:ASCII|ASCII]]. Displayed in Steam and used as the window title. Only displayed in the main menu if {{Code|preset=1|Title}} isn’t specified.}} | |||
{{KV|intn=0|Title|string|A [[w:Unicode|Unicode]] string displayed in the main menu of your mod. You can also new line the menu text by adding another key of the same name {{Code|preset=1|Title}}, but append either 2 or a higher number onto it. {{Note|The higher the number, the further down the text will be.}} }} | |||
{{KV|intn=0|Title_PW|string|Title password? {{only|cs2}}}} | |||
===Options=== | |||
Keys that affect what tabs and options that show up in the Options panel. Also see [[Customizing Options: Keyboard]]. | |||
{{KV|intn=0|Type|string|Affects which tabs appear in which order in the Options panel, the value will either be {{Code|preset=1|Singleplayer_Only}} or {{Code|preset=1|Multiplayer_Only}}. Omit this key if your mod has both SP and MP modes.}} | |||
{{KV|intn=0|NoCrosshair|boolean|Hides the multiplayer crosshair selection menu.}} | |||
{{KV|intn=0|AdvCrosshair|boolean|Enables the special advanced crosshair options. {{Todo|How to implement.}} }} | |||
{{KV|intn=0|NoModels|boolean|Hides the multiplayer model selection menu.}} | |||
{{KV|intn=0|NoHIModel|boolean|Hides toggle checkbox for <code>cl_himodels</code>, which was used for multiplayer models in {{Gldsrc|4}}. Only displayed properly if <code>cl_himodels</code> exists in the first place. }} | |||
{{Confirm|Confirm if some of these options from Source 1 still works in Source 2.}} | |||
{{todo|Add more information and KeyValues.}} | |||
==== {{cs2|2}} exclusive ==== | |||
{{KV|intn=0|LayeredOnMod|string|Inherits the gameinfo.gi data from specified game/mod folder.}} | |||
{{KV|intn=0|SatelliteDir|string|Unknown. Specified as {{code|csgo_gc}}.}} | |||
===Engine and tools=== | |||
Keys that affect how the engine/tools runs and some options for the tools themselves. | |||
{{KV|intn=0|Nodegraph|boolean|Whether or not to enable building [[nodegraph]]s (.ain files) for maps. Disabled in {{hla|1}}.}} | |||
{{KV|intn=0|Tonemapping|boolean|Show Tonemapping UI in tools mode.}} | |||
{{KV|intn=0|GameData|string|Path to a [[FGD]] file, relative to [[Valve Hammer Editor (Source 2)|Hammer’s]] location. This is needed for [[instances]] to be compiled into maps. It is not used by Hammer itself.}} | |||
{{KV|intn=0|InstancePath|string|The default location in which to look for [[Instance]] VMFs.|since=2013}} | |||
{{KV|intn=0|SupportsXbox360|boolean|Likely deprecated. Only present in previous version of {{cs2|1}}. Mark the game whether if it was supported on {{x360|1}} or not.|deprecated=1}} | |||
===FileSystem=== | |||
Keys that are within the subkey <code>FileSystem</code>. | |||
{{KV|intn=0|SteamAppID|int|The Steam [[Steam Application IDs|AppID]] of the game. On Source 2 this is likely not needed, and only present in {{code|gameinfo.gi}} on {{path|core}} folder (using non-existent/private AppID "890", aswell as {{path|csgo_core}} in CS2, which uses the old [https://steamdb.info/app/710 CS:GO Beta Dev] AppID. | |||
{{Note|Your mod won’t be protected by {{vac|2}} if it is based on a singleplayer game.}} | |||
}} | |||
{{KV|intn=0|ToolsAppId|int|This is the AppID of the SDK currently in use. Deprecated and leftover from Source. Only present in {{code|gameinfo.gi}} on {{path|core}} folder (using non-existent/private AppID "895" |deprecated=1}} | |||
==={{cs2|4}} Example=== | ==={{cs2|4}} Example=== |
Revision as of 06:16, 26 January 2025




GameInfo.gi is a KeyValues config file that describes a Source 2 games/mod. It is slightly different compared to the Source 1 counterpart (gameinfo.txt). For example, GameInfo.gi can contain a Source 2 equivalent of an "autoexec.cfg", which is defined in the "ConVars" KeyValue.


Basic settings
Name
Keys that affect the menu and window title.
- Game <string>
- The name of the mod in ASCII. Displayed in Steam and used as the window title. Only displayed in the main menu if Title isn’t specified.
- Title <string>
- A Unicode string displayed in the main menu of your mod. You can also new line the menu text by adding another key of the same name Title, but append either 2 or a higher number onto it.
Note:The higher the number, the further down the text will be.
- Title_PW <string>
- Title password? (only in cs2)
Options
Keys that affect what tabs and options that show up in the Options panel. Also see Customizing Options: Keyboard.
- Type <string>
- Affects which tabs appear in which order in the Options panel, the value will either be Singleplayer_Only or Multiplayer_Only. Omit this key if your mod has both SP and MP modes.
- NoCrosshair <boolean>
- Hides the multiplayer crosshair selection menu.
- AdvCrosshair <boolean>
- Enables the special advanced crosshair options. Todo: How to implement.
- NoModels <boolean>
- Hides the multiplayer model selection menu.
- NoHIModel <boolean>
- Hides toggle checkbox for
cl_himodels
, which was used for multiplayer models inGoldSrc. Only displayed properly if
cl_himodels
exists in the first place.

Todo: Add more information and KeyValues.
Counter-Strike 2 exclusive
- LayeredOnMod <string>
- Inherits the gameinfo.gi data from specified game/mod folder.
- SatelliteDir <string>
- Unknown. Specified as csgo_gc.
Engine and tools
Keys that affect how the engine/tools runs and some options for the tools themselves.
- Nodegraph <boolean>
- Whether or not to enable building nodegraphs (.ain files) for maps. Disabled in Half-Life: Alyx.
- Tonemapping <boolean>
- Show Tonemapping UI in tools mode.
- GameData <string>
- Path to a FGD file, relative to Hammer’s location. This is needed for instances to be compiled into maps. It is not used by Hammer itself.
- InstancePath <string> (in all games since
)
- The default location in which to look for Instance VMFs.
SupportsXbox360 <boolean>- Deprecated.
Likely deprecated. Only present in previous version of Counter-Strike 2. Mark the game whether if it was supported on Xbox 360 or not.
FileSystem
Keys that are within the subkey FileSystem
.
- SteamAppID <integer>
- The Steam AppID of the game. On Source 2 this is likely not needed, and only present in gameinfo.gi on
core
folder (using non-existent/private AppID "890", aswell ascsgo_core
in CS2, which uses the old CS:GO Beta Dev AppID.


ToolsAppId <integer>- Deprecated.
This is the AppID of the SDK currently in use. Deprecated and leftover from Source. Only present in gameinfo.gi oncore
folder (using non-existent/private AppID "895"
Counter-Strike 2 Example
A GameInfo.gi from Counter-Strike 2.

Gameinfo_branchspecific.gi
[Todo]
See also: Category:Gameinfo.gi