Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on May 10th, 2013  |  syntax: None  |  size: 3.28 KB  |  views: 1,752  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. "GameInfo"
  2. {
  3.         game            "Mission Improbable"
  4.         title           ""
  5.         title2          ""
  6.  
  7.         type            singleplayer_only
  8.  
  9.         developer       "Magnar Jenssen & Rick Underhill"
  10.         developer_url   "www.magnarj.net & www.editpoly.net"
  11.         icon            "icon"
  12.  
  13.         FileSystem
  14.         {
  15.                 SteamAppId                              420             // This will mount all the GCFs we need (240=CS:S, 220=HL2).
  16.                
  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.                         // First, mount all user customizations.  This will search for VPKs and subfolders
  38.                         // and mount them in alphabetical order.  The easiest way to distribute a mod is to
  39.                         // pack up the custom content into a VPK.  To "install" a mod, just drop it in this
  40.                         // folder.
  41.                         //
  42.                         // Note that this folder is scanned only when the game is booted.
  43.                         game+mod                        |gameinfo_path|.
  44.                         platform                        |gameinfo_path|.
  45.  
  46.                         // We search VPK files before ordinary folders, because most files will be found in
  47.                         // VPK and we can avoid making thousands of file system calls to attempt to open files
  48.                         // in folders where they don't exist.  (Searching a VPK is much faster than making an operating
  49.                         // system call.)
  50.                         game_lv                         hl2/hl2_lv.vpk
  51.                         game+mod                        ep2/ep2_english.vpk
  52.                         game+mod                        ep2/ep2_pak.vpk
  53.                         game                            |all_source_engine_paths|episodic/ep1_english.vpk
  54.                         game                            |all_source_engine_paths|episodic/ep1_pak.vpk
  55.                         game                            |all_source_engine_paths|hl2/hl2_english.vpk
  56.                         game                            |all_source_engine_paths|hl2/hl2_pak.vpk
  57.                         game                            |all_source_engine_paths|hl2/hl2_textures.vpk
  58.                         game                            |all_source_engine_paths|hl2/hl2_sound_vo_english.vpk
  59.                         game                            |all_source_engine_paths|hl2/hl2_sound_misc.vpk
  60.                         game                            |all_source_engine_paths|hl2/hl2_misc.vpk
  61.                         platform                        |all_source_engine_paths|platform/platform_misc.vpk
  62.  
  63.                         // Now search loose files.  We'll set the directory containing the gameinfo.txt file
  64.                         // as the first "mod" search path (after any user customizations).  This is also the one
  65.                         // that's used when writing to the "mod" path.
  66.                         mod+mod_write+default_write_path                |gameinfo_path|.
  67.  
  68.                         // Add the HL2 directory as a game search path.  This is also where where writes
  69.                         // to the "game" path go.
  70.                         game+game_write                 |gameinfo_path|.
  71.  
  72.                         // Where the game's binaries are
  73.                         gamebin                         episodic/bin
  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. }
clone this paste RAW Paste Data