Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add plugin setting to enable/disable LOOT & add loot & display name #36

Merged
merged 7 commits into from
May 26, 2024

Conversation

Twinki14
Copy link
Contributor

@Twinki14 Twinki14 commented May 17, 2024

Motivations

While LOOT has been always disabled for this plugin, the FalloutNV LOOT list has been recieving a lot of recent attention https://github.com/loot/falloutnv/commits/v0.21/, so it'd be nice to start offering the option to enable LOOT sorting

It's worth noting that TTW-related mods are lumped into the FalloutNV LOOT list loot/falloutnv@da3c48e

Modifications

  • Add a plugin setting to enable the LOOT sorting button
  • Add displayGameName() override so that we can purely display a more accurate name for this plugin, "TTW" doesn't really cut it
  • Add lootGameName() override so that LOOT can successfully be ran for this plugin (TTW is not a valid LOOT game)
  • Add .clang-format, it was missing

… & nexusName

# Motivations
While LOOT has been always disabled for this plugin, the FalloutNV LOOT list has been recieving a lot of recent attention https://github.com/loot/falloutnv/commits/v0.21/, so it'd be nice to start offering the option to enable LOOT sorting

# Modifications
- Add a plugin setting to enable the LOOT sorting button
- Updated `gameName()` to "Tale of Two Wastelands" which is more appropriate than just "TTW"
- LOOT wasn't working out of the box as the `gameShortName()` was "TTW", this needed to be changed to "FalloutNV" so that the LOOT cli could be started with the appropriate game switch
- `gameNexusName()` was empty, FalloutNV is appropriate enough for this, while TTW installs can contain both Fallout NV and Fallout 3 nexus mods, 99% of the time Nexus mods will come from the Fallout NV nexus
@Twinki14 Twinki14 changed the title Add plugin setting to enable/disable LOOT, update ..name()'s Add plugin setting to enable/disable LOOT, update ..name()'s May 17, 2024
src/game_ttw_en.ts Outdated Show resolved Hide resolved
src/gamefalloutttw.cpp Outdated Show resolved Hide resolved
src/gamefalloutttw.cpp Outdated Show resolved Hide resolved
@Twinki14 Twinki14 marked this pull request as draft May 17, 2024 17:05
@Silarn
Copy link
Member

Silarn commented May 17, 2024

This is more of a meta conversation but the reason these game plugins generally include the gamebryo translations was because translations are loaded based on plugin filenames. Since gamebryo is not an actual plugin, gamebryo translations are not loaded on their own.

I think maybe we simplified this at some point but I'm still concerned that those translations are going to be lost again if they aren't in the final translation file(s).

Twinki14 added a commit to Twinki14/modorganizer that referenced this pull request May 20, 2024
# Motivations
- ModOrganizer2/modorganizer-game_ttw#36 (comment) Surfaced desires to change the Fallout TTW plugin's gameName to something more obvious, from TTW to Tale of Two Wastelands, but that would cause existing profiles to break, `displayGameName()` added in ModOrganizer2/modorganizer-uibase#141 gives us the option to change the way the game plugin is displayed, but leaves the existing integral `gameName()` alone
- Similarly ModOrganizer2/modorganizer-game_ttw#36 attempted to fix the sort button LOOT cli argument by changing the `gameShortName()`, as 'TTW' isn't a valid option for LOOT, but that comes with some pretty concerning possible issues

# Modifications
- Use `displayGameName()` in create instance dialogs & the main window, this doesn't cover all places `gameName()` was being used for purely display reasons, but it covers the bulk
- Use `lootGameName()` instead of `gameShortName()` for LOOT cli initiation
@Twinki14 Twinki14 changed the title Add plugin setting to enable/disable LOOT, update ..name()'s Add plugin setting to enable/disable LOOT & add loot & display name May 22, 2024
@Twinki14 Twinki14 marked this pull request as ready for review May 22, 2024 21:37
@Twinki14
Copy link
Contributor Author

PR is ready again, note that it relies on ModOrganizer2/modorganizer-uibase#141 to be merged first, and that a build failure is expected until then

@Twinki14 Twinki14 requested a review from Holt59 May 23, 2024 13:00
@Holt59 Holt59 merged commit e1a0b1e into ModOrganizer2:master May 26, 2024
@Twinki14 Twinki14 deleted the loot-ttw branch June 9, 2024 00:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants