CollapseLauncher / Collapse

An Advanced Launcher for miHoYo/HoYoverse Games
MIT License
1.35k stars 64 forks source link

[Request]: Launcher cannot locate Genshin when installed through Google Play #541

Closed swhong3517 closed 1 month ago

swhong3517 commented 1 month ago

Is your request related to a problem?

Yes

How is the feature request related to the problem?

No response

Describe your proposed solution

Hi. Just got back into Genshin, installed the game through Google Play PC beta. But when I press "Install/Locate Game" Collapse doesn't seem to recognize the installed version and tries to do a full install instead. Google Play worked on Collapse when I played Genshin last year, so I'm confused on whether if it's a bug or Collapse just doesn't support games downloaded from Google Play anymore.

Describe alternatives you've considered

(None)

Additional context

No response

bagusnl commented 1 month ago

can you send us the link to the launcher for the Google Play PC Beta and also the app.info file inside GenshinImpact_Data folder?

swhong3517 commented 1 month ago

By "launcher", do you mean the link to the Google Play beta download site? Here's the INFO file: https://gofile.io/d/v5AxlN

bagusnl commented 1 month ago

is this the same as this one https://github.com/CollapseLauncher/Collapse/issues/474 ?

swhong3517 commented 1 month ago

Maybe, but I know for a fact that Collapse supported both HI3 and Genshin on Google Play last year. Could this be related to HoyoPlay? The only real difference I noticed when re-installing this game was that it requires you to install HoyoPlay.

bagusnl commented 1 month ago

The app.info file seems correct for Genshin Global region. So as long as the GenshinImpact.exe file is not modified then it should be fine technically

swhong3517 commented 1 month ago

Should I try and reinstall Collapse then? If I uninstall, will it affect games that are directly installed via Collapse?

bagusnl commented 1 month ago

I dont think it will help, try to move config.ini file to different folder as a backup and then locate your installation again in collapse. While at it, send the file here too

swhong3517 commented 1 month ago

Here it is: https://gofile.io/d/71TqtP

swhong3517 commented 1 month ago

Moving the config file doesn't work either.

bagusnl commented 1 month ago

Investigating rn... Google Play beta should have the same config as Global region but idk why it cant detect it

bagusnl commented 1 month ago

Can you try this build https://github.com/CollapseLauncher/Collapse/actions/runs/10042690527 (when its complete, just download the artifact, extract, and run CollapseLauncher.exe)

Open Settings > Open App Data Folder go to _metadatav3 folder and add/replace these 2 files

config_GIGlbGPlay.json stamp.json

MAKE SURE to go to Settings > Clear Metadata and Restart BEFORE opening release version of Collapse

swhong3517 commented 1 month ago

001 002 003 Did as instructed, while the launcher now shows a separate region for Google Play, it still doesn't detect the installed version. Should I just uninstall Genshin and try downloading directly from the launcher?

bagusnl commented 1 month ago

Enable console in the settings and try to locate again. See what the message says

swhong3517 commented 1 month ago

[Warn] [InvokeProp::PreventSleep()] Starting to prevent sleep! [Info] [TryFindGamePathFromExecutableAndConfig] Fail! [Info] Gathering packages information for installation (State: NotInstalled)... [Info] Initializing Sophon Chunk download method with Main Thread: 4, Chunks Thread: 4 and Max HTTP handle: 16

bagusnl commented 1 month ago

I will take a look tomorrow while renting a server. My internet is not fast enough to download the client

studiobutter commented 1 month ago

Leaving it here, config.ini:

channel=1
sub_channel=6
cps=pcgoogle

This should allow Genshin Impact to run with Google Play Safeguard built-in to HoYoverse Login SDK

studiobutter commented 1 month ago

@swhong3517 Let me explain the situation, the one you have the Google Play PC one has a different config.ini file which currently does not work with Collapse. Collapse currently works with the game downloaded from HoYoverse official servers. You could just change the GenshinImpact_Data/config.ini to the following:

channel=1
sub_channel=0
cps=hoyoverse

And do a game detection by going to the region "Global", choose find games, locate where GenshinImpact.exe is and run the game there. Nothing much gonna change except when you want to purchase Welkin or Crystals, you will be greeted with HoYoverse's Payment system instead of Google Play

The Dev Team tho is trying to implement the Google Play version to make the transition from HoYoPlay Launcher to Collapse smoothly

bagusnl commented 1 month ago

image

Can you check the directory in which you point Collapse too? I have tried fully installing Genshin using Gplay version of HoYoPlay and it detects the game just fine

swhong3517 commented 1 month ago

Ok, so I did as @studiobuttermedia said, and it seems to run perfectly fine now (with the exception of payment services). Thanks for all the support! Hoping to see a stable release soon. Oh, and one more thing, are you guys considering adding HI3 support for Google Play too?

bagusnl commented 1 month ago

I'm not sure since HI3 is quite more messy (too much region)

I'll talk to the dev team on implementing a payment system switcher instead to minimize adding too much unnecessary regions

bagusnl commented 1 month ago

Fixed in 1.81.1 https://github.com/CollapseLauncher/Collapse/releases/tag/CL-v1.81.1-pre If you still have problem, reopen this ticket or open another one.

Thanks for the support <3