Advertisement
Wazanator

Mapbase gameinfo.txt

Jan 31st, 2021
293
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.04 KB | None | 0 0
  1. "GameInfo"
  2. {
  3. game "Mapbase - HL2 Episodic"
  4. title "HALF-LIFE'"
  5. title2 ""
  6.  
  7. type singleplayer_only
  8.  
  9. GameData "bin/halflife2.fgd"
  10.  
  11. icon "resource/icon1"
  12.  
  13. // Indicates this is an original Mapbase mod and not just a mod using its features.
  14. mapbase_core 1
  15.  
  16. FileSystem
  17. {
  18. SteamAppId 243730 // This sets the app ID in Steam
  19.  
  20. //
  21. // Mapbase has a fairly unique file system that needs some explanation.
  22. // In its rawest form, it is spread out across 2-3 folders:
  23. //
  24. // mapbase_shared - Shared Mapbase content, like editor icons, that are not unique to Half-Life 2.
  25. // mapbase_hl2 - Original HL2 branch of Mapbase.
  26. // mapbase_episodic - Episodic branch of Mapbase.
  27. //
  28. // Each folder relies on the previous, meaning mapbase_episodic cannot function without mapbase_hl2 and
  29. // mapbase_hl2 cannot function without mapbase_shared.
  30. //
  31. // mapbase_episodic > mapbase_hl2 > mapbase_shared
  32. //
  33. // Each Mapbase folder has its own "content" subfolder contianing VPKs.
  34. // These are mounted similar to the "custom" folder in which everything is mounted without listing out their names.
  35. //
  36. SearchPaths
  37. {
  38. // First, mount all user customizations. This will search for VPKs and subfolders
  39. // and mount them in alphabetical order. The easiest way to distribute a mod is to
  40. // pack up the custom content into a VPK. To "install" a mod, just drop it in this
  41. // folder.
  42. //
  43. // Note that this folder is scanned only when the game is booted.
  44. game+mod |gameinfo_path|custom/*
  45. game+mod ep2/custom/*
  46. game+mod episodic/custom/*
  47. game+mod hl2/custom/*
  48.  
  49. // Now search loose files. We'll set the directory containing the gameinfo.txt file
  50. // as the first "mod" search path (after any user customizations). This is also the one
  51. // that's used when writing to the "mod" path.
  52. game+mod+mod_write+default_write_path |gameinfo_path|.
  53. gamebin |gameinfo_path|bin
  54.  
  55. // Load the Mapbase content
  56. game+mod |gameinfo_path|content/episodic_mapbase_content_dir.vpk
  57. game+mod |gameinfo_path|content/episodic_materials_dir.vpk
  58. game+mod |gameinfo_path|content/episodic_scenes_dir.vpk
  59. game+mod |gameinfo_path|content/hl2_mapbase_content_dir.vpk
  60. game+mod |gameinfo_path|content/hl2_materials_dir.vpk
  61. game+mod |gameinfo_path|content/hl2_scenes_dir.vpk
  62. game+mod |gameinfo_path|content/lostcoast_materials_dir.vpk
  63. game+mod |gameinfo_path|content/shared_content.vpk
  64.  
  65. // We search VPK files before ordinary folders, because most files will be found in
  66. // VPK and we can avoid making thousands of file system calls to attempt to open files
  67. // in folders where they don't exist. (Searching a VPK is much faster than making an operating
  68. // system call.)
  69. game_lv hl2/hl2_lv.vpk
  70. game |all_source_engine_paths|ep2/ep2_english.vpk
  71. game |all_source_engine_paths|ep2/ep2_pak.vpk
  72. game |all_source_engine_paths|episodic/ep1_english.vpk
  73. game |all_source_engine_paths|episodic/ep1_pak.vpk
  74. game |all_source_engine_paths|hl2/hl2_english.vpk
  75. game |all_source_engine_paths|hl2/hl2_pak.vpk
  76. game |all_source_engine_paths|hl2/hl2_textures.vpk
  77. game |all_source_engine_paths|hl2/hl2_sound_vo_english.vpk
  78. game |all_source_engine_paths|hl2/hl2_sound_misc.vpk
  79. game |all_source_engine_paths|hl2/hl2_misc.vpk
  80. game |all_source_engine_paths|sourcetest/sourcetest_pak.vpk // sourcetest has Lost Coast content
  81. game |all_source_engine_paths|lostcoast/lostcoast_pak.vpk // For those using Hammer with Half-Life 2's bin
  82. platform |all_source_engine_paths|platform/platform_misc.vpk
  83.  
  84. // Add the HL2 directory as a game search path. This is also where where writes
  85. // to the "game" path go.
  86. game+game_write ep2
  87.  
  88. // Where the game's binaries are
  89. gamebin episodic/bin
  90.  
  91. // Last, mount in shared HL2 loose files
  92. game |all_source_engine_paths|episodic
  93. game |all_source_engine_paths|hl2
  94. platform |all_source_engine_paths|platform
  95. }
  96. }
  97. }
  98.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement