You’r asking a lot. I have put so much effort on being careful. Especially after I had an issue with breaking the Rest command for MotB. And that was one lousy line of code. Also, I’m not sure I can selectively remove anything and then add little by little. I’m just at a loss for this. I really don’t know what could have been done to affect those feats.
My guess is it is something in your added content, which I was trying to say with my first post.
Surely, you have a means to strip back some of the files for testing? Even if it just to remove the altered 2da files for a quick test. As a guide, just keep your 2da files in one folder and remove for testing. Put back afterwards. Also, if you are not already doing so, use campaign folder structure and not module saves when working on your module. It allows for easier testing.
I just reverted to the base game. Renamed the Override directory to ONHOLDoverride, which should remove all of the added content. Still the same problem. Now I really don’t know.
Are you using campaign structure saves?
If not, and the module is corrupted, you may have to find an older backup. If you are using campaign structure, then maybe you can try removing some of the files for checks too.
Do you have any other files in place: Haks or UI folders?
Try removing them temporarily too.
Report back with results …
The only other thing I can think of is Clangeddin’s Level 160 Max mod. It actually requred the use of a new .exe file to launch the game, replacing the existing one. But, why would that even affect the use of feats? Every other base game feat that I hace used, and I have used quite a lot of them, works. Simply changing the Maximum Level that the character can achieve should have no effect whatsoever.
I get the feeling I may need to figure out something to allow these feats to work within what I have added to the game.
The point is, if someone knew (and read your post), then they would have answered for you.
As no-one has yet responded, then the next best thing is to try to debug the code, which I am sure you are aware. This requires from little to extensive work. Success in resolving the matter depends on how much time and effort you can afford to put into trying to resolve the problem.
However, it is always good to find the point in your own code at which the game works as expected from. This means stripping away stuff you added until the feat works as expected … or starting with a clean setup and gradually adding stuff back until it breaks it.
I have suggested just a few methods, but only you know how extensive the work is.
When you find the solution … or at least what appears to be causing it (via debugging your code), be sure to respond here so others can learn through your experiences.
Thanks.
I just tested with Kaedrin’s pack (1.42.1). Deep Imaskari wizard, level 1, Int 18:
Base before resting:
After resting, I gained the bonus spell slot. Note that the bonus slot is NOT showing in the memorized spell panel, although I have the feat:
I then saved the game and reloaded. Now the bonus slot shows in the memorized spell panel:
I think there is an issue with stock FeatAdd
function with regard to this. It seems that the Memorized spell panel is not updating to reflect a bonus spell feat if it was added via script.
I also tested by creating an inventory item that added the feat and that worked fine - the bonus spell slot showed in the memorized spell panel as soon as I added the item to the inventory.
Certainly helps having the pack to test with. You have my thanks for digging into this, as it would have taken me some time to incorporate that.
But even with the Extra Slot feat being selected naturally, they are not working. And again, I tried the Save/load method. Didn’t work.
It’s Clangeddin’s Level Cap mod. Just reverted to the original game instead of his modified “nwn2main.exe” file and discovered that his mod is the problem. Wonderful. I like that mod because in using that with the Level Scaling Challenge mod, it allows for the character to advance to level 40, which is the way that I was using it, per his instruction on how to use it to level 40, not level 160. I’ll try and get with Clangeddin to see if there is some kind of remedy.
Well done for finding it.
Now I need to figure out if there might be a way to script around it. Lovely.