Fresh install: one game found skips the pre-caching, two games found show no selection

Aberta
#486 0 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 2 dias

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
4/5
Tempo estimado
3-5 dias
Facilidade para iniciantes
55/100
Tipo de issue
Bug
Clareza
Razoavelmente clara
Status de atividade
Ativa
Stack de tecnologia
csharp, unity
Domínio
game-dev

Direção de pesquisa

Start with GameVersionScene.Init and compare the preselected-game path with the no-preselection paths; the issue also points to InitPhase2, SceneLogo, and ScenePreCaching. Reproduce both cases on a fresh install with one and then two game folders; done means one game pre-caches before loading and two games offer a selection instead of leaving the player at a black screen.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

bug
Description

GameVersionScene.Init without a preselected game:

  • G1 and G2 found: it only logs "Gothic1 and Gothic2 installation found." There is no selection UI, so the player sees black with the hands.
  • Only one game found: it runs InitPhase2 and loads SceneLogo, not ScenePreCaching like the preselected path. Without a static cache (first start) every world load fails, both new game and load game:
    DirectoryNotFoundException: Directory not found: .../files/Cache/Gothic1 (StaticCacheService.LoadGlobalCache).
Expected Behavior
  • Both found: the player can choose.
  • One found: the pre-caching runs first.
Actual Behavior

See above.

Reproduction Steps
  1. Quest build with PreselectGameVersion off, game data in files/Gothic1 and files/Gothic2. Result: black, hands only.
  2. Remove files/Gothic2 and start again. The menu shows, but new game or load game doesn't get into the world.

Environment Information

  • Reproducibility: Always
  • Platform: all (seen on Quest 3; the editor usually preselects a game, so it doesn't show there)
  • Game Version: main 83a1aebd2
  • Is this a fresh install or an update? Fresh
Notes
  • BoroBongo's game profile menu (split/12, #475, EnableGameProfiles in GameSettings.json) gives a selection that runs the pre-caching. The one-game path is unchanged there.
  • Related: #395.
  • Fix for one game: load ScenePreCaching, like the preselected path.
Linguagem predominante
C#
Estrelas
33
Forks
1
Merge médio
1d 21h
PRs com merge (30d)
56

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de Gothic-Unity-Project/Gothic-Unity

Todas as issues de Gothic-Unity-Project/Gothic-Unity

Issues semelhantes

Mais issues de C#

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.