11.02 lua error GetAddOnMetadata (a nil value) #131


  • New
Open
  • axejess created this issue Aug 14, 2024

    2x Omen/Omen.lua:8: attempt to call global 'GetAddOnMetadata' (a nil value)
    [string "@Omen/Omen.lua"]:8: in main chunk

    Locals:
    Omen = <table> {
    modules = <table> {
    }
    defaultModuleLibraries = <table> {
    }
    name = "Omen"
    orderedModules = <table> {
    }
    enabledState = true
    defaultModuleState = true
    }
    L = <table> {
    HUNTER = "Hunter"
    Height of each bar = "Height of each bar"
    Passed %s%% of %s's threat! = "Passed %s%% of %s's threat!"
    Show Omen when you are alone = "Show Omen when you are alone"
    Show threat per second values = "Show threat per second values"
    Turning this on will cause Omen to hide whenever you are in a battleground or arena. = "Turning this on will cause Omen to hide whenever you are in a battleground or arena."
    Tells Omen to additionally check your 'focus' and 'focustarget' before your 'target' and 'targettarget' in that order for threat display. = "Tells Omen to additionally check your 'focus' and 'focustarget' before your 'target' and 'targettarget' in that order for threat display."
    TPS Window = "TPS Window"
    PET = "Pet"
    Show Classes... = "Show Classes..."
    'My Bar' BG Color = "'My Bar' BG Color"
    Show Omen when any of the following are true = "Show Omen when any of the following are true"
    Center Omen = "Center Omen"
    Click|r to toggle the Omen window = "Click|r to toggle the Omen window"
    Alpha = "Alpha"
    > Pull Aggro < = "> Pull Aggro <"
    Control the font size of the labels = "Control the font size of the labels"
    Master = "Master"
    Show Pull Aggro Bar = "Show Pull Aggro Bar"
    DEMONHUNTER = "Demon Hunter"
    The font that the labels will use = "The font that the labels will use"
    Background Tile Size = "Background Tile Size"
    SHAMAN = "Shaman"
    Click Through = "Click Through"
    Display large numbers in Ks = "Display large numbers in Ks"
    Use !ClassColors addon for class colors for the background color of threat bars = "Use !ClassColors addon for class colors for the background color of threat bars"
    A collection of help pages = "A collection of help pages"
    Clamp To Screen = "Clamp To Screen"
    Tank Bar Color = "Tank Bar Color"
    Frame's border color = "Frame's border color"
    Title Bar Background Options = "Title Bar Background Options"
    Max bars to show = "Max bars to show"
    Open the configuration dialog = "Open the configuration dialog"
    Font Outline = "Font Outline"
    Heading background color = "Heading background color"
    Turning this on will cause Omen to hide whenever you are not in combat. = "Turning this on will cause Omen to hide whenever you are not in combat."
    Tile Background = "Tile Background"
    Configure title bar settings. = "Configure title bar settings."
    Frame's background color = "Frame's background color"
    Border Texture = "Border Texture"
    General Settings = "General Settings"
    This section controls when Omen is automatically shown or hidden. = "This section controls when Omen is automatically shown or hidden."
    Grow bars upwards = "Grow bars upwards"
    Omen Quick Menu = "Omen Quick Menu"
    Show the Omen minimap button = "Show the Omen minimap button"
    Border Thickness = "Border Thickness"
    IGNORE_PLAYER_PETS_DESC = "Tells Omen to skip enemy player pets when determining which unit to display threat data on.

    Player pets maintain a threat table when in |cffffff78Aggressive|r or |cffffff78Defensive|r mode and behave just like normal mobs, attacking the target with the highest threat. If the pet is instructed to attack a specific target, the pet still maintains the threat table, but sticks on the assigned target which by definition has 100% threat. Player pets can be taunted to force them to attack you.

    However, player pets on |cffffff78Passive|r mode do not have a threat table, and taunt does not work on them. They only attack their assigned target when instructed and do so without any threat table.

    When a player pet is instructed to |cffffff78Follow|r, the pet's threat table is wiped immediately and stops attacking, although it may immediately reacquire a target based on its Aggressive/Defensive mode.
    "
    Causes Omen to play a chosen sound effect = "Causes Omen to play a chosen sound effect"
    Control the font size of the title text = "Control the font size of the title text"
    Show the Omen Title Bar =

  • axejess added a tag New Aug 14, 2024
  • axejess posted a comment Aug 14, 2024

    Dunno wich of these lines fixed it but I added these on omen.lua on the top and now it seems to work

     

    local GetAddOnMetadata = C_AddOns and C_AddOns.GetAddOnMetadata or GetAddOnMetadata
    local GetNumAddOns = C_AddOns.GetNumAddOns or GetNumAddOns
    local IsAddOnLoaded = C_AddOns.IsAddOnLoaded or IsAddOnLoaded;
    local IsAddOnLoadOnDemand = C_AddOns.IsAddOnLoadOnDemand or IsAddOnLoadOnDemand;
    local GetAddOnInfo = C_AddOns.GetAddOnInfo or GetAddOnInfo
    local GetAddOnDependencies = C_AddOns.GetAddOnDependencies or GetAddOnDependencies

     

  • madar2252 posted a comment Aug 14, 2024

    thanks for the fix Axejess, this is indeed helps.

    /omen config doesn't work tho, but since it's available from the options menu, this is the last concern probably

  • axejess posted a comment Aug 14, 2024

    nvm

    I downloaded the fan fix 10.2 version that is in wowace comments

    If I add mine lines to that the flash screen warning works too great now see how long this will stay working.

     

     


    Edited Aug 14, 2024
  • cherrytealeaves posted a comment Aug 14, 2024

    Thank you for sharing Axejess. I downloaded Dreadful_Sanity's fan fix as well and everything is working well so far.


    Edited Aug 14, 2024
  • Ramoth1977 posted a comment Aug 17, 2024

    Unfortunately the fix did not work for me, Omen is simply not displayed. Does the letter C refer to the game's location?

  • wowery posted a comment Aug 28, 2024

    Maybe a bit late, but the C is part of the new global variables that were recently added, you add the lines as they are written in the omen.lua file, right after the local globals already there for me it was at line 8 right before the line that starts with omen version...... etc since those lines are calling one of the new global variables that you are setting with the new lines.

     

    Hope it helps someone.

  • fifil90 posted a comment Aug 28, 2024

    Yes, the axejess's advise helped me. Thanks a lot, man!

    Letter C is not a location (on my PC WOW installed on E for example. So it's a variable as mentioned the speaker before.

  • Ramoth1977 posted a comment Sep 2, 2024

    Thank you very much for the precise information on where to insert the fix. Now it works for me too. Playing as a tank has just become much more relaxed again. Recognising exactly where it's enough to just hit and where I really need a taunt is absolutely worth its weight in gold. I can't say thank you often enough.

  • LFGKilikk posted a comment Sep 8, 2024

    In case anyone doesn't want to download an unofficial file, in very limited testing these changes are working for me:

     

    In Omen.lua:

     

    Line 8: Change to Omen.version = C_AddOns.GetAddOnMetadata("Omen", "Version")

    Line 9: Change to Omen.versionstring = "Omen v"..C_AddOns.GetAddOnMetadata("Omen", "Version")

    Line 2286: Change to Settings.OpenToCategory(Omen.versionstring)

    Line 2287: Comment out or remove

     

    The first two get it to load, the last two fix the config error.


To post a comment, please login or register a new account.