Scighost / Starward

Game Launcher for miHoYo - 米家游戏启动器
https://starward.scighost.com
MIT License
3.54k stars 165 forks source link

[Bug] 使用Starward更新崩坏:星穹铁道2.6版本出现的问题 #1136

Open Mirror1934 opened 3 weeks ago

Mirror1934 commented 3 weeks ago

Checklist

Description

两天前我使用官方启动器进行了2.6版本的预下载操作,今天早上我使用Starward进行更新,更新完成后发现游戏文件大小异常。考虑到此次官方对资源文件进行了调整,推测Starward在更新时直接安装了新的资源文件,而旧文件并未删除。

Reproduction Steps

点击更新后Starward校验了更新包的完整性,然后执行解压操作,更新程序退出。但更新完成后,我没有立即打开游戏,而是使用Starward的一键修复功能对游戏文件进行校验,此时出现异常: 1.校验完成后发现文件缺失,大约缺失了2G大小,Starward对缺失的文件进行下载; 2.补全缺失后可以正常进入游戏,但游戏文件大小明显异常,为65.4G; 3.在另一台PC上使用官方启动器更新游戏,下载完成后游戏大小为44.3G; 4.对比两种更新方式的游戏文件目录,发现Starward并未删除deletefiles列表(还有一个hdiff开头的文件,应该也是校验用的,但由于异常的游戏文件我已删除重新下载,故无法完整描述); 5.详细查看游戏文件目录,发现使用Starward更新的游戏目录下StarRail_Data\StreamingAssets\Asb\Windows文件夹内的文件数量明显多于官方启动器更新的文件数量,多出来的11G文件都在此处。

Expected Behavior

经过以上步骤,考虑到此次更新的预下载资源包大小为12G左右,故推测Starward在更新时未能正确删除旧版资源,导致文件大小异常。

由于我在更新前未检查游戏大小,并在反馈前删除了异常的游戏文件(以便重新下载),故无法完全确定此故障与使用Starward更新2.6版本有关,也无法提供故障截图与更多详细信息,希望有其他有条件复现此故障(或已使用了Starward完成了2.6版本更新)的人多加留意,验证此故障是否存在。若其他人无法复现,请关闭此issue。

此外还有一个功能建议:既然Starward可以实现游戏完整性校验,是否可以反向利用此功能,删除游戏目录内不需要的游戏文件,若能实现此功能,在游戏大小异常时就无需全部删除重新下载了。

Screenshots

No response

Starward Version

0.13.3

Windows Version

22631.4317

Log

[07:19:14.128] [INFO] 
Welcome to Starward v0.13.3
System: Microsoft Windows NT 10.0.22631.0
Command Line: "D:\Program Files\Starward\app-0.13.3\Starward.dll"

[07:19:14.157] [INFO] Starward.Services.DatabaseService
Database path is 'D:\Depository\Documents_orig\Starward'

[07:19:14.180] [INFO] Starward.Services.DatabaseService
Database version is 11, target version is 11.

[07:19:14.265] [INFO] Starward.Pages.MainPage
Last game region is hk4e_cn

[07:19:14.280] [INFO] Starward.Pages.MainPage
Navigate to "GameLauncherPage" with param hk4e_cn

[07:19:15.136] [INFO] Starward.Pages.GameLauncherPage
Game install path of hk4e_cn: "D:\Program Files\miHoYo\Genshin Impact Game"

[07:19:15.158] [INFO] Starward.Pages.GameLauncherPage
Acutal version and gamebiz of hk4e_cn is "5.1.0".

[07:19:16.051] [INFO] Starward.Services.UpdateService
Start to check update (Preview: False, Arch: X64)

[07:19:16.245] [INFO] Starward.Services.UpdateService
Current version: "0.13.3", latest version: "0.13.3", ignore version: null

[07:19:23.775] [INFO] Starward.Pages.MainPage
Change game region to hkrpg_cn

[07:19:23.775] [INFO] Starward.Pages.MainPage
Navigate to "GameLauncherPage" with param hkrpg_cn

[07:19:23.863] [INFO] Starward.Pages.GameLauncherPage
Game install path of hkrpg_cn: "D:\Program Files\miHoYo\Star Rail Game"

[07:19:23.883] [INFO] Starward.Pages.GameLauncherPage
Acutal version and gamebiz of hkrpg_cn is "2.5.0".

[07:22:21.916] [INFO] Starward.Services.Download.InstallGameService
Write config.ini (game_version="2.6.0")

