Need a little guidance...
The little snippet below works for the most part. The problem that I am having is that the Solo Shuffle Rating will only show if you are in a match. Once you leave the match is says "N/A". I know that it is using this C_PvP.GetPVPActiveMatchPersonalRatedInfo().....But I cannot for the life of me find anything that will actually show it outside of a match. Can anyone send me in the right direction on this?
Code:
local function UpdatePvPStatsFrame() |
This might be what you are looking for while not in an active match
https://warcraft.wiki.gg/wiki/API_GetPersonalRatedInfo |
Thanks man, I'll take a peek at it.
|
Welp, it is kinda working lol. I did use the GetPersonalRatedInfo. See the code below:
Code:
local CONQUEST_CURRENCY_ID = 1602 I have just shown this part of my code. If needed I can post the entire thing. The changes are not on my Github. And it's like 1500 lines.I just think I'm missing something for it to have this type of behaviour. |
So it works as expected after opening the PvP related Blizzard frame ?
If that is the case, then sounds like there is a Blizzard addon that needs to be set as required in the toc file. One that springs to mind is Blizzard_PVPUI. Give that a whirl and see if doing your stuff after that addon is loaded improves things. |
That didn't help. So back to the drawing board lol. It is probably something real simple too lol.
EDIT: I ran this when I first logged in and it shows the rating at 0. But just as soon as I went Group Finder/Player vs Player and did a /reload it showed the right rating. So something is going on here. Also whenever I switch to another toon it will show the previous toons rating. Code:
local function TestPvPIndices() |
Aha ..
Looking through the PVPUI code and I noticed they had these functions that don't appear ones created in the file. RequestRatedInfo - https://warcraft.wiki.gg/wiki/API_RequestRatedInfo RequestPVPOptionsEnabled - No Page on Wiki Yet. Possible Event: "PVP_TYPES_ENABLED" RequestPVPRewards - No Page on Wiki Yet Possible Event: "PVP_REWARDS_UPDATE" RequestRandomBattlegroundInstanceInfo - https://warcraft.wiki.gg/wiki/API_Re...ndInstanceInfo I would have thought they would have successfully got the information for you when the ConquestFrame was loaded up when the addon was activated. But maybe it is when the frame is shown that the work happens. Here's the file in question https://github.com/Gethe/wow-ui-sour...VPUI.lua#L1192 Hopefully some of that helps you, if you haven't figured it out yet. |
Naw, I haven't figured it out just yet. But I do think it's a issue for sure. I installed another addon that shows rating and was basically doing the same thing as mine. My little PvP Stat window is just an extension of my addon Incoming-BG. All of the other pvp stats update in real-time, but of course not Solo Shuffle.
If I do figure it out I will post what I find. |
The Blizzard_PVPUI is marked as LOD. Have you tried checking it is actually loaded after you've clicked the stat button and, if not then loading it, before the button does anything else (or before you stat. window loads)?
After loading the PVP UI Blizz. does Code:
C_Timer.After(1, function() TopBannerManager_Show(PvPObjectiveBannerFrame, { name=bannerName, description=bannerDescription }); end); |
This is what I have done:
Code:
local function UpdatePvPStatsFrame() |
Stealing from Blizz. code, add this to your timer before the other code:
Lua Code:
|
Quote:
|
All times are GMT -6. The time now is 12:54 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI