Quote:
|
Alright then. I made a minimum version of the config where you can reproduce the problem. Just checked it. To open the config, you have to type "/test".
Here is the code. The config.lua. Code:
UITestAddOn = LibStub("AceAddon-3.0"):NewAddon("UITestAddOn", "AceEvent-3.0","AceConsole-3.0","AceTimer-3.0") The profiles.lua Code:
UITestAddOn_DBdefaults = { And the .toc-file: Code:
## Interface: 20500 Code:
<Ui xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xsi:schemaLocation="http://www.blizzard.com/wow/ui/ ..\FrameXML\UI.xsd" xmlns="http://www.blizzard.com/wow/ui/"> One last note: I develop this addon for patch TBC Classic 2.5.1. Greetz and thanks! Srzm |
There is no 3.3.5a Patch for Wow.
Live - 9.0.5 Burning Crusade Classic - 2.5.1 World of Warcraft Classic - 1.13.7 Unless you are talking about the patch of a particular addon. So maybe telling us which addon it is and which of the official game versions it is designed for. If it isn't for one of the above official servers then we cannot help you as what you are doing falls under number 4 of the terms of use on this site. '4. Don't break WoW EULA or ToU. If you come here and post that you are selling your WoW account for real world money, offering or asking for power-levelling, in-game items or gold for real life cash, private servers or any other post that breaks WoW EULA or ToU, your post will be deleted and you will (at minimum) warned not to do it again. Repeated offenses will lead to banning from the site.' Quote:
|
Thank you for your reply.
Quote:
However, I can fully understand if that hurts the rules. I edited the TOC file, the minimal addon reproducing the problem posted above should be compatible with TBC Classic since I'm not using methods of the WOW API and the stats are all there in TBC as well. Hope that sets things right without hurting any rules. Thanks in advance! Srzm |
Good forward planning. However, based on the api differences between Classic and TBC Classic, the addon may not be 'ready' when the next Classic version comes out as that will likely have a different API base.
If memory serves ... Classic > Legion 7.x API with Classic related changes TBC Classic > BfA 8.x API with TBC related changes Meaning the likely chance that .. WotLK Classic > Shadowlands 9.x API with WotLK related changes Cataclysm Classic > 10.x API ... etc As to your problem at hand, I unfortunately cannot help with that as I don't use any of the Ace libraries. However, my understanding of Defaults would be that the active table would first be filled with the default values and then your code would make any necessary changes .. ie, if they deleted option 7 then move option 8 to be option 7. If they set option 7 to a specific value, handle the list as a whole so that it contained the items expected in the right order. Ace may not have these actions set up as how they need to be handled may be different per addon. They likely just set up the ability to action things as they change. Quote:
|
most likely the problem is this part:
Code:
local inputRaw = splitStringToTable(value,"\n"); you need to trim each line before you test it: Code:
v = v:match("^%s*(.-)%s*$") or ''; |
Quote:
I don't think that my enterfield string has any carriage returns, since it gets build with "\n" line breaks only, here: Code:
failStatsString = failStatsString .. LongStats[UITestAddOndb["failstats"]["WARRIOR"]["Arms"][k]] .. "\n" I think at this point I'll script the whole profile management on my own, with an own SavedVariables table and without the AceDB. I did it without AceDB in a smaller addon earlier and I had absolutely no problems with set / get from subtables there. Regardless, thanks for all your help, elcius, Xrystal, Kanegasi. From my point of view, this topic can be closed. Greetz. - Srzm |
All times are GMT -6. The time now is 07:08 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI