|
Post by lothaer on May 8, 2008 5:48:24 GMT -5
i just got these errors while playing on the PTR
Error: bad argument #1 to 'gsub' (string expected, got nil) AddOn: LunarSphere File: moduleItems.lua Line: 41 Count: 1 -------------------------------------------------- Error: attempt to call method 'Initialize' (a nil value) AddOn: LunarSphere File: LunarSphere.lua Line: 59 Count: 1 -------------------------------------------------- Error: attempt to call method 'UpdateLowHighItems' (a nil value) AddOn: LunarSphere File: moduleSphere.lua Line: 1753 Count: 5
this was just with LS loaded.
hope it isnt too bad.
|
|
|
Post by Moongaze on May 8, 2008 10:28:32 GMT -5
That's a cascade effect. The main problem is line 41 of the moduleItems.lua file. Could you try something for me? Open the moduleItems file and search for " Lunar.Items.chargesText = string.gsub(ITEM_SPELL_CHARGES_P1" and remove the "_P1" part. Sooo... Lunar.Items.chargesText = string.gsub(ITEM_SPELL_CHARGES_P1, "%d%$", ""); becomes Lunar.Items.chargesText = string.gsub(ITEM_SPELL_CHARGES, "%d%$", "");See if that fixes the issue. I haven't downloaded the PTR yet and will probably start right now. I guess they got rid of a global string or renamed it, so I'm hoping it was just renamed and that edit will work. Otherwise, I get to see what else I can do
|
|
|
Post by lothaer on May 8, 2008 10:40:19 GMT -5
yup worked great no more errors.
|
|
|
Post by Moongaze on May 8, 2008 12:55:19 GMT -5
I still can't download the PTR. I'm worried because in the past, there was "ITEM_SPELL_CHARGES" and "ITEM_SPELL_CHARGES_P1" ... and I guess the P1 version was plural, although that seems ridiculous based upon the naming of the two. I want to make sure I'm pulling the right name to avoid issues with other locales and items with charges.
|
|
|
Post by lothaer on May 9, 2008 2:31:22 GMT -5
well if you want me to find anything out just tell me what to do.
|
|
|
Post by Moongaze on May 9, 2008 2:44:42 GMT -5
For now, try this: /script Lunar.API:Print(ITEM_SPELL_CHARGES);At least it will let me what the phrase looks like and I can see if they just combined them into one Other that that, not much I can do until I get the PTR client. You can try placing the "Addon Kit" program from Blizzard into the wowtest PTR folder and extract the interface Data (not art, don't need that) and if it work, there should be a folder: Blizzard Interface Data (enUS)\FrameXML And in it, GlobalStrings.lua. In that file (alphabetical FTW) you should be able to find: ITEM_SPELL_CHARGES There might be others next to it with extra stuff, like: ITEM_SPELL_CHARGES ITEM_SPELL_CHARGES_P1 ITEM_SPELL_CHARGES_NONE I just need to know what there is with that name.
|
|
|
Post by lothaer on May 9, 2008 3:12:42 GMT -5
i found these
ITEM_SPELL_CHARGES = "%d |4Charge:Charges;"; -- Spell charges on an item ITEM_SPELL_CHARGES_NONE = "No charges"; -- Used in the tooltip when charges = 0 on items that are not consumed
there was no ITEM_SPELL_CHARGES_P1
would you like me to send you the file?
also /script Lunar.API:Print(ITEM_SPELL_CHARGES); printed "%d charges"
|
|
|
Post by Moongaze on May 9, 2008 13:33:15 GMT -5
"%d |4Charge:Charges;" I have never seen that string pattern before. Huh ... is that a conditional in LUA string patterns? I didn't think those existed ... I'll have to check the wiki for that information. Thanks Lothaer!
|
|
|
Post by lothaer on May 9, 2008 14:05:45 GMT -5
nps mate
|
|
|
Post by Exuro on May 9, 2008 15:20:32 GMT -5
Code Moon hasn't seen before? I'm scared!
|
|
larania
Very Talkative Beta Tester
Posts: 128
|
Post by larania on May 10, 2008 10:19:09 GMT -5
Me too...
|
|