Source-1-Games icon indicating copy to clipboard operation
Source-1-Games copied to clipboard

CS:S Flashlight is broken on de_aztec

Open Xaggy opened this issue 1 year ago • 24 comments

Hello

Flashlight is broken, when I try to shine on something it creates a white texture. This issue seems to be unique to de_aztec.

Image

Xaggy avatar Feb 19 '25 17:02 Xaggy

Hello @Xaggy, please copy your system information from Steam (Steam -> Help -> System Information) and put it in a gist, then include a link to the gist in this issue report.

kisak-valve avatar Feb 19 '25 17:02 kisak-valve

Hello @Xaggy, please copy your system information from Steam (Steam -> Help -> System Information) and put it in a gist, then include a link to the gist in this issue report.

https://gist.github.com/Xaggy/1d00f10fa69242ed74f45ca07eb689ba

Xaggy avatar Feb 19 '25 17:02 Xaggy

Hi, The same thing is happening on Linux.

tomtroughton avatar Feb 19 '25 18:02 tomtroughton

Same issue here, I ran around on all the other official CS:S maps with my flashlight and didn't see any other maps had the same issue. I also downloaded some community maps that use aztec textures and assets, but the flashlight issues don't seem to carry over to those maps. On GameBanana, I did notice some mappers were having issues trying to find de_aztec textures in the hammer editor, so I wonder if the issue could be related to that.

System Specs: https://gist.github.com/ILC-YTP/8de9d7571765d7af5a3459cd3f198f32

ILC-YTP avatar Feb 19 '25 20:02 ILC-YTP

Update: If Shadow Detail is set to Medium or Low in the game settings, the issue is gone. Reappears if set back to high. Console command wise, if r_flashlightdepthtexture is set to 1, then the flashlight bug is present.

ILC-YTP avatar Feb 19 '25 20:02 ILC-YTP

I decompile Aztec and recompile that should probably fix the issue and the recompile map was compiled on a AMD CPU and was decompile with bspsrc windows build

normal map (Also the normal map does not use HDR) Image Image

recompile map HDR Image Image

recompile map not HDR

Image Image

UtopicTahu avatar Feb 19 '25 23:02 UtopicTahu

Replying to https://github.com/ValveSoftware/Source-1-Games/issues/7045#issuecomment-2669983483

Building the cube Maps did not cause the issue

Image

UtopicTahu avatar Feb 19 '25 23:02 UtopicTahu

Replying to #7045 (comment)

Aztecs Bsp might be version 19 which could cause the issue or how the lightmaps are converted to the engine it might cause issue https://developer.valvesoftware.com/wiki/BSP_(Source)

UtopicTahu avatar Feb 20 '25 00:02 UtopicTahu

Replying to #7045 (comment)

It is not the how lightmaps are converted to the engine

(Fulbright is on) Image

UtopicTahu avatar Feb 20 '25 00:02 UtopicTahu

Replying to #7045 (comment)

This issue will affect the Projected texture entity https://developer.valvesoftware.com/wiki/Env_projectedtexture

UtopicTahu avatar Feb 20 '25 00:02 UtopicTahu

Replying to #7045 (comment) To update the bsp version you have to recompile the map.

UtopicTahu avatar Feb 20 '25 00:02 UtopicTahu

I can confirm the bug on GNU/Linux as well.

etkaar avatar Feb 20 '25 18:02 etkaar

Replying to #7045 (comment)

Image

UtopicTahu avatar Feb 20 '25 20:02 UtopicTahu

So I started using the -gl switch to start the game, and the flashlight issue disappeared.

tomtroughton avatar Feb 25 '25 00:02 tomtroughton

So I started using the -gl switch to start the game, and the flashlight issue disappeared.

Tried the same here, but it didn't seem to solve the issue. Did the GL flag change your video settings? Or does the GL flag not work on Windows? (I can't find a convenient way to figure out what uses OpenGL or DirectX)

ILC-YTP avatar Feb 25 '25 05:02 ILC-YTP

So I started using the -gl switch to start the game, and the flashlight issue disappeared.

Tried the same here, but it didn't seem to solve the issue. Did the GL flag change your video settings? Or does the GL flag not work on Windows? (I can't find a convenient way to figure out what uses OpenGL or DirectX)

you can use Rivaturner (preinstalled with MSI Afterburner), and enable framerate monitoring in MSI afterburner, or use Special K and check graphics API there. On Windows, only D3D9 or Vulkan (through DXVK using -vulkan), is supported.

megakarlach avatar Feb 25 '25 13:02 megakarlach

The workarounds are great, but they dont fix the underlying issue, that the map needs to be fixed.

killersoft avatar Feb 25 '25 20:02 killersoft

Aztec textures, that have those issues, use WorldTwoTextureBlend shader. Also, in developer mode, console throws error: ***** Invalid pixel shader index (out of range) for worldtwotextureblend_ps20b (16 of 16).

Gazyi avatar Mar 02 '25 11:03 Gazyi

Flashlight was fine in de_aztec before the February 18 2025 update: Image

After the February 18 2025 update, the flashlight is broken in de_aztec (still broken in build 11003710, released September 16 2026): Image

This issue affects both the 64-bit and 32-bit clients.

My system specs: https://gist.github.com/RiverHornet3209/5e86b71dfa2f4d6b219efdb05bded7ce

RiverHornet3209 avatar Apr 17 '25 19:04 RiverHornet3209

I wonder when they will fix this.

Ra1den19 avatar May 15 '25 16:05 Ra1den19