Guest User

gameinfo.txt

a guest
Oct 3rd, 2014
51
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. "GameInfo"
  2. {
  3. game "HALF-LIFE 2"
  4. title "HALF-LIFE'"
  5. title2 "== episode two =="
  6.  
  7. type singleplayer_only
  8.  
  9. FileSystem
  10. {
  11. SteamAppId 420 // This will mount all the GCFs we need (240=CS:S, 220=HL2).
  12.  
  13. //
  14. // The code that loads this file automatically does a few things here:
  15. //
  16. // 1. For each "Game" search path, it adds a "GameBin" path, in <dir>\bin
  17. // 2. For each "Game" search path, it adds another "Game" path in front of it with _<langage> at the end.
  18. // For example: c:\hl2\cstrike on a french machine would get a c:\hl2\cstrike_french path added to it.
  19. // 3. For the first "Game" search path, it adds a search path called "MOD".
  20. // 4. For the first "Game" search path, it adds a search path called "DEFAULT_WRITE_PATH".
  21. //
  22.  
  23. //
  24. // Search paths are relative to the base directory, which is where hl2.exe is found.
  25. //
  26. // |gameinfo_path| points at the directory where gameinfo.txt is.
  27. // We always want to mount that directory relative to gameinfo.txt, so
  28. // people can mount stuff in c:\mymod, and the main game resources are in
  29. // someplace like c:\program files\valve\steam\steamapps\half-life 2.
  30. //
  31. SearchPaths
  32. {
  33. // First, mount all user customizations. This will search for VPKs and subfolders
  34. // and mount them in alphabetical order. The easiest way to distribute a mod is to
  35. // pack up the custom content into a VPK. To "install" a mod, just drop it in this
  36. // folder.
  37. //
  38. // Note that this folder is scanned only when the game is booted.
  39.  
  40. game_lv hl2/hl2_lv.vpk
  41. game+mod ep2/ep2_sound_vo_english.vpk
  42. game+mod ep2/ep2_pak.vpk
  43. game+mod ep2/hl2_pak.vpk
  44. game+mod ep2/hl2_sound_vo_english.vpk
  45.  
  46. game |all_source_engine_paths|episodic/ep1_sound_vo_english.vpk
  47. game |all_source_engine_paths|episodic/ep1_pak.vpk
  48. game |all_source_engine_paths|hl2/hl2_sound_vo_english.vpk
  49. game |all_source_engine_paths|hl2/hl2_pak.vpk
  50. game |all_source_engine_paths|hl2/hl2_textures.vpk
  51. game |all_source_engine_paths|hl2/hl2_sound_misc.vpk
  52. game |all_source_engine_paths|hl2/hl2_misc.vpk
  53. platform |all_source_engine_paths|platform/platform_misc.vpk
  54.  
  55.  
  56.  
  57. game+mod |all_source_engine_paths|../Half-Life 2/hl2/hl2_pak.vpk
  58. game+mod |all_source_engine_paths|../Half-Life 2/hl2/hl2_textures.vpk
  59. game+mod |all_source_engine_paths|../Half-Life 2/hl2/hl2_sound_misc.vpk
  60. game+mod |all_source_engine_paths|../Half-Life 2/hl2/hl2_misc.vpk
  61.  
  62. game+mod |all_source_engine_paths|../GarrysMod/garrysmod/garrysmod.vpk
  63. game+mod |all_source_engine_paths|../GarrysMod/garrysmod/addons/TFlippy's_Content/
  64. game+mod |all_source_engine_paths|../GarrysMod/garrysmod/addons/TFlippy's_Minecraft_Textures/
  65.  
  66. //////////////////////////////////////////////////////
  67. // Rest has been cut, I have tons of other folders. //
  68. //////////////////////////////////////////////////////
  69.  
  70. // We search VPK files before ordinary folders, because most files will be found in
  71. // VPK and we can avoid making thousands of file system calls to attempt to open files
  72. // in folders where they don't exist. (Searching a VPK is much faster than making an operating
  73. // system call.)
  74.  
  75.  
  76. // Now search loose files. We'll set the directory containing the gameinfo.txt file
  77. // as the first "mod" search path (after any user customizations). This is also the one
  78. // that's used when writing to the "mod" path.
  79. mod+mod_write+default_write_path |gameinfo_path|.
  80.  
  81. // Add the HL2 directory as a game search path. This is also where where writes
  82. // to the "game" path go.
  83. game+game_write ep2
  84.  
  85. // Where the game's binaries are
  86. gamebin episodic/bin
  87.  
  88. // Last, mount in shared HL2 loose files
  89. game |all_source_engine_paths|episodic
  90. game |all_source_engine_paths|hl2
  91. platform |all_source_engine_paths|platform
  92. }
  93. }
  94. }
RAW Paste Data