Advertisement
Guest User

Untitled

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