07th-mod / 07th-mod/python-patcher
Sharedasset detection using checksum can fail when switching between proton and native on second install [no fix needed?]
- Lingua principale
- JavaScript
- Stelle
- 214
- Fork
- 12
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
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.
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Direzione di ricerca
Esamina la logica di rilevamento delle risorse condivise dell'installer, probabilmente in un file che gestisce checksum o gestione delle risorse. Il problema descrive uno scenario in cui il file di backup (sharedassets0.assets.backup) da un'installazione Proton causa una mancata corrispondenza in un'installazione Native successiva. Inizia trovando dove vengono calcolati i checksum per sharedassets0.assets e il suo backup. Comprendi il flusso di installazione per vedere come viene creato il backup e quando viene sovrascritto. I test implicano la simulazione di installazioni che passano tra le modalità Proton e Native.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- javascript
- Ambito
- cli, tooling
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 45/100