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.
(Added some keyvalues.) |
No edit summary |
||
Line 46: | Line 46: | ||
{{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}} | {{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}} | ||
== Examples == | |||
==={{cs2|4}} Example=== | ==={{cs2|4}} Example=== | ||
A GameInfo.gi from {{cs2|4}}. | A GameInfo.gi from {{cs2|4}}. |
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"
Examples
Counter-Strike 2 Example
A GameInfo.gi from Counter-Strike 2.

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