Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When I Inject forza horizon 4 the game crash? #30

Open
LRW-Adolph opened this issue Nov 6, 2021 · 10 comments
Open

When I Inject forza horizon 4 the game crash? #30

LRW-Adolph opened this issue Nov 6, 2021 · 10 comments

Comments

@LRW-Adolph
Copy link

When I Inject forza horizon 4 the game crash?

@ghost
Copy link

ghost commented Nov 15, 2021

When I Inject forza horizon 4 the game crash?

Forza Horizon 4, like many Microsoft Store games, makes use of Arxan Anti-Tamper DRM, which will not allow any injections (namely, games using it will crash if an injection is detected). Besides, Forza Horizon 4 already includes support for Impulse Triggers, so using X1nput with the game is not needed.

@araghon007
Copy link
Owner

Forza Horizon 4, like many Microsoft Store games, makes use of Arxan Anti-Tamper DRM, which will not allow any injections (namely, games using it will crash if an injection is detected).

Oh, thanks. I remember also trying it because of some other issue someone reported and I was wondering why it was crashing. I assumed it had some anti-tamper stuff, but wasn't sure what exactly.

I think I managed to get it working by just copying the X1nput DLL into the game's directory and renaming it to one of the XAudio versions, but I can't remember which one. Has to be XAudio, since only one XInput DLL is loaded, and the way this code works, it requires a real XInput DLL to be loaded. Just check which DLLs get loaded by the game, and try renaming the X1nput DLL to one of them.

I was thinking to doing this automatically as a way to allow automatically running it when you start the game, but I'm not sure what the best way would be. I could either create a sort of redirect thing, where XInput calls get redirected to a real XInput DLL and also keep the detour stuff, since that would be the easiest, or rewrite the XInput DLL from scratch, which would be way harder as I wasn't able to find any code for it, plus I don't think I'd be able to send a HID report as easily as I can now, because handles and stuff.

@Squall-Leonhart
Copy link

FH4 natively supports impulse triggers, it doesn't require this tool.

@araghon007
Copy link
Owner

It only natively supports them only on the UWP version, doesn't it?

@ghost
Copy link

ghost commented Feb 27, 2022 via email

@araghon007
Copy link
Owner

Right, but not the Steam version, which is what I assumed was talked about here, since to my knowledge it's pretty hard to even try to inject anything into UWP apps

@Squall-Leonhart
Copy link

it natively uses them on both versions.

@araghon007
Copy link
Owner

Are you 100% sure? From what I've tested about a year ago, they didn't work.

@yz-gu
Copy link

yz-gu commented Apr 21, 2022

Still doesn't support impulse trigger on steam version, and apparently they're not gonna fix it. Add this in fh5 however.

@Sodozor
Copy link

Sodozor commented Oct 30, 2023

2.0 version works but copies rumble from gamepad to triggers. they aren't separate. anything above 2.0 crashes the game. is there anything that can be done?
edit. I managed to inject the 3.1 dll without game crash using illegal things however still issue is the same as with the 2.0 version so no separate rumble for triggers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants