Possible case folding on material loading results in missing textures
In a custom map that I play, specific materials don't load for me, but the same issue doesn't happen with another person that plays on Windows. I play with the native Linux version.
I also remember playing this same map on Windows and having no issues on it.
The map is https://gamebanana.com/mods/72174.
Investigating the developer console reveals that it is unable to find the required textures, even though they're present in the map's BSP file. Here are the relevant messages from the developer console: https://0.jaegers.net/?ead8afd6bec99fca#22r9Ka4MSDskRqeb3VSiN6UdwXU4GzSfdG8zsHthJkm6
Here is a screenshot showing the messages and what's inside the map's BSP file:
Person on Windows:
My game on Linux:
I believe this happens due to case folding, considering how the messages in the developer console appear.
I am not sure if this happens in other Source games; I've only noticed it in TF2, but I believe this is a problem that has its roots in HL2 code (i.e. the Source Engine). And I'm also not sure if it happens on MacOS and the legacy 32-bit versions, but I know that it doesn't happen on Windows while it happens on Linux.
This also happens on another map, with more evidently missing textures.
The map is pkmn_goldenrodcity_b3. It's available to download at https://drive.proton.me/urls/RBBVTB79BR#6KMLuPgvFLTB (my local copy).
Strangely, the same issue doesn't happen when loading the same map using map workshop/1741035197 (https://steamcommunity.com/sharedfiles/filedetails/?id=1741035197) from the developer console (it's a reupload to the Steam Workshop). It only happens in my local copy.
To reiterate, these issues do not happen with Windows users.
This is probably a regression since I had not had any of these issues before an update (probably the Smimass 2024 update).
How it should look (Workshop version):
How it looks (my local copy, which was working 1:1 with Windows before some update):
Yea I can second this as a Linux user, it seemed to happen some time around early to mid-December for me though it might have started earlier.
This also happens on Trade_Minecraft_Realms_V2, missing textures everywhere.
I don't have a Windows PC or a Macbook to show this map on the Windows/MacOS version of TF2 The map download is here: https://gamebanana.com/mods/73762
This is on SteamOS, running the 64-bit version of the game. According to the comments above, this issue only seems to happen on Linux.
I tested and found the issue. Is due to Linux not being able to handled if they are capitalized. I took a map and extracted all materials and renamed to lower and put it back in which resolved the whole issue.
Rather silly but works to manually fix it for now. Might create a script for it.
I tested and found the issue. Is due to Linux not being able to handled if they are capitalized. I took a map and extracted all materials and renamed to lower and put it back in which resolved the whole issue.
Rather silly but works to manually fix it for now. Might create a script for it.
please make a script for it like now
please could someone report this issue too valve? I can't even play zombie escape anymore because every time i try I get maps full of missing textures, error signs, and kliener saying "oh fiddlesticks what now?"
please make a script for it like now
Maps are server-sided. Renaming the files in your client will make your map mismatch the map on the server (different file names), so it would be useless.
please could someone report this issue too valve? I can't even play zombie escape anymore because every time i try I get maps full of missing textures, error signs, and kliener saying "oh fiddlesticks what now?"
This GH issue is a report. We just need to wait. Soon™.
Maps are server-sided. Renaming the files in your client will make your map mismatch the map on the server (different file names), so it would be useless.
You can make a .vpk for the fixed files paths and just pray that the server is using sv_pure 0.
I can make a script if there is high demand but a easy way for now is get the map, open VPKEdit, save it, export materials, make VPK from folder.
It really sucks though, rip all the maps we used to love...
I tested for curiosity and changed proton from sniper to latest proton version, and somehow that resolved everything.
@Tiagoquix @DecibelHZ @CrashGround385 @Qwerty1235678 Would be good to verify, can you test and see if this helps you too?
You won't be able to join VAC protected servers with proton
I tested for curiosity and changed proton from sniper to latest proton version, and somehow that resolved everything.
@Tiagoquix @DecibelHZ @CrashGround385 @Qwerty1235678 Would be good to verify, can you test and see if this helps you too?
You won't be able to join VAC protected servers with proton
You can still test locally by opening the map
you can't join any servers with proton dude...........
On Tue, Jan 21, 2025 at 9:46 AM Matthew @.***> wrote:
I tested for curiosity and changed proton from sniper to latest proton version, and somehow that resolved everything.
@Tiagoquix https://github.com/Tiagoquix @DecibelHZ https://github.com/DecibelHZ @CrashGround385 https://github.com/CrashGround385 @Qwerty1235678 https://github.com/Qwerty1235678 Would be good to verify, can you test and see if this helps you too?
— Reply to this email directly, view it on GitHub https://github.com/ValveSoftware/Source-1-Games/issues/6868#issuecomment-2604933348, or unsubscribe https://github.com/notifications/unsubscribe-auth/BHZCEUWEXXJVZ3GIBNYA36D2LZMTJAVCNFSM6AAAAABTTVFFBWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMMBUHEZTGMZUHA . You are receiving this because you were mentioned.Message ID: @.***>
valve can see this thread right???? RIGHT???????
I tested for curiosity and changed proton from sniper to latest proton version, and somehow that resolved everything.
That's useless; you can't join VAC-protected servers using the Proton version. I know Windows users aren't affected by this bug.
Having the same issue, it does appear to be because of case sensitivity. Hopefully this is fixed soon.
So I messed about with renaming the skybox files for Trade_Minecraft_Realms_V2 (turns out Kate can open VMT files) and that fixed all the textures, not just the skybox textures. If you want to test this out yourself, make a new folder (the name shouldn't matter) and put it anywhere you can remember, open the map you want to fix with VPKEdit and extract the materials folder to the folder you just made, then make a VPK out of that folder. Like I said I renamed all of the skybox VMTs with Kate and I don't know if you have to do that with at least one VMT file for it to work, for proof I have linked the VPK that I made that fixed this: https://drive.google.com/file/d/1AsfDVw45LZ22saQ6IZVLawMenT16TGUp/view?usp=drive_link If it doesn't work, let me know.
Replying to https://github.com/ValveSoftware/Source-1-Games/issues/6868#issuecomment-2630188484
Already tried but if servers are not using sv_pure 0 your custom vpk won't work either way. Is a ok solution locally or to fix the map yourself if server owner, otherwise rather pointless for now.
new update just came out... did it fix it for anyone?
No. For me it still happens.
Me too, it still happens. Fucking shit valve fix your damn game
On Tue, Feb 18, 2025, 11:04 PM Tiagoquix @.***> wrote:
No. For me it still happens.
— Reply to this email directly, view it on GitHub https://github.com/ValveSoftware/Source-1-Games/issues/6868#issuecomment-2667457661, or unsubscribe https://github.com/notifications/unsubscribe-auth/BHZCEUQ4IHVOX4DZ4V7YFBT2QP7GFAVCNFSM6AAAAABTTVFFBWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMNRXGQ2TONRWGE . You are receiving this because you were mentioned.Message ID: @.***> [image: Tiagoquix]Tiagoquix left a comment (ValveSoftware/Source-1-Games#6868) https://github.com/ValveSoftware/Source-1-Games/issues/6868#issuecomment-2667457661
No. For me it still happens.
— Reply to this email directly, view it on GitHub https://github.com/ValveSoftware/Source-1-Games/issues/6868#issuecomment-2667457661, or unsubscribe https://github.com/notifications/unsubscribe-auth/BHZCEUQ4IHVOX4DZ4V7YFBT2QP7GFAVCNFSM6AAAAABTTVFFBWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMNRXGQ2TONRWGE . You are receiving this because you were mentioned.Message ID: @.***>
As far as I can tell, this is present on all 64 bit Source 1 games. I started experiencing this issue in the latest version of CS:S
Another issue I've been having I wish someone would make an issue about (I don't know how too do it) is that I can't launch the 64 bit source games whether it's tf2 or the recent cs source update Unless I type "-windowed -noborder" in the launch options can someone make that an issue please for me ;(
On Wed, Feb 19, 2025, 3:12 PM Awesomerly @.***> wrote:
Please fix this please tysm, this is present on all 64 bit source 1 games
— Reply to this email directly, view it on GitHub https://github.com/ValveSoftware/Source-1-Games/issues/6868#issuecomment-2669659294, or unsubscribe https://github.com/notifications/unsubscribe-auth/BHZCEUT5JPYA327OL3TUPK32QTQUHAVCNFSM6AAAAABTTVFFBWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMNRZGY2TSMRZGQ . You are receiving this because you were mentioned.Message ID: @.***> [image: Awesomerly]Awesomerly left a comment (ValveSoftware/Source-1-Games#6868) https://github.com/ValveSoftware/Source-1-Games/issues/6868#issuecomment-2669659294
Please fix this please tysm, this is present on all 64 bit source 1 games
— Reply to this email directly, view it on GitHub https://github.com/ValveSoftware/Source-1-Games/issues/6868#issuecomment-2669659294, or unsubscribe https://github.com/notifications/unsubscribe-auth/BHZCEUT5JPYA327OL3TUPK32QTQUHAVCNFSM6AAAAABTTVFFBWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMNRZGY2TSMRZGQ . You are receiving this because you were mentioned.Message ID: @.***>
been having this issue in half life 2 deathmatch as well. Some maps like spookface just turn entirely into checkerboards.
[All] [Linux] Missing map materials on custom maps.
Issue transferred from https://github.com/ValveSoftware/Source-1-Games/issues/7065. @Nyvyme posted on 2025-02-20T21:08:17:
This is bhop_purpleglow for CSS. Also occurs on other custom maps in other recently updated Source 1 games:
@nekoclimb commented on 2025-02-20T23:53:26:
Probably due to case sensitivity although this was never an issue before the new build. I can confirm this map works fine on the old build.
@rtldg commented on 2025-02-21T02:04:34:
Probably due to case sensitivity although this was never an issue before the new build.
It still happened in very random cases that I don't know how to replicate in the previous 32-bit builds.
Related: https://github.com/ValveSoftware/Source-1-Games/issues/6868
@KaelaSavia commented on 2025-02-21T02:21:24:
same issue occurs with some models, and on dedicated servers running linux this can result in models having no collision, windows players will see model just fine but the model will be walk through and as a result map broken
@Tiagoquix commented on 2025-02-21T02:36:46:
@kisak-valve I believe this issue has been included with all Source 1 games that received recent updates from HL2 Anniversary changes (DoD:S, TF2, CSS etc.). Maybe making #6868 a general issue for all Source 1 games and closing this one as a duplicate would be better to keep the issue in only one place.
@starships512 commented on 2025-02-21T11:00:54:
+1 I have also encountered these problems, some objects and materials are not displayed in the new version for Linux
VALVE PLZ FIX ;(
Maps are server-sided. Renaming the files in your client will make your map mismatch the map on the server (different file names), so it would be useless.
You can make a .vpk for the fixed files paths and just pray that the server is using sv_pure 0.
I can make a script if there is high demand but a easy way for now is get the map, open VPKEdit, save it, export materials, make VPK from folder.
It really sucks though, rip all the maps we used to love...
If you're still feeling up for possibly making a script it would be super useful both for users and server owners who wanna work around this issue in a batch. It's better than nothing at least. T_T In the meantime I do play on a half life 2 deathmatch server that indeed uses sv_pure 0 so I will def use vpkedit for those at least.
In the meantime here are a couple things I attempted that failed:
- I used chattr +F on the maps folder to see if maybe loading the bsp with a case-insensitive folder would work. Did not.
- In a similar vein I tried symlinking the download maps folder to an ntfs drive, that also didn't work.
I do wonder if a mod could possibly help while waiting for Valve to address this, but in the meantime a quick way to fix the maps on our end is our best bet. A script would also make it more worth it for server owners to fix the maps on their end.
EDIT: I haven't had any luck getting it to work with vpkedit. Am I missing something? I extract the materials folder to a non case sensitive dir then make a vpk from it. It makes two files, one with a _000 but if I try loading that one it just says could not parse corrupted vpk. I get rid of that one then it just... still doesn't load the materials. I put them into custom.
EDIT2: oh, I realized I had to have the materials folder inside of a folder named after the map and compress that
Here is a script, it just uses vpkedit to add a file which saves and fixes all capitalized stuff. @Sukid PatchBSPCaptilizedMaps.tar.gz
Here is a script, it just uses vpkedit to add a file which saves and fixes all capitalized stuff. @Sukid PatchBSPCaptilizedMaps.tar.gz
you still can't join servers with this script
I am not sure if this happens in other Source games; I've only noticed it in TF2, but I believe this is a problem that has its roots in HL2 code (i.e. the Source Engine). And I'm also not sure if it happens on MacOS and the legacy 32-bit versions, but I know that it doesn't happen on Windows while it happens on Linux.
Can confirm this case folding issue was not present in 32-bit build (HL2DM at least). Some maps I've played for a long time are borked now.
Here is a script, it just uses vpkedit to add a file which saves and fixes all capitalized stuff. @Sukid PatchBSPCaptilizedMaps.tar.gz
you still can't join servers with this script
It's useful for server owners if they wanna try and fix it since now it's all there. Also if it's running sv_pure 0 you can just pack up the folder in the "maps" folder as a vpk with vpkedit. (Just take away the _fixed part)