Mod selection in GameVersionScene
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 42/100
Research direction
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.
Written by the indexing model from the issue text.
Description
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
- Start a build with no DeveloperConfig preselect. G1 and G2 appear, then the mod list.
- Vanilla boots as before.
- A mod INI boots that mod, and the cache folder carries its mod… suffix.
- With PreselectGameVersion on, the mod list still appears, or the preselect is skipped when a mod is needed.
- Dominant language
- C#
- Stars
- 33
- Forks
- 1
- Avg merge
- 1d 17h
- Merged PRs (30d)
- 51
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Gothic-Unity-Project/Gothic-Unity
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 69/100
Gothic-Unity-Project/Gothic-Unity#487 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 49/100
Gothic-Unity-Project/Gothic-Unity#489 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 42/100
Gothic-Unity-Project/Gothic-Unity#488 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 55/100
Gothic-Unity-Project/Gothic-Unity#486 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 48/100
Gothic-Unity-Project/Gothic-Unity#485 ·
Maintainers usually reply within 1 day
All issues in Gothic-Unity-Project/Gothic-Unity
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Facepunch/sbox-public#12284 ·
Maintainers usually reply within 6 days
-
bug untriaged
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
CarlosAdrianM/Nesto#610 ·
-
[bug-bash] print maps a missing item's HTTP 404 to exit 1 instead of documented not-found exit 5Openbug bug-bash
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Azure/CosmosDBShell#279 ·
Maintainers usually reply within 1 day