ESOUI

ESOUI (https://www.esoui.com/forums/index.php)
-   AddOn Help/Support (https://www.esoui.com/forums/forumdisplay.php?f=164)
-   -   Help to fix pls (https://www.esoui.com/forums/showthread.php?t=7820)

Marazota 05/30/18 01:36 PM

Help to fix pls
 
i updated libs for this addon - http://www.esoui.com/downloads/info1...Corp.html#info
and resolved some errors

but still when trying to load profile im getting this





help pls!

Marazota 05/31/18 02:21 AM

how to check version of libs?

Baertram 05/31/18 05:24 AM

The libs can be found in the addons section here too. Download the latest and replace them with the log in your addon.
You can use the addon Votans SettingsMenu which does loaded libs + version ingame in the lam menu.

Marazota 06/02/18 04:25 AM

Quote:

Originally Posted by Baertram (Post 34872)
The libs can be found in the addons section here too. Download the latest and replace them with the log in your addon.
You can use the addon Votans SettingsMenu which does loaded libs + version ingame in the lam menu.

ok i checked i have latest versions
still got an error when tryin to load profile
btw settings was partially loaded, so its working
partially

any idea how to fix? or maybe there is an alternate addons?

Baertram 06/02/18 06:02 AM

First you should remove the exampleoptions.lua and the LibAddonMenu-2.0.txt from the libs folder.
No need for them as the library is called from the manifest txt of the addon.

Then:
In line 218 there is a variable "buttoN" which isn#t declared anywhere so it is nil and throws this error:
Lua Code:
  1. if profileValue ~= boolValue then
  2.         checkboxControl:GetHandler("OnClicked")(checkboxControl, button)
  3.     end

Try to change it to something like this and see if it works then:
Lua Code:
  1. if profileValue ~= boolValue then
  2.         checkboxControl:GetHandler("OnClicked")(checkboxControl)
  3.     end

Or try this:
Lua Code:
  1. if profileValue ~= boolValue then
  2.         local cbOnClickedHandler = checkboxControl:GetHandler("OnClicked")
  3.         cbOnClickedHandler(checkboxControl)
  4.     end

Marazota 06/03/18 07:16 AM

tried both suggestions
got errors in both scenarios




Baertram 06/03/18 08:02 AM

Ok then some variable is not given properly as it seems.

Try the 2nd scenario again and change the code to this:

Lua Code:
  1. if profileValue ~= boolValue then
  2.         local cbOnClickedHandler = checkboxControl:GetHandler("OnClicked")
  3. if cbOnClickedHandler  == nil then
  4. d("<CheckboxControl OnClicked handler is nil! checkBoxName: " .. tostring(checkboxControl:GetName()))
  5. else
  6. cbOnClickedHandler(checkboxControl)
  7. end
  8.         end

You could check if checkboxControl got a function GetName() via the addon zgoo by moving the mouse over the checbox and do /zgoo mouse.
If there is no GetName() function available it is maybe somehwere below at an attribute like checkboxControl.name and you need to change the code above then to use this attribute.

This code above checks if the OnClicked handler function exists and if not says so in the chat.
You are able to find out which checkbox checkboxControl is this way and maybe get some more intel then.

I'm not using the addon and cannot help any further, sorry.

Marazota 06/05/18 04:25 AM

Quote:

Originally Posted by Baertram (Post 34932)
Ok then some variable is not given properly as it seems.

Try the 2nd scenario again and change the code to this:

Lua Code:
  1. if profileValue ~= boolValue then
  2.         local cbOnClickedHandler = checkboxControl:GetHandler("OnClicked")
  3. if cbOnClickedHandler  == nil then
  4. d("<CheckboxControl OnClicked handler is nil! checkBoxName: " .. tostring(checkboxControl:GetName()))
  5. else
  6. cbOnClickedHandler(checkboxControl)
  7. end
  8.         end

You could check if checkboxControl got a function GetName() via the addon zgoo by moving the mouse over the checbox and do /zgoo mouse.
If there is no GetName() function available it is maybe somehwere below at an attribute like checkboxControl.name and you need to change the code above then to use this attribute.

This code above checks if the OnClicked handler function exists and if not says so in the chat.
You are able to find out which checkbox checkboxControl is this way and maybe get some more intel then.

I'm not using the addon and cannot help any further, sorry.

Hmm disregard my posts i deleted
i still have the same error
tried your latest fix - still the same on profile load ..:(
i doublechecked, i did everything right
some setting refuse to transfer and giving this error, looks like

Marazota 06/05/18 04:29 AM

GetName()= ""

i see it in a list from zgoo command

Marazota 06/05/18 04:36 AM

Quote:

Originally Posted by Baertram (Post 34932)
This code above checks if the OnClicked handler function exists and if not says so in the chat.

im not seein anything in chat besides this lua error i posted before =((

Marazota 06/06/18 01:25 PM

can anyone teach me how to add more options to this addon? where to find all list of available base game settings?


All times are GMT -6. The time now is 11:39 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI