07th-mod / 07th-mod/python-patcher
Sharedasset detection using checksum can fail when switching between proton and native on second install [no fix needed?]
- Ngôn ngữ chính
- JavaScript
- Star
- 214
- Fork
- 12
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
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.
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Hướng nghiên cứu
Xem xét logic phát hiện tài nguyên dùng chung của trình cài đặt, có thể nằm trong một tệp xử lý checksum hoặc quản lý tài nguyên. Vấn đề mô tả một kịch bản trong đó tệp sao lưu (sharedassets0.assets.backup) từ bản cài đặt Proton gây ra sự không khớp trên một bản cài đặt Native tiếp theo. Bắt đầu bằng cách tìm nơi checksum được tính cho sharedassets0.assets và bản sao lưu của nó. Hiểu luồng cài đặt để xem bản sao lưu được tạo ra như thế nào và khi nào nó bị ghi đè. Việc kiểm tra liên quan đến việc mô phỏng các bản cài đặt chuyển đổi giữa chế độ Proton và Native.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- javascript
- Lĩnh vực
- cli, tooling
- Loại issue
- Lỗi
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 45/100