CP 2.0 Error
Hey,
I'm currently working on a CP 2.0 Addon. Every time I load the CPs it's working fine untill the point where I open the CP Scene and get the following error: Code:
EsoUI/Ingame/Champion/Champion.lua:2285: attempt to index a nil value I don't really know if the mistake is on my part, since I do exactly the same thing as other addons. :confused: The loading code is the following: Code:
for slotIndex = 1, 12 do Has anyone seen the error before and can help me? Thanks in advance. |
Warning: Spoiler
Ooops I didn't see that the error was from the Zos code itself and not your code. You have done something to cause an error in the ZOS code. I do not know the CP system at all. Sorry for posting. |
Quote:
https://github.com/esoui/esoui/blob/...pion.lua#L2285 It's a function for CP animations. |
Yeah sorry, I posted my correction before you saw it and replied. Sorry for posting.
|
Seems like self.confirmCameraPrepTimeline is nil / was not initialized via function https://github.com/esoui/esoui/blob/...pion.lua#L1581 properly before then
Do you try to open the CP scene via addon code or manually (keybnd/menu click)? Maybe you try to open it wrong like SCENE_MANAGER:ShowScene .... (if even able per addon!) and thus the stuff is not initialized properly |
Quote:
I let the addon set the CP and after that I open the CP scene by hand with the keybind. Is there any way of getting access to the ChampionPerks Object? It's created locally, so I'm not really sure if that is possible. |
No afaik Champion and Crown Store stuff is by design local so no addon can interfere there.
Maybe you code to switch the CPs is somehow changing some UI stuff and as the scene is shown the UI stuff thinks all is ready, but it isn't. Have a look at Caro's Skill and CP Point manager, or other CP related addons how they do the same. Perhaps you'll find your error/code lines which cause it this way. |
Hey, I had the same problem with CSPS. I used the following code before sending the purchase request to prevent the game from trying to play a confirm animation while not in the perks scene and do the needed preparation for it if the scene is shown:
Code:
|
Quote:
So there is actually a way to get the ChampionPerks stuff. |
Quote:
|
All times are GMT -6. The time now is 03:11 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI