Wazanator

HL2 EP2 gameinfo.txt

Jul 21st, 2019
731
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.18 KB | None | 0 0
  1. "GameInfo"
  2. {
  3. game "HALF-LIFE 2"
  4. title "HALF-LIFE'"
  5. title2 "== episode two =="
  6.  
  7. type singleplayer_only
  8. supportsvr 1
  9.  
  10. FileSystem
  11. {
  12. SteamAppId 420 // This will mount all the GCFs we need (240=CS:S, 220=HL2).
  13.  
  14. //
  15. // The code that loads this file automatically does a few things here:
  16. //
  17. // 1. For each "Game" search path, it adds a "GameBin" path, in <dir>\bin
  18. // 2. For each "Game" search path, it adds another "Game" path in front of it with _<langage> at the end.
  19. // For example: c:\hl2\cstrike on a french machine would get a c:\hl2\cstrike_french path added to it.
  20. // 3. For the first "Game" search path, it adds a search path called "MOD".
  21. // 4. For the first "Game" search path, it adds a search path called "DEFAULT_WRITE_PATH".
  22. //
  23.  
  24. //
  25. // Search paths are relative to the base directory, which is where hl2.exe is found.
  26. //
  27. // |gameinfo_path| points at the directory where gameinfo.txt is.
  28. // We always want to mount that directory relative to gameinfo.txt, so
  29. // people can mount stuff in c:\mymod, and the main game resources are in
  30. // someplace like c:\program files\valve\steam\steamapps\half-life 2.
  31. //
  32. SearchPaths
  33. {
  34. // First, mount all user customizations. This will search for VPKs and subfolders
  35. // and mount them in alphabetical order. The easiest way to distribute a mod is to
  36. // pack up the custom content into a VPK. To "install" a mod, just drop it in this
  37. // folder.
  38. //
  39. // Note that this folder is scanned only when the game is booted.
  40. game+mod ep2/custom/*
  41. game+mod episodic/custom/*
  42. game+mod hl2/custom/*
  43.  
  44. // We search VPK files before ordinary folders, because most files will be found in
  45. // VPK and we can avoid making thousands of file system calls to attempt to open files
  46. // in folders where they don't exist. (Searching a VPK is much faster than making an operating
  47. // system call.)
  48. game_lv hl2/hl2_lv.vpk
  49. game+mod ep2/ep2_sound_vo_english.vpk
  50. game+mod ep2/ep2_pak.vpk
  51. game |all_source_engine_paths|episodic/ep1_sound_vo_english.vpk
  52. game |all_source_engine_paths|episodic/ep1_pak.vpk
  53. game |all_source_engine_paths|hl2/hl2_sound_vo_english.vpk
  54. game |all_source_engine_paths|hl2/hl2_pak.vpk
  55. game |all_source_engine_paths|hl2/hl2_textures.vpk
  56. game |all_source_engine_paths|hl2/hl2_sound_misc.vpk
  57. game |all_source_engine_paths|hl2/hl2_misc.vpk
  58. platform |all_source_engine_paths|platform/platform_misc.vpk
  59.  
  60. // Now search loose files. We'll set the directory containing the gameinfo.txt file
  61. // as the first "mod" search path (after any user customizations). This is also the one
  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 ep2
  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. }
Add Comment
Please, Sign In to add comment