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

ModTable::Get().GetModIndex giving the wrong index #211

Open
kksvt opened this issue Jul 11, 2023 · 3 comments
Open

ModTable::Get().GetModIndex giving the wrong index #211

kksvt opened this issue Jul 11, 2023 · 3 comments
Labels
need info for the bugs that don't have a clear reproduction or miss critical info unconfirmed-bug bugs that aren't confirmed, and haven't other labels

Comments

@kksvt
Copy link

kksvt commented Jul 11, 2023

If Oblivion.esm isn't checked in the load order in Launcher->Data Files (which appears to be the default setting for certain versions of the game) it will still be loaded, however it will cause ModTable::Get().GetModIndex to return a wrong index for all masters and plugins (shifted by one), as Oblivion.esm will not be an entry in the list of active mods.

@llde
Copy link
Owner

llde commented Sep 15, 2023

Hi, I tryed but can't reproduce, can you give me exact steps?

@llde llde added need info for the bugs that don't have a clear reproduction or miss critical info unconfirmed-bug bugs that aren't confirmed, and haven't other labels labels Sep 15, 2023
@kksvt
Copy link
Author

kksvt commented Sep 16, 2023

  1. Run the Oblivion Launcher.
  2. Click on Data Files.
  3. Uncheck Oblivion.esm (Master File)
  4. Click on Ok to close the Data Files window.
  5. Click on Play to launch the game.
  6. Oblivion.esm will no longer be the 1st (0th) mod in the array returned by DataHandler::GetActiveModList() (even though the master file is still very much active), causing all mod indices to be shifted by one in the returned array, which in turns causes problems when a plugin needs to determine the correct index.

I tested it on vanilla Oblivion (Steam and GOG) with just OBSE and it persists.

@llde
Copy link
Owner

llde commented Sep 16, 2023

I did test these exact steps. Oblivion.exe is still present.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need info for the bugs that don't have a clear reproduction or miss critical info unconfirmed-bug bugs that aren't confirmed, and haven't other labels
Projects
None yet
Development

No branches or pull requests

2 participants