發表文章

8.1.10

After this release, I guess CensusPlus C. would be in maintenance mode. I guess most works are all done (except ... localizations, which I don't know if there is anyone who really needs this ...) Please post your thoughts in the discussions on github or leave some comments on the addon page if there are any bugs or possible improvements~ https://www.curseforge.com/wow/addons/censusplus-community https://www.wowinterface.com/downloads/info26901-CensusPlusCommunity.html

Useful WOW interface development resources

After working for around 1 month, I finally bring back the CensusPlus (C.). The journey contains full of challenges. I googled a lot of questions and problems, and thanks everyone who shared the experiences and solutions which all provide significant helps. I want to share the most helpful resources here. I have mainly got comprehension of Lua and Blizzard WOW API from them: 1. World of Warcraft Wiki ( warcraft.wiki.gg ) I would say, it's amazing. Without this site, I will never get over to understand how the add-ons worked. I almost treated this site as the official WOW API documentation and interface guides. 2. WOW Interface ( www.wowinterface.com ) This forum looks like the only site which the addon creators exchanges their experiences on. I found solutions of lots tricky problems here. Even the information that some functions never work again helps a lot. 3. AI Mainly Gemini since I have the Google One membership, but I guess others could help as well. The AI assistant can offe...

New release 8.1.9

Ahhh, a critical bug was found just after the releasing of 8.1.8! The total count of characters is actually incorrect :-( Quickly spent some time to fix it and now I guess it should work fine. Have fun! https://www.curseforge.com/wow/addons/censusplus-community https://www.wowinterface.com/downloads/info26901-CensusPlusCommunity.html

Official Release 8.1.8!

圖片
  After efforts for several months, there is finally a released version for CensusPlus Community! The download links: CurseForge:  https://www.curseforge.com/wow/addons/censusplus-community WowInterface:  https://www.wowinterface.com/downloads/info26901-CensusPlusCommunity.html

Census Plus Community 8.0.7a is released

圖片
CensusPlus Community 8.0.7a  has been released. There are still lots of broken functions, but yes, it's working now. I'll start working on the new races and classes lacked there, perhaps the locale issues as well since due to the nature of SendWho API - it's actually accepts locale aware strings - it would be difficult to work on it among different clients. I don't know, I guess, maybe I should start from WhoLib to resolve this for the people.

Strange behaviors

I feel sometimes there are strange behaviors in WOW addon codes. For example, the timing of UnregisterAllEvents() is a little bit strange. When UnregisterAllEvents() is invoked, it will take effect in the next update (i.e., if you perform operations that fires the event in the same function, your handler will still get it). However, this is randomly happening. For example, with the following code: local frame = CreateFrame('Frame') frame:RegisterEvent('CHAT_MSG_SYSTEM') frame:SetScript('OnEvent', function() print('got event') end) C_Timer.After(1, function()   frame:UnregisterAllEvents()   SendChatMessage('test', 'DND') end) Occasionally, it shows "got event". Furthermore, recently, I had seen "You are now Busy: DND" when I invoked SendChatMessage('', 'DND') which is expected to show "You are no longer marked Busy."

The best system event to fire arbitrarily from an addon

If you want to fire an system event that you can listen by Frame:RegisterEvent() , consider  SendChatMessage([SOME MESSAGE], 'DND') . It is not hardware event protected, which can be freely invoked several times in an addon. In fact, it's not useful for a regular addon, but I guess it would be good for some testing purposes.