WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   AddOn Help/Support (https://www.wowinterface.com/forums/forumdisplay.php?f=3)
-   -   Weird LUA error (https://www.wowinterface.com/forums/showthread.php?t=56652)

Yonaz 09-09-18 07:25 AM

Weird LUA error
 
I keep getting this error every time I open a Professions window. When I googled, it didn't even say it was a WoW-related error but a coding error. Anyone else having this error, and knows hot to get rid of it? I'm no developer, just a mortal player :)


Waldokind 09-09-18 12:47 PM

Once something goes wrong with a WoW AddOn, it can create a cascade of error messages. In your screen shot, I see you're looking at the 7th of 8 Lua errors. This message is probably a symptom of an earlier error. Next time you get this, scroll back to "page" 1/8 and share what that message is.

Kanegasi 09-09-18 05:13 PM

This error is coming from either line 204 or line 295 of the file Profit_Options.xml in the addon Tradeskill Profit.

I'm not familiar with XML nor do I understand this byte attribute. You can try to remove those byte parts and leave the rest of the fontstring line or uninstall the addon since it hasn't been updated for BfA.

I'm also under the impression that this addon has always generated this error, but until now, it wasn't a player-visible error. There's an xml log file that has cached errors quietly for years until some yahoo at Blizzard decided to throw them into player's faces as if they're real errors. They aren't. They're useless and harmless.

Xrystal 09-09-18 06:14 PM

You just need to move the bytes section to the end of the EditBox line. Just tested it. No errors. Of course theres no guarantee it does what it says though rofl. I've never used EditBox on my addons but the theory is sound.

Here is a revised version of that xml file if you want to replace its contents and get rid of the error. Or, if there is another way to report the error to the developers let them know and they should fix it.

Lua Code:
  1. <Ui xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.blizzard.com/wow/ui/
  2. ..\..\FrameXML\UI.xsd">
  3.  
  4.   <!-- Options panel Frame-->
  5.   <Frame name="ProfitOptionsPanel" hidden="false">
  6.    
  7.     <Layers>
  8.         <Layer level="ARTWORK">
  9.             <FontString name="$parentTitle" inherits="GameFontNormalLarge" text="Profit v3.0.1 - By Coomacheek" justifyH="LEFT" justifyV="TOP">
  10.                 <Anchors>
  11.                     <Anchor point="TOPLEFT">
  12.                         <Offset x="16" y="-16" />
  13.                     </Anchor>
  14.                 </Anchors>
  15.             </FontString>
  16.         </Layer>
  17.     </Layers>
  18.    
  19.     <!--Frames for the main Panel  -->
  20.     <Frames>
  21.       <Button name="$parentAlgorithms" inherits="UIDropDownMenuTemplate">
  22.         <Anchors>
  23.                 <Anchor point="TOP" relativeTo="$parentTitle" relativePoint="BOTTOMRIGHT">
  24.                 <Offset>
  25.                         <AbsDimension x="0" y="-20"/>
  26.                     </Offset>
  27.                 </Anchor>
  28.             </Anchors>
  29.    
  30.         <Layers>
  31.                 <Layer level="ARTWORK">
  32.  
  33.                     <FontString name="$parentText" text="Auctioneer Pricing Algorithm" inherits="GameFontHighlight" justifyH="RIGHT">
  34.                     <Anchors>
  35.                                 <Anchor point="RIGHT" relativePoint="LEFT">
  36.                                 <Offset>
  37.                                         <AbsDimension x="0" y="6"/>
  38.                                 </Offset>
  39.                                 </Anchor>
  40.                         </Anchors>
  41.                     </FontString>
  42.                 </Layer>
  43.             </Layers>
  44.        
  45.         <Scripts>
  46.             <OnShow>
  47.                     UIDropDownMenu_Initialize(self, ProfitDropDownMenu_Initialize);
  48.             </OnShow>
  49.  
  50.         </Scripts>
  51.  
  52.     </Button>
  53.    
  54.     <CheckButton name="$parentStartupMsg" inherits="InterfaceOptionsBaseCheckButtonTemplate">
  55.         <Anchors>
  56.                 <Anchor point="TOPLEFT" relativeTo="$parentTitle" relativePoint="BOTTOMLEFT">
  57.                     <Offset>
  58.                         <AbsDimension x="10" y="-50"/>
  59.                     </Offset>
  60.                 </Anchor>
  61.             </Anchors>
  62.        
  63.         <Layers>
  64.                 <Layer level="ARTWORK">
  65.                     <FontString name="$parentText" text="Show Startup Messages" inherits="GameFontHighlight">
  66.                         <Anchors>
  67.                                 <Anchor point="TOPLEFT" relativePoint="RIGHT">
  68.                                 <Offset>
  69.                                         <AbsDimension x="0" y="6"/>
  70.                                 </Offset>
  71.                                 </Anchor>
  72.                         </Anchors>
  73.                     </FontString>
  74.                 </Layer>
  75.             </Layers>
  76.       </CheckButton>
  77.  
  78.     <CheckButton name="$parentAHListing" inherits="InterfaceOptionsBaseCheckButtonTemplate">
  79.         <Anchors>
  80.                 <Anchor point="TOPLEFT" relativeTo="$parentTitle" relativePoint="BOTTOMLEFT">
  81.                     <Offset>
  82.                         <AbsDimension x="10" y="-90"/>
  83.                     </Offset>
  84.                 </Anchor>
  85.             </Anchors>
  86.        
  87.         <Layers>
  88.                 <Layer level="ARTWORK">
  89.                     <FontString name="$parentText" text="Show per unit auction price next to the recipe name even if materials are unavailable for a given recipe." inherits="GameFontHighlight" justifyH="LEFT" maxLines="2">
  90.                          <Size>
  91.                             <AbsDimension x="400" y="20" />
  92.                         </Size>
  93.                         <Anchors>
  94.                                 <Anchor point="TOPLEFT" relativePoint="RIGHT">
  95.                                 <Offset>
  96.                                         <AbsDimension x="0" y="6"/>
  97.                                 </Offset>
  98.                                 </Anchor>
  99.                         </Anchors>
  100.                     </FontString>
  101.                 </Layer>
  102.             </Layers>
  103.       </CheckButton>
  104.  
  105.     <CheckButton name="$parentAHListingPerUnit" inherits="InterfaceOptionsBaseCheckButtonTemplate">
  106.         <Anchors>
  107.                 <Anchor point="TOPLEFT" relativeTo="$parentTitle" relativePoint="BOTTOMLEFT">
  108.                     <Offset>
  109.                         <AbsDimension x="10" y="-140"/>
  110.                     </Offset>
  111.                 </Anchor>
  112.             </Anchors>
  113.        
  114.         <Layers>
  115.                 <Layer level="ARTWORK">
  116.                     <FontString name="$parentText" text="When materials are available for a given recipe, always show per unit auction price rather than total stack price." inherits="GameFontHighlight" justifyH="LEFT" maxLines="2">
  117.                         <Size>
  118.                             <AbsDimension x="400" y="20" />
  119.                         </Size>
  120.                         <Anchors>
  121.                                 <Anchor point="TOPLEFT" relativePoint="RIGHT">
  122.                                 <Offset>
  123.                                         <AbsDimension x="0" y="6"/>
  124.                                 </Offset>
  125.                                 </Anchor>
  126.                         </Anchors>
  127.                     </FontString>
  128.                 </Layer>
  129.             </Layers>
  130.       </CheckButton>
  131.       <CheckButton name="$parentRoundValue" inherits="InterfaceOptionsBaseCheckButtonTemplate">
  132.         <Anchors>
  133.                 <Anchor point="TOPLEFT" relativeTo="$parentTitle" relativePoint="BOTTOMLEFT">
  134.                     <Offset>
  135.                         <AbsDimension x="10" y="-185"/>
  136.                     </Offset>
  137.                 </Anchor>
  138.             </Anchors>
  139.        
  140.         <Layers>
  141.                 <Layer level="ARTWORK">
  142.                     <FontString name="$parentText" text="Round all results to the nearest Gold." inherits="GameFontHighlight">
  143.                         <Anchors>
  144.                                 <Anchor point="TOPLEFT" relativePoint="RIGHT">
  145.                                 <Offset>
  146.                                         <AbsDimension x="0" y="6"/>
  147.                                 </Offset>
  148.                                 </Anchor>
  149.                         </Anchors>
  150.                     </FontString>
  151.                 </Layer>
  152.             </Layers>
  153.       </CheckButton>
  154.  
  155.  
  156.    
  157.       <CheckButton name="$parentFlagProfit" inherits="InterfaceOptionsBaseCheckButtonTemplate">
  158.         <Anchors>
  159.           <Anchor point="TOPLEFT" relativeTo="$parentTitle" relativePoint="BOTTOMLEFT">
  160.             <Offset>
  161.               <AbsDimension x="10" y="-225"/>
  162.             </Offset>
  163.           </Anchor>
  164.         </Anchors>
  165.         <Layers>
  166.           <Layer level="ARTWORK">
  167.             <FontString name="$parentText" text="Only show price for items that result in potential profit:" inherits="GameFontHighlight">
  168.               <Anchors>
  169.                 <Anchor point="TOPLEFT" relativePoint="RIGHT">
  170.                   <Offset>
  171.                     <AbsDimension x="0" y="6"/>
  172.                   </Offset>
  173.                 </Anchor>
  174.               </Anchors>
  175.             </FontString>
  176.           </Layer>
  177.         </Layers>
  178.       </CheckButton>
  179.  
  180.       <EditBox name="$parentProfitLevel" autoFocus="false" inherits="InputBoxTemplate"  bytes="64">
  181.         <Size>
  182.           <AbsDimension x="50" y="5"/>
  183.         </Size>
  184.         <Anchors>
  185.           <Anchor point="TOPLEFT" relativeTo="$parentFlagProfit" relativePoint="BOTTOMLEFT">
  186.             <Offset>
  187.               <AbsDimension x="248" y="-5"/>
  188.             </Offset>
  189.           </Anchor>
  190.         </Anchors>
  191.         <Layers>
  192.           <Layer level="ARTWORK">
  193.             <FontString name="$parentText" text="Greater than (in gold):" inherits="GameFontHighlight">
  194.               <Anchors>
  195.                 <Anchor point="RIGHT" relativePoint="LEFT">
  196.                   <Offset>
  197.                     <AbsDimension x="-10" y="1"/>
  198.                   </Offset>
  199.                 </Anchor>
  200.               </Anchors>
  201.             </FontString>
  202.           </Layer>
  203.         </Layers>
  204.         <FontString inherits="ChatFontNormal"/>
  205.       </EditBox>
  206.  
  207.     <CheckButton name="$parentShowReagentValue" inherits="InterfaceOptionsBaseCheckButtonTemplate">
  208.         <Anchors>
  209.                 <Anchor point="TOPLEFT" relativeTo="$parentTitle" relativePoint="BOTTOMLEFT">
  210.                     <Offset>
  211.                         <AbsDimension x="10" y="-275"/>
  212.                     </Offset>
  213.                 </Anchor>
  214.             </Anchors>
  215.        
  216.         <Layers>
  217.                 <Layer level="ARTWORK">
  218.                     <FontString name="$parentText" text="Show price of reagents in the recipe details window." inherits="GameFontHighlight">
  219.                         <Anchors>
  220.                                 <Anchor point="TOPLEFT" relativePoint="RIGHT">
  221.                                 <Offset>
  222.                                         <AbsDimension x="0" y="6"/>
  223.                                 </Offset>
  224.                                 </Anchor>
  225.                         </Anchors>
  226.                     </FontString>
  227.                 </Layer>
  228.             </Layers>
  229.       </CheckButton>
  230.         <CheckButton name="$parentProfitMargin" inherits="InterfaceOptionsBaseCheckButtonTemplate">
  231.         <Anchors>
  232.                 <Anchor point="TOPLEFT" relativeTo="$parentTitle" relativePoint="BOTTOMLEFT">
  233.                     <Offset>
  234.                         <AbsDimension x="10" y="-310"/>
  235.                     </Offset>
  236.                 </Anchor>
  237.             </Anchors>
  238.        
  239.         <Layers>
  240.                 <Layer level="ARTWORK">
  241.                     <FontString name="$parentText" text="Show profit margin in recipe details window along with gold profit." inherits="GameFontHighlight" justifyH="LEFT" maxLines="2">
  242.                          <Size>
  243.                             <AbsDimension x="325" y="20" />
  244.                         </Size>
  245.                         <Anchors>
  246.                                 <Anchor point="TOPLEFT" relativePoint="RIGHT">
  247.                                 <Offset>
  248.                                         <AbsDimension x="0" y="6"/>
  249.                                 </Offset>
  250.                                 </Anchor>
  251.                         </Anchors>
  252.                     </FontString>
  253.                 </Layer>
  254.             </Layers>
  255.       </CheckButton>
  256.      
  257.       <CheckButton name="$parentShort" inherits="InterfaceOptionsBaseCheckButtonTemplate">
  258.         <Anchors>
  259.                 <Anchor point="TOPLEFT" relativeTo="$parentTitle" relativePoint="BOTTOMLEFT">
  260.                     <Offset>
  261.                         <AbsDimension x="10" y="-350"/>
  262.                     </Offset>
  263.                 </Anchor>
  264.             </Anchors>
  265.        
  266.         <Layers>
  267.                 <Layer level="ARTWORK">
  268.                     <FontString name="$parentText" text="Tidy up the tradeskill window by removing certain key words (separated by a comma) from the tradeskill name." inherits="GameFontHighlight" justifyH="LEFT" maxLines="3">
  269.                         <Size>
  270.                             <AbsDimension x="400" y="30" />
  271.                         </Size>
  272.                         <Anchors>
  273.                                 <Anchor point="TOPLEFT" relativePoint="RIGHT">
  274.                                 <Offset>
  275.                                         <AbsDimension x="0" y="6"/>
  276.                                 </Offset>
  277.                                 </Anchor>
  278.                         </Anchors>                 
  279.                     </FontString>
  280.                 </Layer>
  281.             </Layers>
  282.       </CheckButton>
  283.      
  284.       <EditBox name="$parentShortEditBox" autoFocus="false" inherits="InputBoxTemplate" bytes="128">
  285.         <Size>
  286.           <AbsDimension x="475" y="5"/>
  287.         </Size>
  288.         <Anchors>
  289.           <Anchor point="TOPLEFT" relativeTo="$parentShort" relativePoint="BOTTOMLEFT">
  290.             <Offset>
  291.               <AbsDimension x="50" y="-25"/>
  292.             </Offset>
  293.           </Anchor>
  294.         </Anchors>
  295.         <FontString inherits="ChatFontNormal"/>
  296.       </EditBox>
  297.      
  298.       <CheckButton name="$parentUsePlayerReagentCount" inherits="InterfaceOptionsBaseCheckButtonTemplate">
  299.         <Anchors>
  300.                 <Anchor point="TOPLEFT" relativeTo="$parentTitle" relativePoint="BOTTOMLEFT">
  301.                     <Offset>
  302.                         <AbsDimension x="10" y="-430"/>
  303.                     </Offset>
  304.                 </Anchor>
  305.             </Anchors>
  306.        
  307.         <Layers>
  308.                 <Layer level="ARTWORK">
  309.                     <FontString name="$parentText" text="Take into account current inventory when calculating total price for a recipe.  If unchecked, presumes all reagents will be purchased from vendor/auction house. " inherits="GameFontHighlight" justifyH="LEFT" maxLines="4">
  310.                         <Size>
  311.                             <AbsDimension x="330" y="40" />
  312.                         </Size>
  313.                         <Anchors>
  314.                                 <Anchor point="TOPLEFT" relativePoint="RIGHT">
  315.                                 <Offset>
  316.                                     <AbsDimension x="0" y="6"/>
  317.                                 </Offset>
  318.                                 </Anchor>
  319.                         </Anchors>                 
  320.                     </FontString>
  321.                 </Layer>
  322.             </Layers>
  323.       </CheckButton>
  324.       <CheckButton name="$parentDebugMode" inherits="InterfaceOptionsBaseCheckButtonTemplate">
  325.             <Anchors>
  326.                 <Anchor point="TOPLEFT" relativeTo="$parentTitle" relativePoint="BOTTOMLEFT">
  327.                     <Offset>
  328.                         <AbsDimension x="10" y="-500"/>
  329.                     </Offset>
  330.                 </Anchor>
  331.             </Anchors>
  332.        
  333.         <Layers>
  334.                 <Layer level="ARTWORK">
  335.                     <FontString name="$parentText" text="Enable debug mode." inherits="GameFontHighlight" justifyH="LEFT" maxLines="4">
  336.  
  337.                         <Anchors>
  338.                                 <Anchor point="TOPLEFT" relativePoint="RIGHT">
  339.                                 <Offset>
  340.                                     <AbsDimension x="0" y="6"/>
  341.                                 </Offset>
  342.                                 </Anchor>
  343.                         </Anchors>                 
  344.                     </FontString>
  345.                 </Layer>
  346.             </Layers>
  347.       </CheckButton>
  348.     </Frames>
  349.   </Frame>
  350. </Ui>


All times are GMT -6. The time now is 11:46 PM.

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