Ko/Gameinfo.txt

Game Definition Files
:하프라이프1(골드 소스엔진)/, 에 대해서는 을 참조해주세요.
GameInfo.txt 는 소스모드를 구성하는 파일입니다. 개발자의 웹사이트 같은 정포를 포함해 SearchPaths 경로를 지정하기도 합니다. 이것은 소스 모드 폴더 내에 위치해 있습니다. S소스엔진 및 SDK,스팀이 사용합니다.
== 기본설정 ==
=== Name ===
제목을 정합니다
; 
=== 옵션들 ===
Keys that affect what tabs and options that show up in the Options panel. Also see .
=== Steam games list ===
스팀 라이브리러 페이지에 어떻게 표시될지 설정합니다.
=== Engine and tools ===
엔진이 어떻게 작동되는지 설정하는 구간
=== FileSystem ===
Keys that are within the subkey FileSystem.
{{KV|SteamAppID|int|이것은 어떤 게임을 기반으로 할 것인지에 대한 부분입니다. Source Sdk 2013 기준 멀티플레이어는 243750,싱글 플레이어는 243730입니다. 
== SearchPaths ==
SearchPaths is a subkey within FileSystem. It contains a key for every search path. When the engine needs a file it traverses the search paths, stopping when the desired file has been found, hence the order of the search paths is important.
=== Directories ===
The directory, which is the value of the key, will either be relative to the SteamAppID's root directory (i.e. where the executable of the game is located), relative to GameInfo.txt or absolute. A example of each one respectively would be this:
 Game |All_Source_Engine_Paths|HL2 // Go to the executable directory, and mount a folder called HL2 in it.
 Game |GameInfo_Path|. // Go to the directory of where GameInfo.txt is located, and mount the folder it's in.
 Game "C:\MyFolderOfContent\content" // Mount this absolute directory, useful for mounting content temporarily.
The 2 variables above will start the search in a certain directory, |All_Source_Engine_Paths| will start the directory within the root folder, and |GameInfo_Path| will start it in the folder where GameInfo.txt is located. Both of these variables can be appended with any number of folders. There are also some special commands you can append in addition to the folders and variables, the known ones are:
* ../ Goes back one folder, this will useful for mounting other games' content like , since AdditionalContentID is deprecated. If you wanted to mount Portal, and your game is in, say for example "<SteamFolder>\SteamApps\Common\MyGame\FolderWhereGameInfoIs", you would create a search path like this to mount it's content:
 // Start in the executable directory, then go back one folder so we're in Common, and then go into Portal/portal and mount portal_pak.vpk
 Game |All_Source_Engine_Paths|../Portal/portal/portal_pak.vpk 
Here is also an example of how to mount a :
 // Start in the executable directory, then go back two folders so we're in SteamApps, and then go into SourceMods and mount the MySourceMod folder.
 Game |All_Source_Engine_Paths|../../SourceMods/MySourceMod
* . This stops the search in the current directory, this should only be used if you want to directly mount where |All_Source_Engine_Paths| or |GameInfo_Path| are. An example of both:
 // Mount both |All_Source_Engine_Paths| and |GameInfo_Path| variables' path.
 Game |All_Source_Engine_Paths|.
 Game |GameInfo_Path|.
* /* Mount every sub-folder and in the current directory, this command is what makes the custom folder work in most update to date Source games. An example of it's use:
 // Mount the custom folder's sub-folders and VPKs.
 Game |GameInfo_Path|custom/*
=== Keys ===
In most older Source games, the only keys for search pathing is Game and Platform, while these keys will suit most search pathing, in Source 2013 a few new keys where introduced that add more control.
The current keys known so far are:
* Game Adds the path as a simple search path. Will add any content it finds.
* Game_Write Marks the search path as a Game write path. This is usually where the game executable is. It marks the directory as the default directory for writing (configuration files, etc) for this game.
* GameBin A special key that requires that the path lead to a game's binary files (where Server.dll and Client.dll are located), and will use any other DLL files it finds. This should lead to your own mod's Bin folder, or the game you're basing it off's Bin folder if you're not building your own DLLs.
* Platform Adds a special search path to the folder containing core engine files, this will usually lead to the game's Platform folder.
* Mod Marks the search path as a Mod path. This is usually where the game executable is. 
* Mod_Write Marks the search path as a Mod write path. This is usually where GameInfo.txt is. It marks the directory as the default directory for writing (configuration files, etc) for this mod.
* Default_Write_Path A fallback for when either Mod_Write or Game_Write isn't specified. This is usually where GameInfo.txt is. 
* VPK Used to mount a by name. Do not put .vpk at the end.
In Source 2013, you may also append keys to each other by separating each key name by a + sign, this way if you need to use one directory for multiple keys, instead of writing this:
 Game |GameInfo_Path|MyFolder
 Mod |GameInfo_Path|MyFolder
It can instead be shortened like this:
 Game+Mod |GameInfo_Path|MyFolder
This saves you time from having to retype the directory over again.
=== 자동 설정 ===
소스 엔진은 스스로 경로를 설정 할 수 있습니다. If you mount the folder HL2, then when your mod runs in French HL2_French is automatically mounted just above it, overriding any content in HL2. 
== 예시 ==
해당 GameInfo.txt는 Singleplayer 기준입니다.
GameInfo
{
	Game			"나의 모드 이름"
	 GameLogo		0
	Nodegraph		1
	Title			"게임 내에서 출력된 나의 모드 이름"
	 Developer 		"개발자 이름"
	 Developer_URL 	"개발자 사이트"
	 Type			Singleplayer_Only
	SupportsDX8 	0
	SupportsVR		0
	SupportsXbox360	0
	GameData		HalfLife2.fgd
	FileSystem
	{
		SteamAppId	243730
		SearchPaths
		{
			GameBin		|All_Source_Engine_Paths|SourceTest/Bin // Using the SourceTest DLLs.
			
			// Source 2013 Singleplayer comes with Episode 2, Episode 1, and Lost Coast content. So let's mount it.
			Game		|All_Source_Engine_Paths|EP2/EP2_Pak.vpk // EP2 content has the highiest priority.
			Game		|All_Source_Engine_Paths|Episodic/EP1_Pak.vpk
			Game		|All_Source_Engine_Paths|SourceTest/SourceTest_Pak.vpk // Lost Coast
			
			// Source 2013 Multiplayer comes with HL2 Deathmatch, and Lost Coast content, so let's mount the HL2 Deathmatch content too.
			Game		"|All_Source_Engine_Paths|../Source SDK Base 2013 Multiplayer/HL2MP/HL2MP_Pak.vpk" // Has to be in quotes because of spaces.
			
			Game		|All_Source_Engine_Paths|HL2/HL2_Misc.vpk
			Game		|All_Source_Engine_Paths|HL2/HL2_Sound_Misc.vpk
			Game		|All_Source_Engine_Paths|HL2/HL2_Sound_VO_English.vpk // Optional, just dialog.
			Game		|All_Source_Engine_Paths|HL2/HL2_Textures.vpk
			
			Game+Game_Write+Mod+Mod_Write+Default_Write_Path	|GameInfo_Path|.
			
			// These search for loose files in the folders, incase we missed anything.
			Game		|All_Source_Engine_Paths|EP2
			Game		|All_Source_Engine_Paths|Episodic
			Game		|All_Source_Engine_Paths|SourceTest
			Game		|All_Source_Engine_Paths|HL2
			Platform	|All_Source_Engine_Paths|Platform
			Platform	|All_Source_Engine_Paths|Platform/Platform_Misc.vpk
		}
	}
}