khang06 / mhynot2

A user-mode emulator for the mhyprot2.sys driver
113 stars 28 forks source link

Seems not working for 2.8 anymore #7

Open ameaninglessname opened 2 years ago

ameaninglessname commented 2 years ago

Note, I am running the tool and the game in Sandboxie:

When I run this console application directly, game boot up and shutdown within several seconds.

But if I "select something" in the game's console window to pause it, like : image

The game boot into login screen and would let me do "click anything to enter the game", But when the game is loading, it pops up a little window and say "Error happen, please go to the official website to download the client".

If you're running well, feel free to close this issue, then it should be something changed in recent Sandboxie's release.

khang06 commented 2 years ago

it's possible that the game loaded mhyprot3 instead of 2, which isn't handled at all by this. i'm still not really sure about what criteria has to be met for one to be loaded instead of the other

ameaninglessname commented 2 years ago

I am willing to test both ways.🤣

ameaninglessname commented 2 years ago

Would you update it recently?

khang06 commented 2 years ago

probably not, mhyprot2 isn't even in the latest versions so it would be better to port it over to mhyprot3, but i don't think i'll do that for a while

NullExir commented 2 years ago

@ameaninglessname Can you please specify which game version that was working with this bypass?, I've tried running v2.6 & 2.8 without a luck, game boots into main screen then suddenly shuts down, downloading v2.5 rn. running win10 pro.

ameaninglessname commented 2 years ago

@ameaninglessname Can you please specify which game version that was working with this bypass?, I've tried running v2.6 & 2.8 without a luck, game boots into main screen then suddenly shuts down, downloading v2.5 rn. running win10 pro.

It worked successfully in 2.7 version.

NullExir commented 2 years ago

@ameaninglessname Thanks, i found out that we can run both 2.8, and 3.0 You'll need to halt the command line spawned by libwinpthread-1.dll, by selecting an are within the cmd.

Video proof: proof am using a server emulation software @khang06 might be interested to simulate that behavior, either way appreciate the efforts :)

ameaninglessname commented 2 years ago

libwinpthread

Thanks a lot!!! I will try it out

ameaninglessname commented 2 years ago

After tried several times, i didn't launch the game successfully.

Looks like the Chinese version and the International version has slightly different "anti mechanism" and naming. image

I also did two test:

and re-launch. the game crashed immediately.

NullExir commented 2 years ago

@ameaninglessname You'll need to inject both mhynot2 and libwinpthread-1.dll (from mingw lib folder), see the proof video above. You can acquire that file from either MSYS2 or by installing mingw within a linux here's a link for both files compiled

Are you using MSVC compiler ? try to compile in GCC (i compiled them inside a linux VM) also see the unmerged pull request by Jasuf they made improvement to the CMakeLists.txt

ameaninglessname commented 2 years ago

Thanks for you files, but i still can't launch the game. By selecting an area within the cmd the game is freezed, I have to press enter to continue running it. (I remember that it could continue running at previous versions)

Yes, I compile both the dll and launcher(ConsoleApplication.exe) using MSVC, I don't have a linux VM.

image

ameaninglessname commented 2 years ago

Before tried your files, I also tried to inject both dll using my compiled stuff, (I copied the libwinpthread-1.dll from git installation folder, this dll is not a self compiled one right?) and failed.

ameaninglessname commented 2 years ago

Never mind, I can still play it on my cell phone, though the desktop graphic is more appealing.

NullExir commented 2 years ago

the launcher is looking specifically for GenshinImpact.exe here that might be the issue.

Try to recompile it with the correct process name for the your game version YuanShen.exe. You can also try and download the international version of the game see if it works.

ameaninglessname commented 2 years ago

Yes, I have already changed the name there, that's the reason I have to use the "ConsoleApplication.exe" compiled myself, otherwise I can't launch the game at all.

I learned that the account of the Chinese version can't be logged into the international version, so even if it's currently work, it makes no sense for me.