-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathgameinfo.txt
More file actions
101 lines (88 loc) · 4.06 KB
/
gameinfo.txt
File metadata and controls
101 lines (88 loc) · 4.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
"GameInfo"
{
game "Entropy : Zero 2 - Addon Workspace"
title "E N T R O P Y : Z E R O 2 A D D O N W O R K S P A C E"
title2 ""
supportsvr 0
GameData "fgd/EntropyZero2.fgd"
type singleplayer_only
icon "resource/ez_icon"
FileSystem
{
SteamAppId 1583720 // This sets the app ID in Steam
//
// The code that loads this file automatically does a few things here:
//
// 1. For each "Game" search path, it adds a "GameBin" path, in <dir>\bin
// 2. For each "Game" search path, it adds another "Game" path in front of it with _<langage> at the end.
// For example: c:\hl2\cstrike on a french machine would get a c:\hl2\cstrike_french path added to it.
// 3. For the first "Game" search path, it adds a search path called "MOD".
// 4. For the first "Game" search path, it adds a search path called "DEFAULT_WRITE_PATH".
//
//
// Search paths are relative to the base directory, which is where hl2.exe is found.
//
// |gameinfo_path| points at the directory where gameinfo.txt is.
// We always want to mount that directory relative to gameinfo.txt, so
// people can mount stuff in c:\mymod, and the main game resources are in
// someplace like c:\program files\valve\steam\steamapps\half-life 2.
//
SearchPaths
{
// First, mount all user customizations. This will search for VPKs and subfolders
// and mount them in alphabetical order. The easiest way to distribute a mod is to
// pack up the custom content into a VPK. To "install" a mod, just drop it in this
// folder.
//
// Note that this folder is scanned only when the game is booted.
game+mod+addon |gameinfo_path|custom/*
game+mod+addon entropyzero2/custom/*
game+mod+addon ep2/custom/*
game+mod+addon episodic/custom/*
game+mod+addon hl2/custom/*
// Now search loose files. We'll set the directory containing the gameinfo.txt file
// as the first "mod" search path (after any user customizations). This is also the one
// that's used when writing to the "mod" path.
game+mod+mod_write+default_write_path |gameinfo_path|.
gamebin |gameinfo_path|bin
game+mod |gameinfo_path|ez2/*
// Where the game's binaries are
gamebin entropyzero2/bin
game+mod entropyzero2/ez2/ez2.vpk
//mount Workshop stuff
game+mod+addon "|gameinfo_path|../../workshop/content/1583720/*"
// Get our shared Mapbase files.
// They should be right next to this mod.
gamebin |all_source_engine_paths|mapbase/episodic/bin
game+mod |all_source_engine_paths|mapbase/episodic/*
game+mod |all_source_engine_paths|mapbase/hl2/*
game+mod |all_source_engine_paths|mapbase/css_weapons_in_hl2
game+mod |all_source_engine_paths|mapbase/css_weapons_in_hl2/content/*
game+mod |all_source_engine_paths|mapbase/shared/shared_content_v7_0.vpk
// We search VPK files before ordinary folders, because most files will be found in
// VPK and we can avoid making thousands of file system calls to attempt to open files
// in folders where they don't exist. (Searching a VPK is much faster than making an operating
// system call.)
game_lv hl2/hl2_lv.vpk
game+mod ep2/ep2_english.vpk
game+mod ep2/ep2_pak.vpk
game |all_source_engine_paths|episodic/ep1_english.vpk
game |all_source_engine_paths|episodic/ep1_pak.vpk
game |all_source_engine_paths|hl2/hl2_english.vpk
game |all_source_engine_paths|hl2/hl2_pak.vpk
game |all_source_engine_paths|hl2/hl2_textures.vpk
game |all_source_engine_paths|hl2/hl2_sound_vo_english.vpk
game |all_source_engine_paths|hl2/hl2_sound_misc.vpk
game |all_source_engine_paths|hl2/hl2_misc.vpk
platform |all_source_engine_paths|platform/platform_misc.vpk
// Add the HL2 directory as a game search path. This is also where where writes
// to the "game" path go.
game+game_write entropyzero2
// Last, mount in shared HL2 loose files
game |all_source_engine_paths|ep2
game |all_source_engine_paths|episodic
game |all_source_engine_paths|hl2
platform |all_source_engine_paths|platform
}
}
}