Mod selection in GameVersionScene

Geschlossen
#395 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 2 Tagen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
42/100
Issue-Typ
Feature
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
csharp, unity
Bereich
game-dev

Rechercherichtung

Start in GameVersionScene, where the Gothic 1 and 2 buttons are chosen, and find the DeveloperConfig EnableMod preselect. Then trace IsModActive, ModCacheSuffix and LoadGothicInis to see where the mod selection must be read, and set it before LoadGothicInis runs. Done means a scanned list of system/*.ini mods appears in both VR and Flat UI, and the manual test steps in the issue pass.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

feature

Summary

Mods can't be selected in builds, only via DevConfig in Inspector right now.

Scope

  • After the user picks Gothic 1 or 2, show a list of installed mods below the game buttons, plus a "Vanilla" entry OR show it directly in the list? All the mods? (One click less)
  • Find mods by looking for *.ini files in /system/, excluding Gothic.ini and GothicGame.ini.
  • Selecting an entry sets the mod INI filename, and the mod root, which is the Gothic root itself, since the INI sits in its system/.
  • The Editor DeveloperConfig override (EnableMod) should still work, for example by preselecting the entry.
  • IsModActive, ModCacheSuffix and LoadGothicInis must read the selection. Set it before LoadGothicInis.
  • Use Logger.Log with a LogCat. Show the list in both VR and Flat UI.

Open questions

  • A mod with its own folder (e.g. C:/Gothic Mods/...) isn't found by scanning the Gothic root's system/. Decide whether to also scan a mods directory or support a user-added path.
  • Whether Gothic.ini and GothicGame.ini are the only files to exclude.

Manual test

  1. Start a build with no DeveloperConfig preselect. G1 and G2 appear, then the mod list.
  2. Vanilla boots as before.
  3. A mod INI boots that mod, and the cache folder carries its mod… suffix.
  4. With PreselectGameVersion on, the mod list still appears, or the preselect is skipped when a mod is needed.
Vorherrschende Sprache
C#
Sterne
33
Forks
1
Ø Merge
1 T. 21 Std.
Gemergte PRs (30 T.)
56

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus Gothic-Unity-Project/Gothic-Unity

Alle Issues in Gothic-Unity-Project/Gothic-Unity

Ähnliche Issues

Weitere Issues zu C#

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.