[07:22:21.931] [INFO] Starward.Pages.GameLauncherPage
Game install path of hkrpg_cn: "D:\Program Files\miHoYo\Star Rail Game"

[07:22:21.933] [INFO] Starward.Pages.GameLauncherPage
Acutal version and gamebiz of hkrpg_cn is "2.6.0".

[07:22:31.527] [INFO] Starward.Services.UpdateService
Start to check update (Preview: False, Arch: X64)

[07:22:31.669] [INFO] Starward.Services.UpdateService
Current version: "0.13.3", latest version: "0.13.3", ignore version: null

[07:22:36.496] [INFO] Starward.Pages.MainPage
Navigate to "GachaLogPage" with param hkrpg_cn

[07:22:37.762] [INFO] Starward.Pages.MainPage
Navigate to "ScreenshotPage" with param hkrpg_cn

[07:22:37.838] [INFO] Starward.Pages.ScreenshotPage
Screenshot folder is "D:\Program Files\miHoYo\Star Rail Game\StarRail_Data\ScreenShots"

[07:22:40.915] [INFO] Starward.Pages.MainPage
Navigate to "SelfQueryPage" with param hkrpg_cn

[07:22:41.898] [INFO] Starward.Pages.MainPage
Navigate to "HoyolabToolboxPage" with param hkrpg_cn

[07:22:41.925] [INFO] Starward.Services.GameRecordService
Change region to China.

[07:22:45.004] [INFO] Starward.Pages.MainPage
Navigate to "GameSettingPage" with param hkrpg_cn

[07:22:46.048] [INFO] Starward.Pages.MainPage
Navigate to "GameLauncherPage" with param hkrpg_cn

[07:22:46.123] [INFO] Starward.Pages.GameLauncherPage
Game install path of hkrpg_cn: "D:\Program Files\miHoYo\Star Rail Game"

[07:22:46.145] [INFO] Starward.Pages.GameLauncherPage
Acutal version and gamebiz of hkrpg_cn is "2.6.0".

[07:22:47.546] [INFO] Starward.Pages.MainPage
Navigate to "GameSettingPage" with param hkrpg_cn

[07:22:50.362] [INFO] Starward.Pages.MainPage
Navigate to "GameLauncherPage" with param hkrpg_cn

[07:22:50.438] [INFO] Starward.Pages.GameLauncherPage
Game install path of hkrpg_cn: "D:\Program Files\miHoYo\Star Rail Game"

[07:22:50.456] [INFO] Starward.Pages.GameLauncherPage
Acutal version and gamebiz of hkrpg_cn is "2.6.0".

[07:28:05.315] [INFO] Starward.Services.Download.InstallGameService
Write config.ini (game_version="2.6.0")

[07:28:05.320] [INFO] Starward.Pages.GameLauncherPage
Game install path of hkrpg_cn: "D:\Program Files\miHoYo\Star Rail Game"

[07:28:05.323] [INFO] Starward.Pages.GameLauncherPage
Acutal version and gamebiz of hkrpg_cn is "2.6.0".

Additional Context

No response

herta0426 commented 3 weeks ago

如何清理这些文件 我没发现starward更新 然后也是这样操作的导致多了一堆hdif文件

HeroTch commented 3 weeks ago

Mirror1934 Says

此外还有一个功能建议:既然Starward可以实现游戏完整性校验,是否可以反向利用此功能,删除游戏目录内不需要的游戏文件,若能实现此功能,在游戏大小异常时就无需全部删除重新下载了。

如何清理这些文件 我没发现starward更新 然后也是这样操作的导致多了一堆hdif文件

~你可以尝试修复游戏~ #1149

starward-bot[bot] commented 3 weeks ago

@raging-flames deleted the following comment published at 2024-10-24 00:34:56 +00:00 updated at 2024-10-24 00:34:56 +00:00

Mirror1934 Says

此外还有一个功能建议:既然Starward可以实现游戏完整性校验,是否可以反向利用此功能,删除游戏目录内不需要的游戏文件,若能实现此功能,在游戏大小异常时就无需全部删除重新下载了。

如何清理这些文件 我没发现starward更新 然后也是这样操作的导致多了一堆hdif文件

你可以尝试修复游戏

“一键修复”校验过后也并没有删除多余的资源

pbxs666 commented 3 weeks ago

解决方法 https://github.com/Scighost/Starward/issues/1149