07th-mod / 07th-mod/python-patcher
Sharedasset detection using checksum can fail when switching between proton and native on second install [no fix needed?]
- Lenguaje dominante
- JavaScript
- Estrellas
- 214
- Forks
- 12
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
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.
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Línea de trabajo
Examine la lógica de detección de recursos compartidos del instalador, probablemente en un archivo que maneja sumas de verificación o gestión de recursos. El problema describe un escenario donde el archivo de respaldo (sharedassets0.assets.backup) de una instalación de Proton provoca una discrepancia en una instalación Nativa posterior. Comience por encontrar dónde se calculan las sumas de verificación para sharedassets0.assets y su respaldo. Comprenda el flujo de instalación para ver cómo se crea el respaldo y cuándo se sobrescribe. Las pruebas implican simular instalaciones que cambian entre modos Proton y Nativo.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- javascript
- Área
- cli, tooling
- Tipo de issue
- Error
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 45/100