Ny0n / Nys_ToDoList

WoW addon that creates a simple in-game To-Do list
https://legacy.curseforge.com/wow/addons/nys-todolist
7 stars 5 forks source link

[Classic] v5.5.1 tdlButton:SetPoint() error #4

Closed Road-block closed 3 years ago

Road-block commented 3 years ago

Probably best to do this here than in comments 😄

Full errorstack is

3x ...nterface\Nys_ToDoList\Data\optionsManager.lua:133: tdlButton:SetPoint(): Wrong object type for function
[C]:: in function 'SetPoint'
...nterface\Nys_ToDoList\Data\optionsManager.lua:133: in function 'RefreshTDLButton'
...nterface\Nys_ToDoList\Data\optionsManager.lua:127: in function 'CreateTDLButton'
Nys_ToDoList\Data\init.lua:190: in function <Nys_ToDoList\Data\init.lua:136>
[C]:: ?

Saved variables for the affected character here.

I'm guessing if you load that profile you should be able to reproduce it.

Ny0n commented 3 years ago

Yup, good thought x) okay let me test this profile

Road-block commented 3 years ago

The only addon I can find in my AddOns folder implementing a fadeInfo.fadeTimer is Immersion.

It's implementing a fader for frames in its \Display\Animation.lua file.

Now how it managed to corrupt NysToDo saved variables I have no clue (yet).

Ny0n commented 3 years ago

well yea, if we delete the tdlButton key it corrects the prb for me, did you check that? like does deleting the tdlbutton key in the saved variable solves the prb or does it gets recorrupted?

Ny0n commented 3 years ago

but apart from that yea, it must be an other addon or i have no clue, i'll try installing immersion

Road-block commented 3 years ago

So yeah running

/run NysTDL.db.profile.tdlButton=nil;ReloadUI()

in game gets rid of the error and in subsequent reloads remains fine.

I guess we can file this under life's great mysteries.

Ny0n commented 3 years ago

okay, well i guess i'll add a one time reset of this value and the frame's pos too for the update :) Thank you for helping btw!

Road-block commented 3 years ago

Thanks for the nice addon and apologies for the false alarm.
I've no idea how that got into the saved variables.
I didn't even have the button enabled in the options.