ValveSoftware / Source-1-Games

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

[Linux][TF2] Custom MvM wave bot icons in custom missions working in Windows but are not displayed in Linux #3633

Open gmjck opened 2 years ago

gmjck commented 2 years ago

Custom MvM maps/missions like those from Potato or Creators.TF often use custom robots, and give those robots custom icons in the panel that shows what is coming in the current wave. This appears to be working fine for Windows users, but on Linux these custom icons are not displayed, and instead show up as pink checkerboards. There are messages in the console such as:

--- Missing Vgui material vgui/../hud/leaderboard_class_medic_shield_giant --- Missing Vgui material vgui/../hud/leaderboard_class_soldier_homing_nys --- Missing Vgui material vgui/../hud/leaderboard_class_demo_sticky_daan

Custom wave icons for these missions are stored in tf2/download/materials/hud

A workaround that has been found is to create a 'hud' folder in tf2/materials and copy everything from tf2/download/materials/hud to there. It seems like the Linux and Windows TF2 clients are handling the search path for materials differently.

Example of missing icons (some non-standard icons are showing because of caching with earlier use of the workaround): missingicons

Example after workaround (and what Windows users would see without needing the workaround): workaround

Lmedeiros-leiman commented 7 months ago

alternativelly oppening the console on /tf/materials and creating a symbolic link using

ln -s ../download/materials/hud ./hud

also works wonders and you don't have to wory about redoing this mannually.

i'm still finding a solution for a related problem: the map icons and most textures works but some just don't... like on this mvm map "shadows b3" where one of the vending machines is clearly not working.

image

RedRam567 commented 1 month ago

I am getting VAC issues the symbolic link method. With the symlink in tf/materials I could not join any servers, even single player training without "An issue with your computer is blocking the VAC system". With the symlink in tf/custom/SOME_NAME/materials it appeared to work without issue but I left quickly left the server I joined, to join my friends an another Moonlight server and got kicked with the same VAC message almost immediately.

I am not using Feral gamemode or the LD_PRELOAD=libtcmalloc workaround. These are my launch options: -novid -windowed -unrestricted_maxplayers -nojoy -nosteamcontroller -nohltv -particles 1 -precachefontchars -noquicktime. The only thing in my custom folder is B4nny's autoexec.cfg and the symlink.