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

Genshin giving the error 31-4302 when loading with fov unlocker #5

Open
ZIFIXLeDebutant opened this issue Oct 18, 2024 · 28 comments
Open
Labels
bug Something isn't working

Comments

@ZIFIXLeDebutant
Copy link

I had just played this morning before going to class and everything was going perfectly well (I was using 3dmigoto at the same time) then when I got home this evening I noticed that genshin was giving me the 31-4302 error, I tested the game without any mods and no sign of the error, the same with the fps unlocker and after some testing I was able to conclude that the problem was coming from the fov unlocker. Is there any way to fix this? I hate getting motion sickness with the basic fov.

@z3lx
Copy link
Owner

z3lx commented Oct 18, 2024

This also happened back in Genshin 4.8 second half of the patch. They removed it in 5.0, but it seems like it's back. To be honest with you, unless hoyo (for some reason) removes it again, finding a workaround seems rather unlikely.

Edit: see comment below.

@z3lx z3lx added the bug Something isn't working label Oct 18, 2024
@ZIFIXLeDebutant
Copy link
Author

I see, it's a real shame, I started playing genshin again just a bit before the 5.0 release after seeing that it was possible to change the fov, but thanks for the clarification tho!

@z3lx
Copy link
Owner

z3lx commented Oct 18, 2024

I'll see what can be done about it, but don't expect a quick fix.

Edit: see comment below.

@Mizerka
Copy link

Mizerka commented Oct 18, 2024

tried some stuff thinking it was just me but yeah same here, only had it for a day lmao

@z3lx
Copy link
Owner

z3lx commented Oct 18, 2024

Yeah it actually sucks lol
I'm currently working on a temporary fix that could work, since the integrity check is only performed (afaik) once when you start the game.

@z3lx z3lx mentioned this issue Oct 18, 2024
@z3lx
Copy link
Owner

z3lx commented Oct 18, 2024

I've drafted a release that implements a hotfix for the integrity checks. You do have to jump through a couple extra hoops though lol

@Veseleilo

This comment has been minimized.

@z3lx

This comment has been minimized.

@Veseleilo

This comment has been minimized.

@z3lx

This comment has been minimized.

@Veseleilo

This comment has been minimized.

@z3lx

This comment has been minimized.

@Mizerka
Copy link

Mizerka commented Oct 19, 2024

Worked fine for me yesterday btw, thanks.

@elbadcode
Copy link

hmm injecting your plugin with my own dll injector works perfectly fine for FOV without having to press anything. whats really odd is my code for injecting DLLs is nearly identical to the genshin FPS unlocker so I'm confused.

Actually I just tried using the fps unlocker to launch which does still work for FPS, and it didnt autohook but I didnt need to go to a loading screen to hook and no crashes. Odd

Regardless looks like I need to update my loader to inject shell code or just use the FPS unlocker stub module. I had been using genshin utility for fps and fov

@Mizerka
Copy link

Mizerka commented Oct 19, 2024

also im not very smart but the check happens fairly early on into door loading, if I do it around halfway through (after integrity checks) it injects it fine without throwing errors. saves you going into domain, also I'm doing gimi and that didnt break with update, not sure if they inject it differently though.

@viitana
Copy link

viitana commented Oct 19, 2024

Looks like exiting from co-op sessions back to single player will also trigger the error message and sign the user out.

@Mizerka
Copy link

Mizerka commented Oct 19, 2024

yeah co-op event going on atm or serenitea zone will throw error when entering back into single person mode

@z3lx
Copy link
Owner

z3lx commented Oct 19, 2024

@elbadcode

Actually I just tried using the fps unlocker to launch which does still work for FPS, and it didnt autohook but I didnt need to go to a loading screen to hook and no crashes. Odd

If may or may not crash -- you're essentially just trying to time the hooking process so that it doesn't modify the function while it's being called 2 times a frame, 60+ frames per second. So you were lucky lol

@z3lx
Copy link
Owner

z3lx commented Oct 19, 2024

@Mizerka

also im not very smart but the check happens fairly early on into door loading, if I do it around halfway through (after integrity checks) it injects it fine without throwing errors. saves you going into domain

Thanks for pointing it out, I'll update the readme!

also I'm doing gimi and that didnt break with update, not sure if they inject it differently though.

There's only so many ways of injecting dlls -- I'm guessing mhy just isn't checking if d3d11 is modified or not.

@z3lx
Copy link
Owner

z3lx commented Oct 19, 2024

@viitana

Looks like exiting from co-op sessions back to single player will also trigger the error message and sign the user out.

I'll see what I can do about it. No promises though

@Veseleilo
Copy link

I've managed to get into the game without the early check (-my video for reference), by moving my FPS and FOV unlock containing folder to another location.
At least we have this band-aid solution for now, thanks for that. I was really pissed off yesterday while playing without your mod. Vanilla game is almost unplayable for me.
What a dick move by Mihoyo. It's not enough that they won't implement basic PC QoL features for years already, but they need to pester people that use mods for a non-competitive game... I've quit playing 3 years ago, giving it enough time to mature, and boy was I wrong...

Repository owner deleted a comment from Veseleilo Oct 19, 2024
@z3lx
Copy link
Owner

z3lx commented Oct 19, 2024

Good to hear that it's now working for you. Next time be careful when sharing videos, your UID was exposed.

@elbadcode

This comment was marked as off-topic.

@z3lx

This comment was marked as off-topic.

@z3lx
Copy link
Owner

z3lx commented Nov 20, 2024

Integrity check has seemingly been disabled, and I'm guessing it's only a matter of time before mhy re-enables it again. I'll add an autohook option in the config tomorrow.

@Veseleilo
Copy link

And now they've added integrity check again after leaving co-op, and even when idling in the middle of the game. They're maybe afraid people will try to exploit the featured banners, as the chars are both pretty awesome.

@z3lx
Copy link
Owner

z3lx commented Dec 10, 2024

To avoid getting booted to the login screen, you can unhook the plugin with up arrow before leaving co-op, and then re-hook it again with up arrow after the loading bar appears.

This is not to stop exploiting banners -- it's literally not possible to exploit it since the validation for pulling is all done server-sided.

@Veseleilo
Copy link

the validation for pulling is all done server-sided.

Like everything else in the game. Still strange they've forced it for this specific timeline.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants