ValveSoftware / Source-1-Games

Source 1 based games such as TF2 and Counter-Strike: Source
633 stars 74 forks source link

[Linux] Make reading the tf/custom folder case-insensitive #327

Open ghost opened 11 years ago

ghost commented 11 years ago

After switching to the SteamPipe beta, I created a folder inside tf/custom and copied my hud in there so it looks like this:

tf/custom/omphud/resource and tf/custom/omphud/scripts

I also put my cfg folder inside tf/custom/config/cfg.

The game doesn't detect the hud and the cfg folder. The game still uses the vanilla configs/hud.

vitorhnn commented 11 years ago

I have the same issue, my folders are setup like this: tf/custom/OMPHUD/resource/<...>/ tf/custom/PhonglessPack/materials/<...>/

nisseblink commented 11 years ago

Same problem here. "path" command does not return tf/custom as engine path (should it?). Found a temporary workaround for the config part at least. Put your config directory (cfg) in tf/ (~/.local/share/Steam/SteamApps/common/Team\ Fortress\ 2/tf).

zpostfacto commented 11 years ago

@vorenon, @vitorhnn, @nisseblink:

1.) Can you guys please clarify whether you have experienced the problem on a platform other than linux? (It would help to know if it's linux-specific.)

2.) Can you please list the contents of the "path" console command.

Thanks for reporting this bug.

tehh4ck3r commented 11 years ago

@fletcherdvalve This is not an issue on Windows.

meklu commented 11 years ago

I can confirm the faulty behaviour on Linux.

edit: path output:

Paths:
"/home/meklu/.local/share/Steam/SteamApps/common/Team Fortress 2/bin/" "EXECUTABLE_PATH" 
"/home/meklu/.local/share/Steam/SteamApps/common/Team Fortress 2/platform/" "PLATFORM" 
"GAME" "GAME" (VPK)/home/meklu/.local/share/Steam/SteamApps/common/Team Fortress 2/tf/tf2_textures.vpk
"mod" "mod" (VPK)/home/meklu/.local/share/Steam/SteamApps/common/Team Fortress 2/tf/tf2_textures.vpk
"GAME" "GAME" (VPK)/home/meklu/.local/share/Steam/SteamApps/common/Team Fortress 2/tf/tf2_sound_vo_english.vpk
"mod" "mod" (VPK)/home/meklu/.local/share/Steam/SteamApps/common/Team Fortress 2/tf/tf2_sound_vo_english.vpk
"GAME" "GAME" (VPK)/home/meklu/.local/share/Steam/SteamApps/common/Team Fortress 2/tf/tf2_sound_misc.vpk
"mod" "mod" (VPK)/home/meklu/.local/share/Steam/SteamApps/common/Team Fortress 2/tf/tf2_sound_misc.vpk
"GAME" "GAME" (VPK)/home/meklu/.local/share/Steam/SteamApps/common/Team Fortress 2/tf/tf2_misc.vpk
"mod" "mod" (VPK)/home/meklu/.local/share/Steam/SteamApps/common/Team Fortress 2/tf/tf2_misc.vpk
"GAME" "GAME" (VPK)/home/meklu/.local/share/Steam/SteamApps/common/Team Fortress 2/hl2/hl2_textures.vpk
"GAME" "GAME" (VPK)/home/meklu/.local/share/Steam/SteamApps/common/Team Fortress 2/hl2/hl2_sound_vo_english.vpk
"GAME" "GAME" (VPK)/home/meklu/.local/share/Steam/SteamApps/common/Team Fortress 2/hl2/hl2_sound_misc.vpk
"GAME" "GAME" (VPK)/home/meklu/.local/share/Steam/SteamApps/common/Team Fortress 2/hl2/hl2_misc.vpk
"PLATFORM" "PLATFORM" (VPK)/home/meklu/.local/share/Steam/SteamApps/common/Team Fortress 2/platform/platform_misc.vpk
"/home/meklu/.local/share/Steam/SteamApps/common/Team Fortress 2/tf/" "mod" 
"/home/meklu/.local/share/Steam/SteamApps/common/Team Fortress 2/tf/" "mod_write" 
"/home/meklu/.local/share/Steam/SteamApps/common/Team Fortress 2/tf/" "default_write_path" 
"/home/meklu/.local/share/Steam/SteamApps/common/Team Fortress 2/tf/" "GAME" 
"/home/meklu/.local/share/Steam/SteamApps/common/Team Fortress 2/tf/" "game_write" 
"/home/meklu/.local/share/Steam/SteamApps/common/Team Fortress 2/tf/bin/" "gamebin" 
"/home/meklu/.local/share/Steam/SteamApps/common/Team Fortress 2/hl2/" "GAME" 
"/home/meklu/.local/share/Steam/SteamApps/common/Team Fortress 2/tf/download/" "GAME" 
"/home/meklu/.local/share/Steam/SteamApps/common/Team Fortress 2/tf/download/" "download" 
"/home/meklu/.local/share/Steam/SteamApps/common/Team Fortress 2/tf/" "LOGDIR" 
"/home/meklu/.local/share/Steam/SteamApps/common/Team Fortress 2/platform/config/" "CONFIG" 
zpostfacto commented 11 years ago

