veeenu / hudhook

A videogame overlay framework written in Rust, supporting DirectX and OpenGL
MIT License
167 stars 27 forks source link

Errors on Resident Evil 2 and Testing on Other Games #155

Closed sylvavv closed 4 months ago

sylvavv commented 5 months ago

{7BEBC450-7DF1-4a5c-9C75-36ADAF8AF010}

https://github.com/veeenu/hudhook/blob/heck-dcomp/examples/simple_hook.rs

Injecting "simple_hook.dll" after the game's logo appears will result in the aforementioned error. Injecting it after the game's main menu appears allows it to run properly.

OGL game Rune Factory 4, DX11 game Sekiro, DX12 game Resident Evil 3 perform well.

veeenu commented 5 months ago

That branch is in a broken state, dx9 and opengl aren't done ye because I can't find a way to share their buffer. I'm working on a Vulkan renderer atm which should be able to deal with that iiuc.

sylvavv commented 5 months ago

That branch is in a broken state, dx9 and opengl aren't done ye because I can't find a way to share their buffer. I'm working on a Vulkan renderer atm which should be able to deal with that iiuc.

(☆▽☆)👍

sylvavv commented 4 months ago

Sekiro (DX11) passed the test. image

Resident Evil 2 (DX12) and Resident Evil 3 (DX12) failed the test; once demo_hook_dx12.dll is injected, it will crash immediately. image

Rune Factory 4 (OGL3) cannot pass, error: ERROR ThreadId(02) hudhook::hooks::opengl3: src\hooks\opengl3.rs:92: Render error: Error { code: HRESULT(0x80070057), message: "Invalid parameter." } image

veeenu commented 4 months ago

Thank you for testing these! I should probably add some observability, I'm not sure why those errors happen.

sylvavv commented 4 months ago

Thank you for testing these! I should probably add some observability, I'm not sure why those errors happen.

7bbbe06

(DX12) Resident Evil 2 and Resident Evil 3 appear to work well

image image

(DX11) Sekiro as well

image

veeenu commented 4 months ago

Absolutely insane. Thank you for testing those @vSylva

I have the OpenGL renderer left to do and then we can wrap this up and release 0.6.

sylvavv commented 4 months ago

Owner

GOOOOOOOOOOOOOOOOODDDDD