07th-mod / 07th-mod/python-patcher
Sharedasset detection using checksum can fail when switching between proton and native on second install [no fix needed?]
- 主要言語
- JavaScript
- スター
- 214
- フォーク
- 12
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
For some chapters (eg. ch8), installer chooses sharedassets depending on the checksum of the original sharedassets0.assets.
Because our installer overwrites the sharedassets0.assets file, we also check the checksum of the sharedassets0.assets.backup file to see the "original" sharedassets file. This .backup file is created by our installer when you install the mod.
However, if you:
- First install using say Proton, it will create a sharedassets0.assets.backup file from the Proton install.
- Switch back to Native. This will overwrite the sharedassets0.assets with the Native version
- Perform an install of the mod the first time, the install will work OK (it will overwrite the sharedassets0.assets with the mod version)
- Because a .backup file already exists, this install won't overwrite the sharedassets0.assets.backup file
- Now, when you perform the second install or update, the sharedassets0.assets will be the mod version, which the installer does not recognise. Also, the sharedassets0.assets.backup file is from the Proton install, which the mod also does not recognize. This will cause an install error.
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
調査の方向性
インストーラーの共有アセット検出ロジック(おそらくチェックサムやアセット管理を扱うファイル内)を調べてください。この課題は、Protonインストールからのバックアップファイル(sharedassets0.assets.backup)が、後続のNativeインストールで不一致を引き起こすシナリオを説明しています。まず、sharedassets0.assetsとそのバックアップのチェックサムが計算される場所を見つけてください。バックアップが作成され、いつ上書きされるかを確認するために、インストールフローを理解します。テストには、ProtonモードとNativeモードを切り替えるインストールのシミュレーションが含まれます。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- javascript
- 領域
- cli, tooling
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 45/100