Advertisement
Wazanator

Example gameinfo.txt

Jul 23rd, 2019
1,285
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.43 KB | None | 0 0
  1. "GameInfo"
  2. {
  3. game "My First Episodic Mod"
  4. title "HALF-LIFE'"
  5. title2 ""
  6. supportsvr 1
  7.  
  8. type singleplayer_only
  9.  
  10. FileSystem
  11. {
  12. SteamAppId 243730 // This sets the app ID in Steam
  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 |gameinfo_path|custom/*
  41.  
  42. // Now search loose files. We'll set the directory containing the gameinfo.txt file
  43. // as the first "mod" search path (after any user customizations). This is also the one
  44. // that's used when writing to the "mod" path.
  45. mod+mod_write+default_write_path |gameinfo_path|.
  46. game+game_write |gameinfo_path|.
  47.  
  48. gamebin |gameinfo_path|bin
  49.  
  50. // We search VPK files before ordinary folders, because most files will be found in
  51. // VPK and we can avoid making thousands of file system calls to attempt to open files
  52. // in folders where they don't exist. (Searching a VPK is much faster than making an operating
  53. // system call.)
  54. game_lv hl2/hl2_lv.vpk
  55. game+mod |all_source_engine_paths|ep2/ep2_english.vpk // EP2 that comes with SDK 2013 SP
  56. game+mod |all_source_engine_paths|ep2/ep2_pak.vpk
  57.  
  58. game |all_source_engine_paths|episodic/ep1_english.vpk // EP1 that comes with SDK 2013 SP
  59. game |all_source_engine_paths|episodic/ep1_pak.vpk
  60.  
  61. game |all_source_engine_paths|hl2/hl2_english.vpk // Base HL2 that comes with SDK 2103 SP
  62. game |all_source_engine_paths|hl2/hl2_pak.vpk
  63. game |all_source_engine_paths|hl2/hl2_textures.vpk
  64. game |all_source_engine_paths|hl2/hl2_sound_vo_english.vpk
  65. game |all_source_engine_paths|hl2/hl2_sound_misc.vpk
  66. game |all_source_engine_paths|hl2/hl2_misc.vpk
  67.  
  68. // If you wanted to mount other games here such as Portal or Counter-Strike Source this is where you would do it
  69. // Example:
  70. // game |all_source_engine_paths|cstrike/cstrike_pak.vpk
  71.  
  72.  
  73. platform |all_source_engine_paths|platform/platform_misc.vpk
  74.  
  75. // Last, mount in shared HL2 loose files
  76. game |all_source_engine_paths|episodic
  77. game |all_source_engine_paths|hl2
  78. platform |all_source_engine_paths|platform
  79. }
  80. }
  81. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement