Still getting an error on splash reputation with 1.4.0c:
Lua error message
```
Message: Interface/AddOns/PrettyReputation/core.lua:500: attempt to perform arithmetic on field 'current' (a nil value)
Time: Fri Aug 16 16:12:55 2024
Count: 1
Stack: Interface/AddOns/PrettyReputation/core.lua:500: attempt to perform arithmetic on field 'current' (a nil value)
[string "@Interface/AddOns/PrettyReputation/core.lua"]:500: in function `processAllFactions'
[string "@Interface/AddOns/PrettyReputation/core.lua"]:568: in function
Locals: factionInfo =
I wasn’t able to replicate the error on my end despite multiple attempts—believe me, I tried.
Additionally, I don't think the issue is related to the "Splash" reputations feature. It seems that the factions table isn't populating correctly on your side.
That said, could you please disable the "Splash" reputations option and test the addon again?
If the issue persists, would you be willing to try some temporary fixes with Debug mode enabled? I'll push them into a new branch for testing.
I hopped on my main & did a world quest in each of several different expansions (Shadowlands, BfA, Legion, WoD) with splash rep turned on and couldn't duplicate the error; I put a print statement at the beginning of processAllFactions() to verify it was getting called since no splash reps were being reported. I even did a 7th Legion quest which is what I've been doing on the alt that's been getting those errors. I wonder if this has something to do with the character getting the errors being a boosted character & if that's somehow affecting the reputations that WoW reports - this level 70 toon hasn't been to Shadowlands or the Dragon Isles at all yet.
I also created a new Alliance toon & verified that splash reps were working correctly on a character that could actually get some.
That's quite weird indeed. It seems to be a pretty niche issue.
Before I start guessing at potential solutions, could you please install the DevTool addon and enable the Debug option in Pretty Reputation (it’s the last option on the General tab)? After enabling debugging, make sure to /reload your UI.
Once that's done, type /dev into the chat to open the DevTool main window. You should see an entry called "Pretty Reputation_Factions". Click on it to expand the information and drill down into some of the "info" entries for different factions. It should look something like this:
Please post a screenshot here, as it could help me a lot in diagnosing the issue.
Here's a few screenshots. One thing I noticed is that none of the main Shadowlands factions are listed (Venthyr, Necrolords, Kyrian, Night Fae) but at least some of the Dragon Isles factions are (such as Valdrakken Accord and Iskaara Tuskarr). But that also is the case for a new character.
OK, I found something interesting. The character that's getting the errors has one more faction than my main. I tracked down the extra faction and it doesn't look right at all:
I spot checked a few other characters and none of them have this "Inactive" faction listed in DevTool.
One other thing I noticed. When I turn in a quest on a new character that generates some splash reputation, processAllFactions() appears to be getting called once for each faction that had an increase. Here's a new Human character turning in his first quest in Northshire Valley :
I added that print statement at the beginning of the function.
Edit: never mind, I see now those aren't splash reputation gains but are actually reported as gains by the game & show up even if splash rep is turned off.
And about that multiple callings ... that is why "Splash" option is soo CPU heavy.
BTW it only works on two faction groups in WotLK, {Alliance Vanguard/Horde Expedition}. It is not really usefull since then. Maybe I should hide it or something, IDK :-(
Still getting an error on splash reputation with 1.4.0c:
Lua error message
``` Message: Interface/AddOns/PrettyReputation/core.lua:500: attempt to perform arithmetic on field 'current' (a nil value) Time: Fri Aug 16 16:12:55 2024 Count: 1 Stack: Interface/AddOns/PrettyReputation/core.lua:500: attempt to perform arithmetic on field 'current' (a nil value) [string "@Interface/AddOns/PrettyReputation/core.lua"]:500: in function `processAllFactions' [string "@Interface/AddOns/PrettyReputation/core.lua"]:568: in functionI wasn’t able to replicate the error on my end despite multiple attempts—believe me, I tried.
Additionally, I don't think the issue is related to the "Splash" reputations feature. It seems that the factions table isn't populating correctly on your side.
That said, could you please disable the "Splash" reputations option and test the addon again?
If the issue persists, would you be willing to try some temporary fixes with Debug mode enabled? I'll push them into a new branch for testing.
With splash reputation turned off I don't get an error.
I'd be willing to try some test builds.
I hopped on my main & did a world quest in each of several different expansions (Shadowlands, BfA, Legion, WoD) with splash rep turned on and couldn't duplicate the error; I put a print statement at the beginning of processAllFactions() to verify it was getting called since no splash reps were being reported. I even did a 7th Legion quest which is what I've been doing on the alt that's been getting those errors. I wonder if this has something to do with the character getting the errors being a boosted character & if that's somehow affecting the reputations that WoW reports - this level 70 toon hasn't been to Shadowlands or the Dragon Isles at all yet.
I also created a new Alliance toon & verified that splash reps were working correctly on a character that could actually get some.
That's quite weird indeed. It seems to be a pretty niche issue.
Before I start guessing at potential solutions, could you please install the DevTool addon and enable the
Debug
option in Pretty Reputation (it’s the last option on the General tab)? After enabling debugging, make sure to/reload
your UI.Once that's done, type
/dev
into the chat to open the DevTool main window. You should see an entry called "Pretty Reputation_Factions". Click on it to expand the information and drill down into some of the "info" entries for different factions. It should look something like this:Please post a screenshot here, as it could help me a lot in diagnosing the issue.
Thanks in advance!
Here's a few screenshots. One thing I noticed is that none of the main Shadowlands factions are listed (Venthyr, Necrolords, Kyrian, Night Fae) but at least some of the Dragon Isles factions are (such as Valdrakken Accord and Iskaara Tuskarr). But that also is the case for a new character.
OK, I found something interesting. The character that's getting the errors has one more faction than my main. I tracked down the extra faction and it doesn't look right at all:
I spot checked a few other characters and none of them have this "Inactive" faction listed in DevTool.
I know about that pesky faction. I was certain I had dealt with it for good, but apparently not.
Could you please change line 144 of
core.lua
from
to
I hope this simple change resolves the issue. If it does, I’ll go ahead and release the update.
Thank you so much for your help!
Looks good. I'm no longer getting the errors and the "Inactive" faction is not listed by DevTool now.
One other thing I noticed. When I turn in a quest on a new character that generates some splash reputation, processAllFactions() appears to be getting called once for each faction that had an increase. Here's a new Human character turning in his first quest in Northshire Valley : I added that print statement at the beginning of the function. Edit: never mind, I see now those aren't splash reputation gains but are actually reported as gains by the game & show up even if splash rep is turned off.
OK, thanks for testing.
And about that multiple callings ... that is why "Splash" option is soo CPU heavy. BTW it only works on two faction groups in WotLK, {Alliance Vanguard/Horde Expedition}. It is not really usefull since then. Maybe I should hide it or something, IDK :-(
I didn't realize how rare those splash reputation occurrences really were, I thought they happened a lot more frequently than that.