lanylow / genshin-utility

Utility tool for Genshin Impact and Honkai: Star Rail.
GNU General Public License v3.0
99 stars 11 forks source link

Could you please help to enhance the utl to support Yuanshen.exe too? #42

Closed KantaiMG closed 6 hours ago

KantaiMG commented 7 months ago

Could you please help to enhance the utl to support Yuanshen.exe too?

KantaiMG commented 7 months ago

Yuanshen.exe is the Genshinimpact.exe of Chinese server verion, the utl is not working when openning Yuanshen.exe.

lanylow commented 7 months ago

I don't have any way of testing or updating the tool for the Chinese version because I don't have it installed.

KantaiMG commented 7 months ago

I'm very willing to help on the testng with Chinese version. If success, this wonderful utl can be shared to more and more Genshin players. I have attached the 'Steps to instiall CN Genshin impact.docx' to help you to install Chinese version if you want to try. Or if you don't want, maybe you can try to add one more running task named 'Yuanshen.exe' to be detected in your utl, which should be the same handling on 'Genshinimpact.exe'. Steps to instiall CN Genshin impact.docx

lanylow commented 7 months ago

I don't really want to have two versions of an 80 GB game that I don't even play installed. Unfortunately just scanning for YuanShen.exe won't work, because as far as I'm aware it is a different version of the game that would require me to update the tool itself. I appreciate your offer on testing, however I think it'll introduce major delays to the updates and I'll be in trouble if you don't have time to help.

KantaiMG commented 7 months ago

I can help on the testing with CN version. And your utl was working normally in CN version before, as I just duplicated the 'Yuanshen.exe' and folder 'Yuanshen_Data' in the game folder' Genshin Impact\Genshin Impact Game\', and renamed them as 'Genshinimpact.exe' and 'Genshinimpact_Data', no other change. But currently maybe due to the latest game update, error message 'Data exception....' will be shown and fail to login the game if 'Genshinimpact.exe' and 'Genshinimpact_Data' exist in the game folder. I have to delete both of them in order to login game normally.

lanylow commented 6 months ago

Do you know how to use the command prompt? If so, could you please cd into Genshin's installation folder and run certutil -hashfile UnityPlayer.dll MD5, then send the result here?

KantaiMG commented 6 months ago

Result is 8b4923915fdc890a33628b5eb9ee6b41

lanylow commented 6 months ago

Mine is not the same, which means that the files of the Chinese version are not the same. Making this tool compatible with the Chinese version will require a bit more work than just scanning for YuanShen.exe. I might do that at some point but as I said before it introduces some problems for me.

myandrew commented 2 weeks ago

I just change the Genshinimpact.exe in the code into Yuanshen.exe in these two files entry.cpp, main.rs, then I compiled it myself and it worked. I am also a player of the Chinese version.

oloukou1 commented 2 weeks ago

Confirmed the method described in the last post works for me too, on CNREL 4.7. Thanks for the tips! In fact for switching CN/OS server, we don't really need two 80GB installation. There is a actively maintained third party launcher, Starward, which support server switching( under game options/repair the game) by delta updating, only need about 1GB downloading during the first switching after every new release.

lanylow commented 6 hours ago

I have downloaded the Chinese version using the launcher mentioned in the comment above, and made the necessary changes to make this tool work with it. I published the new version in the latest release.