Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- "GameInfo"
- {
- game "My Portal Mod"
- title "My Portal"
- type singleplayer_only
- nodifficulty 1
- hasportals 1
- FileSystem
- {
- SteamAppId 400 // Portal = 400
- //
- // Setup engine search paths.
- //
- // If a search path contains "_english", and the current language is not english, then
- // another search path will be inserted above the english one by replacing "_english" with
- // the appropriate language.
- //
- // To debug how the engine has parsed this file, type "path" at the console.
- //
- // Search paths are relative to the base directory, which is where hl2.exe is found.
- //
- // |gameinfo_path| points at the directory where gameinfo.txt is.
- // |all_source_engine_paths| points at the directory cintaining HL2 shared content.
- SearchPaths
- {
- // First, mount all user customizations. This will search for VPKs and subfolders
- // and mount them in alphabetical order. The easiest way to distribute a mod is to
- // pack up the custom content into a VPK. To "install" a mod, just drop it in this
- // folder.
- //
- // Note that this folder is scanned only when the game is booted.
- //game+mod portal/custom/*
- game+mod |gameinfo_path|.
- platform |gameinfo_path|.
- // We search VPK files before ordinary folders, because most files will be found in
- // VPK and we can avoid making thousands of file system calls to attempt to open files
- // in folders where they don't exist. (Searching a VPK is much faster than making an operating
- // system call.)
- game_lv |all_source_engine_paths|portal/portal_lv.vpk
- game+mod |all_source_engine_paths|portal/portal_sound_vo_english.vpk
- game+mod |all_source_engine_paths|portal/portal_pak.vpk
- game |all_source_engine_paths|hl2/hl2_textures.vpk
- game |all_source_engine_paths|hl2/hl2_sound_vo_english.vpk
- game |all_source_engine_paths|hl2/hl2_sound_misc.vpk
- game |all_source_engine_paths|hl2/hl2_misc.vpk
- platform |all_source_engine_paths|platform/platform_misc.vpk
- // Now search loose files. We'll set the directory containing the gameinfo.txt file
- // as the first "mod" search path (after any user customizations). This is also the one
- // that's used when writing to the "mod" path.
- mod+mod_write+default_write_path |gameinfo_path|.
- // Add the Portal directory as a game search path. This is also where where writes
- // to the "game" path go.
- game+game_write portal
- // Where the game's binaries are
- gamebin |all_source_engine_paths|portal/bin
- // Last, mount in shared HL2 loose files
- game |all_source_engine_paths|hl2
- platform |all_source_engine_paths|platform
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement