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

[Bug] 无法更新 #762

Closed
1 task done
Emm-GOOD opened this issue Apr 23, 2024 · 10 comments
Closed
1 task done

[Bug] 无法更新 #762

Emm-GOOD opened this issue Apr 23, 2024 · 10 comments
Labels
Area: Install Game bug Something isn't working fixed This bug has been fixed Game: Genshin

Comments

@Emm-GOOD
Copy link

Checklist

  • My issue was not mentioned by others, and it is not a duplicate issue.

Description

在更新原神4.6版本时遇到了无法更新的情况

Reproduction Steps

Uploading step.zip…

Expected Behavior

No response

Screenshots

image

Starward Version

0.11.4

Windows Version

19045.4291

Log

[06:58:05.881] [INFO] 
Welcome to Starward v0.11.4
System: Microsoft Windows NT 10.0.19045.0
Command Line: E:\Starward_Portable_0.9.1_x64\Starward\app-0.11.4\Starward.dll download --biz hk4e_cn --loc "F:\Genshin Impact Game" --lang 3

[06:58:05.931] [INFO] Starward.Services.DatabaseService
Database path is 'E:\mihoyo'

[06:58:05.963] [INFO] Starward.Services.DatabaseService
Database version is 8, target version is 8.

[06:58:06.290] [INFO] Starward.Services.InstallGame.GenshinInstallGameService
Initialize install game service
biz: hk4e_cn
path: "F:\Genshin Impact Game"
lang: Chinese, English
repair: False
reinstall: False

[06:58:06.346] [INFO] Starward.Services.InstallGame.GenshinInstallGameService
Start install game, skipVerify: False

[06:58:06.348] [INFO] Starward.Services.InstallGame.GenshinInstallGameService
Prepare for download.

[06:58:07.910] [INFO] Starward.Services.InstallGame.GenshinInstallGameService
Update game.

[06:58:07.916] [INFO] Starward.Services.InstallGame.GenshinInstallGameService
Request head: "https://autopatchcn.yuanshen.com/client_app/update/hk4e_cn/18/zh-cn_4.5.0_4.6.0_hdiff_2a7jHyNe6YWsM3Ob.zip"

[06:58:07.916] [INFO] Starward.Services.InstallGame.GenshinInstallGameService
Request head: "https://autopatchcn.yuanshen.com/client_app/update/hk4e_cn/18/en-us_4.5.0_4.6.0_hdiff_zY5rUsWHTdvLp76g.zip"

[06:58:07.916] [INFO] Starward.Services.InstallGame.GenshinInstallGameService
Request head: "https://autopatchcn.yuanshen.com/client_app/update/hk4e_cn/18/game_4.5.0_4.6.0_hdiff_kiOtCmQKDxTEojvz.zip"

[06:58:11.182] [INFO] Starward.Services.InstallGame.GenshinInstallGameService
Start download files.

[06:58:11.183] [INFO] Starward.Services.InstallGame.GenshinInstallGameService
3 files need to download.

[06:58:11.192] [INFO] Starward.Services.InstallGame.GenshinInstallGameService
Verify downloaded files.

[06:59:21.371] [INFO] Starward.Services.InstallGame.GenshinInstallGameService
Decompress downloaded files.

[06:59:21.372] [INFO] Starward.Services.InstallGame.GenshinInstallGameService
Decompress "game_4.5.0_4.6.0_hdiff_kiOtCmQKDxTEojvz.zip"

[06:59:23.451] [EROR] Starward.Services.InstallGame.GenshinInstallGameService
Install game error.
System.UnauthorizedAccessException: Access to the path 'F:\Genshin Impact Game\YuanShen_Data\Plugins\chrome_100_percent.pak' is denied.
   at Microsoft.Win32.SafeHandles.SafeFileHandle.CreateFile(String, FileMode, FileAccess, FileShare, FileOptions)
   at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String, FileMode, FileAccess, FileShare, FileOptions, Int64, Nullable`1 )
   at System.IO.Strategies.OSFileStreamStrategy..ctor(String, FileMode, FileAccess, FileShare, FileOptions, Int64, Nullable`1)
   at System.IO.Strategies.FileStreamHelpers.ChooseStrategyCore(String, FileMode, FileAccess, FileShare, FileOptions, Int64, Nullable`1)
   at System.IO.FileStream..ctor(String, FileStreamOptions)
   at System.IO.Compression.ZipFileExtensions.ExtractToFile(ZipArchiveEntry, String, Boolean)
   at Starward.Services.InstallGame.InstallGameService.<>c__DisplayClass83_0.<DecompressFileAsync>b__1() in D:\a\Starward\Starward\src\Starward\Services\InstallGame\InstallGameService.cs:line 954
   at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread, ExecutionContext, ContextCallback, Object)
--- End of stack trace from previous location ---
   at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread, ExecutionContext, ContextCallback, Object)
   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task&, Thread )
--- End of stack trace from previous location ---
   at Starward.Services.InstallGame.InstallGameService.DecompressFileAsync(String[] files) in D:\a\Starward\Starward\src\Starward\Services\InstallGame\InstallGameService.cs:line 922
   at Starward.Services.InstallGame.InstallGameService.DecompressAndApplyDiffPackagesAsync(CancellationToken cancellationToken) in D:\a\Starward\Starward\src\Starward\Services\InstallGame\InstallGameService.cs:line 665
   at Starward.Services.InstallGame.InstallGameService.StartAsync(Boolean skipVerify) in D:\a\Starward\Starward\src\Starward\Services\InstallGame\InstallGameService.cs:line 257

Additional Context

除chrome,Starward,华为电脑管家和步骤记录器外的任何程序

@Emm-GOOD Emm-GOOD added the triage Issue needs to be triaged label Apr 23, 2024
@Emm-GOOD
Copy link
Author

Additional Context这里打错了应该是除去chrome,Starward,华为电脑管家和步骤记录器外未打开任何程序

@FLIP0103
Copy link

I got the same problem and had to reinstall the game 😞

@chali1997
Copy link

Starward下载的zip压缩包原神启动器似乎可以识别,然后用原神启动器进行更新

@Emm-GOOD
Copy link
Author

我就是用官方启动器更新的

@FLIP0103
Copy link

我就是用官方启动器更新的

I tried to do that too but mine said "Game not found". Any idea how I could fix it?

@Scighost
Copy link
Owner

@Emm-GOOD 谢谢你的反馈,此问题的原因是文件夹内的部分文件被设置为已读文件,在更新流程中没有对此做适配,后续版本中会修复

@Scighost
Copy link
Owner

I tried to do that too but mine said "Game not found". Any idea how I could fix it?

@FLIP0103 In the official launcher, you should click locate game button and then select folder containing GenshinImpact.exe.

image

@FLIP0103
Copy link

I tried to do that too but mine said "Game not found". Any idea how I could fix it?

@FLIP0103 In the official launcher, you should click locate game button and then select folder containing GenshinImpact.exe.

image

I tried to do that also but even when I locate the folder that has GenshinImpact.exe, it won't detect it. Should I try to move the game file to another folder and try again?

@Fightxing
Copy link

将 Plugins 文件夹的只读属性取消即可解决问题

@DreamToffee
Copy link

DreamToffee commented Apr 24, 2024

@Emm-GOOD谢谢您的反馈,此问题的原因是文件夹内的部分文件被设置为已读取文件,在更新流程中没有为此做调整,后续版本中会修复

我将Plugins的所有文件都取消了-只-读-,目前可以更新了,会有问题吗

@Scighost Scighost added bug Something isn't working Game: Genshin Area: Install Game and removed triage Issue needs to be triaged labels Apr 24, 2024
This was referenced Apr 24, 2024
Scighost added a commit that referenced this issue May 25, 2024
@Scighost Scighost added the fixed This bug has been fixed label May 25, 2024
@Scighost Scighost closed this as completed Jun 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Install Game bug Something isn't working fixed This bug has been fixed Game: Genshin
Projects
None yet
Development

No branches or pull requests

6 participants