Wazanator

HL2 gameinfo.txt

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