Mod selection in GameVersionScene

已關閉
#395 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 2 天內回覆

還沒有人認領這個 Issue。

評估

難度
4/5
預估耗時
3-5 天
新手友好度
42/100
Issue 類型
功能
描述清晰度
基本清楚
活躍度
活躍
技術堆疊
csharp, unity
領域
game-dev

研究方向

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.

由索引模型根據 Issue 內容生成。

描述

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.
主要語言
C#
星號
33
分支
1
平均合併
1 天 23 小時
30 天內合併 PR
57

環境準備

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

Gothic-Unity-Project/Gothic-Unity 的其他 Issue

查看 Gothic-Unity-Project/Gothic-Unity 的全部 Issue

相似的 Issue

更多 C# Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。