hiitiger / goverlay

DirectX hook and game overlay solution for Electron, Qt and CEF, just like discord/steam game overlay,inject any app to overlay in your game
Other
783 stars 108 forks source link

prebuild binaries? demo not working ... #92

Closed maceip closed 1 year ago

maceip commented 1 year ago

what's up with the recent change to prebuilt demo binaries? cc @hiitiger

I built with vs2019 and vs2022 on both x86 and x64 and couldn't get the overlay to load on Counter-Strike: Global Offense - Direct3D 9

my dev setup:

Windows 11 Node v16.13.0

$npm run start...

When I click "start overlay":

[21840:1208/133646.409:INFO:CONSOLE(33)] "Uncaught TypeError: window.require is not a function", source: file:///C:/Users/ryan/src/goverlay/client/dist/index/statusbar.html (33)
[21840:1208/133646.415:INFO:CONSOLE(53)] "%cElectron Security Warning (Insecure Content-Security-Policy) font-weight: bold; This renderer process has either no Content Security
  Policy set or a policy with "unsafe-eval" enabled. This exposes users of
  this app to unnecessary security risks.

For more information and help, consult
https://electronjs.org/docs/tutorial/security.
This warning will not show up
once the app is packaged.", source: node:electron/js2c/sandbox_bundle (53)
[21840:1208/133649.077:INFO:CONSOLE(1)] "blur", source: file:///C:/Users/ryan/src/goverlay/client/dist/renderer/renderer.js (1)
[21840:1208/133658.884:INFO:CONSOLE(1)] "focus", source: file:///C:/Users/ryan/src/goverlay/client/dist/renderer/renderer.js (1)

when I click "inject game":

--------------------
 try inject Counter-Strike: Global Offensive - Direct3D 9
--------------------
 injecting {"windowId":1444746,"processId":4504,"threadId":25352,"title":"Counter-Strike: Global Offensive - Direct3D 9"}

I send ctrl+f2 & ctrl+f3 but nothing happens...

hiitiger commented 1 year ago

@maceip CS:GO has blocked any third party injection. you need to allow it and also sign the binary files https://nvidia.custhelp.com/app/answers/detail/a_id/5048/~/how-to-enable-3rd-party-software-in-counter-strike%3A-global-offensive