Advertisement
Wazanator

Portal1 mod gameinfo.txt

Aug 10th, 2019
264
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.67 KB | None | 0 0
  1. "GameInfo"
  2. {
  3. game "My Portal Mod"
  4. title "My Portal"
  5. type singleplayer_only
  6. nodifficulty 1
  7. hasportals 1
  8. FileSystem
  9. {
  10. SteamAppId 400 // Portal = 400
  11.  
  12. //
  13. // Setup engine search paths.
  14. //
  15. // If a search path contains "_english", and the current language is not english, then
  16. // another search path will be inserted above the english one by replacing "_english" with
  17. // the appropriate language.
  18. //
  19. // To debug how the engine has parsed this file, type "path" at the console.
  20. //
  21. // Search paths are relative to the base directory, which is where hl2.exe is found.
  22. //
  23. // |gameinfo_path| points at the directory where gameinfo.txt is.
  24. // |all_source_engine_paths| points at the directory cintaining HL2 shared content.
  25.  
  26. SearchPaths
  27. {
  28. // First, mount all user customizations. This will search for VPKs and subfolders
  29. // and mount them in alphabetical order. The easiest way to distribute a mod is to
  30. // pack up the custom content into a VPK. To "install" a mod, just drop it in this
  31. // folder.
  32. //
  33. // Note that this folder is scanned only when the game is booted.
  34. //game+mod portal/custom/*
  35. game+mod |gameinfo_path|.
  36. platform |gameinfo_path|.
  37.  
  38. // We search VPK files before ordinary folders, because most files will be found in
  39. // VPK and we can avoid making thousands of file system calls to attempt to open files
  40. // in folders where they don't exist. (Searching a VPK is much faster than making an operating
  41. // system call.)
  42. game_lv |all_source_engine_paths|portal/portal_lv.vpk
  43. game+mod |all_source_engine_paths|portal/portal_sound_vo_english.vpk
  44. game+mod |all_source_engine_paths|portal/portal_pak.vpk
  45. game |all_source_engine_paths|hl2/hl2_textures.vpk
  46. game |all_source_engine_paths|hl2/hl2_sound_vo_english.vpk
  47. game |all_source_engine_paths|hl2/hl2_sound_misc.vpk
  48. game |all_source_engine_paths|hl2/hl2_misc.vpk
  49. platform |all_source_engine_paths|platform/platform_misc.vpk
  50.  
  51. // Now search loose files. We'll set the directory containing the gameinfo.txt file
  52. // as the first "mod" search path (after any user customizations). This is also the one
  53. // that's used when writing to the "mod" path.
  54. mod+mod_write+default_write_path |gameinfo_path|.
  55.  
  56. // Add the Portal directory as a game search path. This is also where where writes
  57. // to the "game" path go.
  58. game+game_write portal
  59.  
  60. // Where the game's binaries are
  61. gamebin |all_source_engine_paths|portal/bin
  62.  
  63. // Last, mount in shared HL2 loose files
  64. game |all_source_engine_paths|hl2
  65. platform |all_source_engine_paths|platform
  66. }
  67. }
  68. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement