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.
No edit summary |
mNo edit summary |
||
Line 15: | Line 15: | ||
{{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|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|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}}}} | {{KV|intn=0|Title_PW|string|Title password? {{only|{{cs2}}}} | ||
===Options=== | ===Options=== |
Revision as of 06:17, 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.
{{KV|intn=0|Title_PW|string|Title password? (only in )
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"
Examples
Counter-Strike 2 Example
A GameInfo.gi from Counter-Strike 2.

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