Hmm. Might be a serious bug here. While playing a fairly new character with fewer than 10 known spells, i went enchantment shopping on a whim and discovered shortly after that my personal spellbook exploded with 20+ new spells i've never properly bought or intended to learn. Curiously it was only restoration and destruction spells, so i checked the NPC i shopped from and sure enough her specialties were restoration and destruction. My guess is that the mod script shares the enchanting NPC's spellbook temporarily? Methinks the sharing of knowledge wasn't as temporary as intended.
My low-iq barbarian just got a free scholarship and bachelor's degree in magic he's too stupid to make use of.
I wasn't able to replicate this in a new morrowind install with only Expeditious Exit and Skip Tutorials enabled alongside my mod. My mod does rely on hitting the ok/cancel button in the enchantment UI itself and anything that modifies that UI element is likely to not be compatible. How did you close the enchantment window?
Alternatively (In addition to), if you'd be willing to look at/share the mwse log we could see if there are any errors coming from my mod.
This is strange. So, i just created a new character with zero spells or skills. Empty spellbook. i COC'd my way to Balmora Mage's Guild made a quicksave to experiment. i talked with Galbedir and took a gander at her enchantment options ONCE, clicked cancel and goodbye, and POOF my spellbook was full of destruction spells. Success! There's only 2 ways of leaving menus: Clicking cancel (or buy but i didn't make anything) or by pressing tab. So i reloaded the quicksave with the empty spellbook and tried all combinations of clicking cancel and goodbye out of enchanting and dialogue menus. i even clicked a few dialogue choices, entered the barter and persuade windows for good measure (which i did NOT on my first try), and for some reason my spellbook is still empty. No bug after 10 or so attempts. Reload after reload, even restarted the game, i tried different combos of clicking or tabbing and i've yet to replicate the bug more than that first time.
i am using "ui expansion" (https://www.nexusmods.com/morrowind/mods/46071), and it's the only mod i can think of that could cause problems but it doesn't change the enchanting ui in any way that i can tell. How can i check the MWSE log and what should i look for?
Looking for culprit of getting random spells, I searched lua files and it was first that adds spells to player. Date of download also would match time when it started to appear. So far it triggers every two or so sessions. Now when talking to enchanter that probably triggered it earlier today, nothing happens ofc. Looking into code, clear function runs on exit from enchantment menu. While add function on activation of npc. How could that work? And it works most of the time. In my case, I never entered it in the first place. I just talked to/bartered with npc and got spells added.
@kawaitei In the mwse.log, all of my mod's line entries begin with EI: or if there's a lua error will have EnchantmentImproved in them named after the folder structure. UI Expansion wouldn't cause any issues with my mod. That mod adds features to existing UI Elements and doesn't rewrite whole menus like some other mods might.
@tanstele The spells need to be added before the enchantment window opens because the enchantment window won't update the effects if added while in the menu. I explicitly don't update the GUI to prevent them from appearing in your spellbook while explicitly updating the GUI on exit to make sure they won't show up later.
That being said. I did some more testing and added UI Expansion during my tests but was not able to reproduce this. For now, if this is still a problem, please try the new optional file. This includes a backup entry for the menuExit event that will clear spells after you close the dialogue menu. See if that fixes the issue you're experiencing with the spells.
Glad to hear that fix worked for you. Since it doesn't cause any issues with my installation either, I'll go ahead and just make that the primary file. Thanks for testing it.
A Cure common disease on self enchantment is only 35
A 20 Area cure common disease on target is 106
Isn't that about the price of potion? For rechargable trinket with same effect. But vanilla random enchanted items also have strange prices. Like dozen septims for ring of toxic cloud with poison 2-60 pts in 20 ft for 10 secs that's gonna clean any den of non-argonians with decent roll.
12 comments
While playing a fairly new character with fewer than 10 known spells, i went enchantment shopping on a whim and discovered shortly after that my personal spellbook exploded with 20+ new spells i've never properly bought or intended to learn. Curiously it was only restoration and destruction spells, so i checked the NPC i shopped from and sure enough her specialties were restoration and destruction. My guess is that the mod script shares the enchanting NPC's spellbook temporarily? Methinks the sharing of knowledge wasn't as temporary as intended.
My low-iq barbarian just got a free scholarship and bachelor's degree in magic he's too stupid to make use of.
Alternatively (In addition to), if you'd be willing to look at/share the mwse log we could see if there are any errors coming from my mod.
There's only 2 ways of leaving menus: Clicking cancel (or buy but i didn't make anything) or by pressing tab. So i reloaded the quicksave with the empty spellbook and tried all combinations of clicking cancel and goodbye out of enchanting and dialogue menus. i even clicked a few dialogue choices, entered the barter and persuade windows for good measure (which i did NOT on my first try), and for some reason my spellbook is still empty. No bug after 10 or so attempts. Reload after reload, even restarted the game, i tried different combos of clicking or tabbing and i've yet to replicate the bug more than that first time.
i am using "ui expansion" (https://www.nexusmods.com/morrowind/mods/46071), and it's the only mod i can think of that could cause problems but it doesn't change the enchanting ui in any way that i can tell. How can i check the MWSE log and what should i look for?
time when it started to appear. So far it triggers every two or so sessions. Now when talking to enchanter that probably triggered it earlier today, nothing happens ofc.
Looking into code, clear function runs on exit from enchantment menu. While add function on activation of npc. How could that work? And it works most of the time. In my case, I never entered it in the first place. I just talked to/bartered with npc and got spells added.
@tanstele The spells need to be added before the enchantment window opens because the enchantment window won't update the effects if added while in the menu. I explicitly don't update the GUI to prevent them from appearing in your spellbook while explicitly updating the GUI on exit to make sure they won't show up later.
That being said. I did some more testing and added UI Expansion during my tests but was not able to reproduce this. For now, if this is still a problem, please try the new optional file. This includes a backup entry for the menuExit event that will clear spells after you close the dialogue menu. See if that fixes the issue you're experiencing with the spells.