Raised This Month: $ Target: $400
 0% 

[L4D2]setting gameinfo.txt to load addon VPK not work


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
LinLinLin
Senior Member
Join Date: Sep 2021
Old 05-22-2024 , 17:26   [L4D2]setting gameinfo.txt to load addon VPK not work
Reply With Quote #1

i have modify gameinfo.txt to load addon vpk but game doesn't load anything.

here is the gameinfo.txt setting.
PHP Code:
"GameInfo"
{
    
game    "Left 4 Dead 2"    // Window title
    
type multiplayer_only
    nomodels 1
    nohimodel 1
    l4dcrosshair 1
    hidden_maps
    
{
        
"test_speakers"            1
        
"test_hardware"            1
    
}
    
nodegraph 0
    perfwizard 0
    SupportsXbox360 1
    SupportsDX8    0
    GameData    
"left4dead2.fgd"

    
FileSystem
    
{
        
SteamAppId                550        // This will mount all the GCFs we need (240=CS:S, 220=HL2).
        
ToolsAppId                563        // Tools will load this (ie: source SDK caches) to get things like materials\debug, materials\editor, etc.
        
        //
        // The code that loads this file automatically does a few things here:
        //
        // 1. For each "Game" search path, it adds a "GameBin" path, in <dir>\bin
        // 2. For each "Game" search path, it adds another "Game" path in front of it with _<langage> at the end.
        //    For example: c:\hl2\cstrike on a french machine would get a c:\hl2\cstrike_french path added to it.
        // 3. For the first "Game" search path, it adds a search path called "MOD".
        // 4. For the first "Game" search path, it adds a search path called "DEFAULT_WRITE_PATH".
        //

        //
        // 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.
        // We always want to mount that directory relative to gameinfo.txt, so
        // people can mount stuff in c:\mymod, and the main game resources are in
        // someplace like c:\program files\valve\steam\steamapps\<username>\half-life 2.
        //
        
SearchPaths
        
{
            
Game                #map
            
Game                update
            Game                left4dead2_dlc3
            Game                left4dead2_dlc2
            Game                left4dead2_dlc1
            Game                
|gameinfo_path|.
            
Game                hl2
        
}
    }

the directory is follow
..home/l4d2/l4d2server/#map
..home/l4d2/l4d2server/left4dead2_dlc1
..home/l4d2/l4d2server/left4dead2_dlc2
..home/l4d2/l4d2server/left4dead2_dlc3
..home/l4d2/l4d2server/update

vpk in #map is name "map_goldeneye.vpk"
server doesn't load this addon map by testing "map *" and "show_addon_metadata" command.

=======================================
i have another problem is how can we write a path that locate to the file in pak01_dir.vpk and add this file into whitelist.cfg for checking crc?

Last edited by LinLinLin; 05-23-2024 at 01:10.
LinLinLin is offline
cravenge
Veteran Member
Join Date: Nov 2015
Location: Chocolate Factory
Old 05-22-2024 , 18:13   Re: [L4D2]setting gameinfo.txt to load addon VPK not work
Reply With Quote #2

You can just put the VPK in left4dead2/addons folder without doing unnecessary stuff.

Last edited by cravenge; 05-22-2024 at 18:13.
cravenge is offline
LinLinLin
Senior Member
Join Date: Sep 2021
Old 05-22-2024 , 20:38   Re: [L4D2]setting gameinfo.txt to load addon VPK not work
Reply With Quote #3

make addon vpk work is easy, but i want to know how to make gameinfo.txt work because i remember that in version 2121 of L4D2 i use this way to manage the third party map in server.
LinLinLin is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:22.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode