ruarai / CompilePal

A tool to assist in the compiling of source engine maps
GNU General Public License v3.0
224 stars 25 forks source link

GameInfo.txt game paths that begin with .. are not searched #69

Closed rafradek closed 5 years ago

rafradek commented 5 years ago

game paths that begin with .. are not included, just like in this file, that searches for files in Team Fortress 2 directory, even if the gameinfo path is in Source SDK directory:

"GameInfo"
{
    game         "Custom Team Fortress 2"
    title        "Custom Team Fortress 2"
    title2       "ficool2"
    type          multiplayer_only
    nomodels      0
    nohimodel     0
    // do not change this as the compile tools will fail
    GameData     "tf2_ficool2_lite.fgd"
    InstancePath "maps/instances/"

    FileSystem
{
    SteamAppId   243750
    SearchPaths
{
    game                                 "customConfig_tf2/custom/*"

    game                                 "|all_source_engine_paths|../Team Fortress 2/tf/custom/*"
    game                                 "|all_source_engine_paths|../Team Fortress 2/tf/tf2_lv.vpk"
    game                                 "|all_source_engine_paths|../Team Fortress 2/tf/tf2_textures.vpk"
    game                                 "|all_source_engine_paths|../Team Fortress 2/tf/tf2_sound_vo_english.vpk"
    game                                 "|all_source_engine_paths|../Team Fortress 2/tf/tf2_sound_misc.vpk"
    game                                 "|all_source_engine_paths|../Team Fortress 2/tf/tf2_misc.vpk"

    game+game_write                      "|all_source_engine_paths|../Team Fortress 2/tf/"
    gamebin                              "|gameinfo_path|bin"

    game                                 "|all_source_engine_paths|hl2/hl2_english.vpk"
    game                                 "|all_source_engine_paths|hl2/hl2_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"
    mod+mod_write+default_write_path     "|gameinfo_path|."
    platform                             "|all_source_engine_paths|platform"
}
}
}
maxdup commented 5 years ago

Thanks we will look into it.

Atm, It's unclear to me which folder the paths are relative to, can you provide more info on your folder structure?

rafradek commented 5 years ago

they are relative to the parent directory of the folder that contains gameinfo.txt (the one that contains both bin and mod folder), which also means that the parent of that directory is the common directory of steam games.

Exactol commented 5 years ago

I believe 688bb1a402c34805950ef6cef12f914b1ec0e604 fixes this