07th-mod / 07th-mod/python-patcher
Sharedasset detection using checksum can fail when switching between proton and native on second install [no fix needed?]
- Linguagem predominante
- JavaScript
- Estrelas
- 214
- Forks
- 12
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Descrição
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.
Guia de contribuição
Nenhum guia de contribuição indexado para este repositório
Direção de pesquisa
Examine a lógica de detecção de ativos compartilhados do instalador, provavelmente em um arquivo que lida com checksums ou gerenciamento de ativos. O problema descreve um cenário em que o arquivo de backup (sharedassets0.assets.backup) de uma instalação Proton causa uma incompatibilidade em uma instalação Native subsequente. Comece encontrando onde os checksums são calculados para sharedassets0.assets e seu backup. Entenda o fluxo de instalação para ver como o backup é criado e quando é sobrescrito. Os testes envolvem simular instalações alternando entre os modos Proton e Native.
Escrita pelo modelo de indexação a partir do texto da issue.
Avaliação
- Stack de tecnologia
- javascript
- Domínio
- cli, tooling
- Tipo de issue
- Bug
- Dificuldade
- 3/5
- Tempo estimado
- 1-2 dias
- Status de atividade
- Estagnada
- Clareza
- Razoavelmente clara
- Facilidade para iniciantes
- 45/100