CollapseLauncher / Collapse

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

[Request]: "Mobile UI" or "touchscreen UI" options in "Graphic Settings" page #466

Open XieyilinMain opened 3 months ago

XieyilinMain commented 3 months ago

Is your request related to a problem?

No

How is the feature request related to the problem?

Here are some scenario of using mobile UI on Windows version of Genshin Impact: gaming via Moonlight to cellphones, gaming on Windows pads without any keyboards.

Describe your proposed solution

Add use_mobile_platform -is_cloud 1 -platform_type CLOUD_THIRD_PARTY_MOBILE arguments may help.

args

Genshin Impact now shows touchscreen UI.

mobile UI

Describe alternatives you've considered

If this is not available in "Graphic Settings" page, demostrate these arguments in wiki is also a great idea.

Additional context

No response

bagusnl commented 3 months ago

Hi^^. Thanks for the improvement request, I'll work on it.

I wonder does other hoyo games have similar arguments override for it. So far HSR stuck at black screen using the same command arguments, and HI3 doesn't react at all with it (arguably it kinda doesn't need it because how they do their inputs)

bagusnl commented 3 months ago

Feature added with https://github.com/CollapseLauncher/Collapse/commit/4625ffae756e767dc0ee717b62b1bf2341ba5681

If you want to try you can download the latest nightly here https://github.com/CollapseLauncher/Collapse/actions/runs/9113586519 Just extract and run, dont replace anything

ubdjshdb commented 3 months ago

I wonder does other hoyo games have similar arguments override for it.

Hi! Did some work figuring out what HSR requires to achieve the same result. Just specifying the platform type breaks the game because it also expects that you specify the graphics settings via the -graphics_setting argument. This will also hide the in-game graphics settings.

They are B64-encoded, so for example, to run with these graphics settings:

{"FPS": 60, "EnableVSync": true, "RenderScale": 1.0, "ResolutionQuality": 3, "ShadowQuality": 3, "LightQuality": 3, "CharacterQuality": 3, "EnvDetailQuality": 3, "ReflectionQuality": 3, "SFXQuality": 3, "BloomQuality": 3, "AAMode": 2}

you need to specify the following arguments: StarRail.exe -is_cloud 1 -platform_type CLOUD_WEB_TOUCH -graphics_setting eyJGUFMiOiA2MCwgIkVuYWJsZVZTeW5jIjogdHJ1ZSwgIlJlbmRlclNjYWxlIjogMS4wLCAiUmVzb2x1dGlvblF1YWxpdHkiOiAzLCAiU2hhZG93UXVhbGl0eSI6IDMsICJMaWdodFF1YWxpdHkiOiAzLCAiQ2hhcmFjdGVyUXVhbGl0eSI6IDMsICJFbnZEZXRhaWxRdWFsaXR5IjogMywgIlJlZmxlY3Rpb25RdWFsaXR5IjogMywgIlNGWFF1YWxpdHkiOiAzLCAiQmxvb21RdWFsaXR5IjogMywgIkFBTW9kZSI6IDJ9.

Hope this helps!

bagusnl commented 3 months ago

Thanks @ubdjshdb !

Support for mobile mode on StarRail is added you can try by using this artifact https://github.com/CollapseLauncher/Collapse/actions/runs/9164809891

bagusnl commented 3 months ago

An update that include this fix already been published on 1.80.5, we'll close this issue ticket. If you have any problem, don't hesitate to reopen this or make a new ticket.

Thank you for using Collapse Launcher <3

bagusnl commented 2 months ago

Reopening this in case someone have a clue on Zenless Zone Zero's Mobile mode

ubdjshdb commented 2 months ago

Took a look at the zzz-settings branch, setting LocalUILayoutPlatform in GeneralData to 1 seems to be enough for ZZZ

image image

ubdjshdb commented 2 months ago

Took a look at the zzz-settings branch, setting LocalUILayoutPlatform in GeneralData to 1 seems to be enough for ZZZ

Nevermind, apparently the joystick doesn't work so you can't walk. Other buttons work fine though

Fyrlord commented 1 month ago

Any news about this feature ?

Also, I wanted to try the LocalUILayoutPlatform parameter but it seems it isn't a simple shortcut option... Can you tell me how it's supposed to be set ?

xkkdd commented 1 month ago

Took a look at the zzz-settings branch, setting LocalUILayoutPlatform in GeneralData to 1 seems to be enough for ZZZ

image image

Where is the link to the zzz-settings branch? Could you please share it?

bagusnl commented 1 month ago

Since ZZZ Settings is pretty non-trivial to edit yourself, use the canary build from here https://github.com/CollapseLauncher/Collapse/actions/runs/10235591335 EDIT: New link due to upstream bug https://github.com/CollapseLauncher/Collapse/actions/runs/10235652464 Do not replace your current Collapse install with this build, only use it for testing!