CapsAdmin

Untitled

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