SHOW:
|
|
- or go back to the newest paste.
| 1 | *Updated* | |
| 2 | ||
| 3 | "GameInfo" | |
| 4 | {
| |
| 5 | - | game "Mission Improbable" |
| 5 | + | game "Mission Improbable" |
| 6 | - | title "" |
| 6 | + | title "" |
| 7 | - | title2 "" |
| 7 | + | title2 "" |
| 8 | ||
| 9 | - | type singleplayer_only |
| 9 | + | type singleplayer_only |
| 10 | ||
| 11 | - | developer "Magnar Jenssen & Rick Underhill" |
| 11 | + | developer "Magnar Jenssen & Rick Underhill" |
| 12 | - | developer_url "www.magnarj.net & www.editpoly.net" |
| 12 | + | developer_url "www.magnarj.net & www.editpoly.net" |
| 13 | - | icon "icon" |
| 13 | + | icon "icon" |
| 14 | - | FileSystem |
| 14 | + | |
| 15 | - | {
|
| 15 | + | FileSystem |
| 16 | - | SteamAppId 420 // This will mount all the GCFs we need (240=CS:S, 220=HL2). |
| 16 | + | {
|
| 17 | - | |
| 17 | + | SteamAppId 420 // This will mount all the GCFs we need (240=CS:S, 220=HL2). |
| 18 | - | // |
| 18 | + | |
| 19 | - | // The code that loads this file automatically does a few things here: |
| 19 | + | SearchPaths |
| 20 | - | // |
| 20 | + | {
|
| 21 | - | // 1. For each "Game" search path, it adds a "GameBin" path, in <dir>\bin |
| 21 | + | // First, mount all user customizations. This will search for VPKs and subfolders |
| 22 | - | // 2. For each "Game" search path, it adds another "Game" path in front of it with _<langage> at the end. |
| 22 | + | // and mount them in alphabetical order. The easiest way to distribute a mod is to |
| 23 | - | // For example: c:\hl2\cstrike on a french machine would get a c:\hl2\cstrike_french path added to it. |
| 23 | + | // pack up the custom content into a VPK. To "install" a mod, just drop it in this |
| 24 | - | // 3. For the first "Game" search path, it adds a search path called "MOD". |
| 24 | + | // folder. |
| 25 | - | // 4. For the first "Game" search path, it adds a search path called "DEFAULT_WRITE_PATH". |
| 25 | + | // |
| 26 | - | // |
| 26 | + | // Note that this folder is scanned only when the game is booted. |
| 27 | ||
| 28 | - | // |
| 28 | + | game+mod |gameinfo_path|. |
| 29 | - | // Search paths are relative to the base directory, which is where hl2.exe is found. |
| 29 | + | platform |gameinfo_path|. |
| 30 | - | // |
| 30 | + | Game |gameinfo_path|. |
| 31 | - | // |gameinfo_path| points at the directory where gameinfo.txt is. |
| 31 | + | Game hl2 |
| 32 | - | // We always want to mount that directory relative to gameinfo.txt, so |
| 32 | + | |
| 33 | - | // people can mount stuff in c:\mymod, and the main game resources are in |
| 33 | + | // We search VPK files before ordinary folders, because most files will be found in |
| 34 | - | // someplace like c:\program files\valve\steam\steamapps\half-life 2. |
| 34 | + | // VPK and we can avoid making thousands of file system calls to attempt to open files |
| 35 | - | // |
| 35 | + | // in folders where they don't exist. (Searching a VPK is much faster than making an operating |
| 36 | // system call.) | |
| 37 | game_lv hl2/hl2_lv.vpk | |
| 38 | game+mod hl2/hl2_sound_vo_english.vpk | |
| 39 | game+mod hl2/hl2_pak.vpk | |
| 40 | game |all_source_engine_paths|hl2/hl2_textures.vpk | |
| 41 | - | SearchPaths |
| 41 | + | game |all_source_engine_paths|hl2/hl2_sound_misc.vpk |
| 42 | - | {
|
| 42 | + | game |all_source_engine_paths|hl2/hl2_misc.vpk |
| 43 | - | Game |gameinfo_path|. |
| 43 | + | platform |all_source_engine_paths|platform/platform_misc.vpk |
| 44 | - | Game hl2 |
| 44 | + | gamebin hl2/bin |
| 45 | - | game_lv hl2/hl2_lv.vpk |
| 45 | + | game |all_source_engine_paths|hl2 |
| 46 | - | game+mod hl2/hl2_sound_vo_english.vpk |
| 46 | + | platform |all_source_engine_paths|platform |
| 47 | - | game+mod hl2/hl2_pak.vpk |
| 47 | + | game_lv hl2/hl2_lv.vpk |
| 48 | - | game |all_source_engine_paths|hl2/hl2_textures.vpk |
| 48 | + | game+mod ep2/ep2_english.vpk |
| 49 | - | game |all_source_engine_paths|hl2/hl2_sound_misc.vpk |
| 49 | + | game+mod ep2/ep2_pak.vpk |
| 50 | - | game |all_source_engine_paths|hl2/hl2_misc.vpk |
| 50 | + | game |all_source_engine_paths|episodic/ep1_english.vpk |
| 51 | - | platform |all_source_engine_paths|platform/platform_misc.vpk |
| 51 | + | game |all_source_engine_paths|episodic/ep1_pak.vpk |
| 52 | - | gamebin hl2/bin |
| 52 | + | game |all_source_engine_paths|hl2/hl2_english.vpk |
| 53 | - | game |all_source_engine_paths|hl2 |
| 53 | + | game |all_source_engine_paths|hl2/hl2_pak.vpk |
| 54 | - | platform |all_source_engine_paths|platform |
| 54 | + | game |all_source_engine_paths|hl2/hl2_textures.vpk |
| 55 | - | mod+mod_write+default_write_path |gameinfo_path|. |
| 55 | + | game |all_source_engine_paths|hl2/hl2_sound_vo_english.vpk |
| 56 | - | game+game_write |gameinfo_path|. |
| 56 | + | game |all_source_engine_paths|hl2/hl2_sound_misc.vpk |
| 57 | - | gamebin episodic/bin |
| 57 | + | game |all_source_engine_paths|hl2/hl2_misc.vpk |
| 58 | - | game |all_source_engine_paths|episodic |
| 58 | + | platform |all_source_engine_paths|platform/platform_misc.vpk |
| 59 | - | game |all_source_engine_paths|hl2 |
| 59 | + | |
| 60 | - | platform |all_source_engine_paths|platform |
| 60 | + | // Now search loose files. We'll set the directory containing the gameinfo.txt file |
| 61 | - | } |
| 61 | + | // as the first "mod" search path (after any user customizations). This is also the one |
| 62 | - | } |
| 62 | + | // that's used when writing to the "mod" path. |
| 63 | mod+mod_write+default_write_path |gameinfo_path|. | |
| 64 | ||
| 65 | // Add the HL2 directory as a game search path. This is also where where writes | |
| 66 | // to the "game" path go. | |
| 67 | game+game_write |gameinfo_path|. | |
| 68 | ||
| 69 | // Where the game's binaries are | |
| 70 | gamebin episodic/bin | |
| 71 | ||
| 72 | // Last, mount in shared HL2 loose files | |
| 73 | game |all_source_engine_paths|episodic | |
| 74 | game |all_source_engine_paths|hl2 | |
| 75 | platform |all_source_engine_paths|platform | |
| 76 | } | |
| 77 | } | |
| 78 | } |