drweissbrot / cs-hud

Custom Counter-Strike Spectator HUD
ISC License
239 stars 41 forks source link

Overlay keeps hiding beneath the game. #132

Open FrainbreezeN1 opened 8 months ago

FrainbreezeN1 commented 8 months ago

I've been using this one for quite a few weeks and it was working perfectly fine. Now recently I can't get the overlay to appear above my game anymore. No matter how much I switch, it's not popping up anymore. It's on the right screen, my game is fullscreen windowed. I don't understand why my overlay keeps dissapearing underneath my game.

drweissbrot commented 8 months ago

Welp, I can tell you that you're not the only one at least -- I haven't been able to find out why this happens yet though :(

In the meantime, could you double-check that you're using the most recent version of both the console app (cs-hud-win.exe) and the overlay (cs-hud.exe from cs-hud-win32-x64.zip)?

FrainbreezeN1 commented 8 months ago

I recently installed it again since I thought that would fix it. So it's the most recent version yeah.

drweissbrot commented 8 months ago

Bit of a long shot, but could you try this build and see if it's an issue there too? https://drive.proton.me/urls/VW9GE52244#NiC2S16Xw2B4

for reference (for me and others), this one has different Electron BrowserWindow params: autohideMenuBar: true, focusable: false, and it calls browserWindow.setAlwaysOnTop(true, 'screen-saver'), compared to https://github.com/drweissbrot/cs-hud/blob/bcecde36b9d08bfe1b32e995bcbcacd6c716ca4a/src/electron/hud.js

FrainbreezeN1 commented 8 months ago

Sorry for the very late replay but I can't open that link!

drweissbrot commented 8 months ago

Sorry for the very late replay but I can't open that link!

whoops, should work now :D

DriesMagnus commented 7 months ago

I came here because I encountered the same thing. The build you sent doesn't even open for me visually, I see it does run in task manager BUT I have found a temp fix for it.

  1. Open cs-hud.exe
  2. Drag any window over top of CS2 (for example discord) and make it fill the screen
  3. Switch back to the HUD
  4. Problem solved as long as you keep it open!

Very strange issue, but at least this workaround works (for whatever reason)

Ssheliy commented 5 months ago

Вы можете попробовать такой вариант, в программе OBS выбрав браузер где у вас установлен HUD, можете наложить на него фильтр "хромакей". И тогда волшебным образом HUD останется на месте, а зеленое полотно за ним пропадет и будет видно ваш матч!

Muligheder commented 2 months ago

I had the same problem and solved it by opening it in a specific sequence:

  1. Run cs-hud-win.exe
  2. Open http://localhost:31982/hud in your favorite browser, and you should see the HUD. (Won't show before game is open)
  3. Run cs-hud.exe on Windows
  4. Start CS2 and Find a match to spectate in CS. The HUD should now overlay your screen.