Sounds like it should be easy to reproduce and fix. Thanks for the report.

dodbits commented 11 years ago

To add to this for dods and CSS as I cannot see the info above, editing the gameinfo.txt helps...

If you edit the gameinfo.txt file to look for the exact content location it will find the folder or .vpk in the custom folder.

But it must be exact, the wildcard "*" does not seem to work in Linux as it does in windows, it is strange as it should.

I have a custom hud (both in a folder and a .vpk) if I add this... (For a VPK package) game+mod dod/custom/insanesdodshud.vpk ...the custom files are found and work.

(For non VPK e.g: a folder named "insanesdodshud") game+mod dod/custom/insanesdodshud ...the custom files are found and work.

omp commented 11 years ago

I can verify that adding the path explicitly through gameinfo.txt seems to work for TF2 as well.

bdeen-valve commented 11 years ago

Pretty sure this is fixed in the next release - which should come out soon.

vitorhnn commented 11 years ago

It's been somewhat fixed, all folder names have to be lower case for it to read, otherwise, it simply ignores it.

StrikerMan780 commented 11 years ago

Still not fixed for me.

Result of PATH: "/media/CaviarGreen/Program Files/Steam/SteamApps/common/Team Fortress 2/bin/" "EXECUTABLE_PATH" "/media/CaviarGreen/Program Files/Steam/SteamApps/common/Team Fortress 2/" "BASE_PATH" "/media/CaviarGreen/Program Files/Steam/SteamApps/common/Team Fortress 2/platform/" "PLATFORM" "GAME" "GAME" (VPK)/media/CaviarGreen/Program Files/Steam/SteamApps/common/Team Fortress 2/tf/custom/medicBeam.vpk "mod" "mod" (VPK)/media/CaviarGreen/Program Files/Steam/SteamApps/common/Team Fortress 2/tf/custom/medicBeam.vpk "/media/CaviarGreen/Program Files/Steam/SteamApps/common/Team Fortress 2/tf/custom/smpack_tf2/" "GAME" "/media/CaviarGreen/Program Files/Steam/SteamApps/common/Team Fortress 2/tf/custom/smpack_tf2/" "mod" "/media/CaviarGreen/Program Files/Steam/SteamApps/common/Team Fortress 2/tf/custom/two_hand_cannon_v2/" "GAME" "/media/CaviarGreen/Program Files/Steam/SteamApps/common/Team Fortress 2/tf/custom/two_hand_cannon_v2/" "mod" "GAME" "GAME" (VPK)/media/CaviarGreen/Program Files/Steam/SteamApps/common/Team Fortress 2/tf/tf2_textures.vpk "mod" "mod" (VPK)/media/CaviarGreen/Program Files/Steam/SteamApps/common/Team Fortress 2/tf/tf2_textures.vpk "GAME" "GAME" (VPK)/media/CaviarGreen/Program Files/Steam/SteamApps/common/Team Fortress 2/tf/tf2_sound_vo_english.vpk "mod" "mod" (VPK)/media/CaviarGreen/Program Files/Steam/SteamApps/common/Team Fortress 2/tf/tf2_sound_vo_english.vpk "GAME" "GAME" (VPK)/media/CaviarGreen/Program Files/Steam/SteamApps/common/Team Fortress 2/tf/tf2_sound_misc.vpk "mod" "mod" (VPK)/media/CaviarGreen/Program Files/Steam/SteamApps/common/Team Fortress 2/tf/tf2_sound_misc.vpk "GAME" "GAME" (VPK)/media/CaviarGreen/Program Files/Steam/SteamApps/common/Team Fortress 2/tf/tf2_misc.vpk "mod" "mod" (VPK)/media/CaviarGreen/Program Files/Steam/SteamApps/common/Team Fortress 2/tf/tf2_misc.vpk "GAME" "GAME" (VPK)/media/CaviarGreen/Program Files/Steam/SteamApps/common/Team Fortress 2/hl2/hl2_textures.vpk "GAME" "GAME" (VPK)/media/CaviarGreen/Program Files/Steam/SteamApps/common/Team Fortress 2/hl2/hl2_sound_vo_english.vpk "GAME" "GAME" (VPK)/media/CaviarGreen/Program Files/Steam/SteamApps/common/Team Fortress 2/hl2/hl2_sound_misc.vpk "GAME" "GAME" (VPK)/media/CaviarGreen/Program Files/Steam/SteamApps/common/Team Fortress 2/hl2/hl2_misc.vpk "PLATFORM" "PLATFORM" (VPK)/media/CaviarGreen/Program Files/Steam/SteamApps/common/Team Fortress 2/platform/platform_misc.vpk "/media/CaviarGreen/Program Files/Steam/SteamApps/common/Team Fortress 2/tf/" "mod" "/media/CaviarGreen/Program Files/Steam/SteamApps/common/Team Fortress 2/tf/" "mod_write" "/media/CaviarGreen/Program Files/Steam/SteamApps/common/Team Fortress 2/tf/" "default_write_path" "/media/CaviarGreen/Program Files/Steam/SteamApps/common/Team Fortress 2/tf/" "GAME" "/media/CaviarGreen/Program Files/Steam/SteamApps/common/Team Fortress 2/tf/" "game_write" "/media/CaviarGreen/Program Files/Steam/SteamApps/common/Team Fortress 2/tf/bin/" "gamebin" "/media/CaviarGreen/Program Files/Steam/SteamApps/common/Team Fortress 2/hl2/" "GAME" "/media/CaviarGreen/Program Files/Steam/SteamApps/common/Team Fortress 2/tf/download/" "GAME" "/media/CaviarGreen/Program Files/Steam/SteamApps/common/Team Fortress 2/tf/download/" "download" "/media/CaviarGreen/Program Files/Steam/SteamApps/common/Team Fortress 2/tf/" "LOGDIR" "/media/CaviarGreen/Program Files/Steam/SteamApps/common/Team Fortress 2/platform/config/" "CONFIG"

StrikerMan780 commented 11 years ago

To add to the last post, the PATH shows the custom folders there, but they aren't actually being loaded. The content doesn't show at all.

nisseblink commented 11 years ago

So do any of the resources load? As far as I understands it, all paths must be lower-case. e.g. medicBeam.vpk => medicbeam.vpk. I have no idea how the internal structures in custom paths are handled so it would be interesting to investigate further.

StrikerMan780 commented 11 years ago

imho Source on Linux should ditch all case-sensitivity.

Yetoo1 commented 2 years ago

@fletcherdvalve You're assigned to this. What's your progress on it?