Reminders before 4.2 goes live
Just a few notes for everyone since all the signs are pointing to 4.2 going live next week (barring any major bugs showing up that delays its release):
|
Quote:
Addon Author: That's right! Every time they make a WoW patch, they burn our addons down! |
Quote:
|
Hey, as long as changes are for the better and/or make sense (which I've never come across an API change that did not meet those criteria - not that I can remember, anyway), I don't care. :)
|
Having a "find in files" text editor one could search for "COMBAT_LOG_EVENT" (case sensitive) and find all the addons that use these events, hence know what to update and what won't be affected by the combat log change. :)
|
lawlfourpointone |
string.replace is gone
COMBAT_LOG_EVENT_UNFILTERED is not the only change that will affect addons when 4.2 goes live. I author an addon that used string.replace to remove unneeded spaces from a string, only to find that Blizzard decided to remove string.replace for some strange reason.
|
Quote:
Quote:
|
Hmm, does this mean that since string.replace is gone then using ("text"):replace(...) or strreplace(...) also not work? :S
|
Quote:
About the FrameXML, here are the strreplace diffs..
|
|
I had no idea that even existed, I've always used gsub.
|
Quote:
|
Quote:
|
Simply converting all string.replace/strreplace/:replace into "gsub" won't do as you got to escape certain characters. Yet it appears that Blizzard just did a mass "find and replace" on the few lines I read but maybe not, in any case addon authors gotta watch this and get familiar with how gsub and patterns work with lua for 4.2 I figure.
Strange isn't it, removing string.replace? I wonder why... |
So is it confirmed the 4.2 will be on live server on June 28th?
|
Quote:
|
Quote:
Quote:
I never came across the bug because my strings were never very long, as they were just a list of tanks that are currently in my party. |
Hmm, darn windows search isn't finding a single COMBAT_LOG_EVENT_UNFILTERED in the addons folder. That simply cannot be right. I knew there was a reason I stopped using that search system.
Edit: Ah, programmers notepad to the rescue, haha. But thankfully the only ones of my own addons that use it are about 4 years old and I'm sure they're no longer used by now unless they have miraculously been working all these years with no problems. |
There's a specific thing you need to do to make it search in Lua and XML files. Unfortunately, I forgot it as soon as I did it. :)
|
All times are GMT -6. The time now is 06:59 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI