• 0

    posted a message on Addons are now enabled on MoP
    Quote from Morsker
    The weirdest thing I've seen so far is that GetNumPartyMembers and GetNumRaidMembers are gone. I haven't found the alternatives yet.

    http://www.wowpedia.org/Patch_5.0.1/API_changes
    GetNumPartyMembers, GetNumRaidMembers -> GetNumGroupMembers 
    Posted in: General Chat
  • 0

    posted a message on FauxScrollFrameTemplate XML to LUA
    Quote from DarfRazer
    Hello,
    write addons is new for me.

    My first addon test is translate the FauxScrollFrameTemplate XML part to LUA. I will not use XML.

    http://www.wowwiki.com/Making_a_scrollable_list_using_FauxScrollFrameTemplate

    That WoWWiki/Wowpedia article you linked is horribly outdated
    Posted in: Lua Code Discussion
  • 0

    posted a message on Packager issues
    Is it me, or did the author from PetEmote delete his remote (master) branch?
    I can't pull anything from his repository

    *If that's got anything to do with why the packager was sleeping
    Posted in: General Chat
  • 0

    posted a message on Panda faction (MoP beta)
    I also don't have access to the MoP beta, but I looked through the FrameXML though

    P3lim also posted these events/API
    No idea about the PLAYER_LEVEL_UP ..
    Posted in: Lua Code Discussion
  • 0

    posted a message on Coordinates on target
    There is GetPlayerMapPosition but it doesn't seem to work on NPCs
    Posted in: Lua Code Discussion
  • 0

    posted a message on GetGuildInfo("unit") lua error
    Quote from oscarucb
    This is a dangerous suggestion. In general addons have no business blindly modifying private members of FrameXML classes. However if you choose to follow this strategy it is VERY important that you never modify InspectFrame.unit while the InspectFrame is shown - I've seen two separate addons do that in a broken attempt to silence this error, and it can cause the Inspect window to break in VERY strange ways.

    But I also did mention that, later up in my previous post, to not modify InspectFrame.unit while the InspectFrame was shown ..
    Posted in: Lua Code Discussion
  • 0

    posted a message on Facebook Integration
    like funkydude said

    closest you can get is maybe an overlay from an IM client, similar to TeamSpeak/Ventrilo*
    Posted in: Addon Ideas
  • 0

    posted a message on my first addon
    ehmm can we see ur .toc?
    Posted in: Lua Code Discussion
  • 0

    posted a message on [Grid2] Lack of Swiftmendable status
    So this prevents absolutely nobody from creating a new addon and calling it "Grid3" even if they had nothing to do with say Grid1 or Grid2?
    Posted in: Addon Ideas
  • 0

    posted a message on BNAcceptFriendInvite
    Just tested it with Phanx' code. It does not seem to require a hardware event

    (Although I didn't have any actual real id friend invite to test it on)
    Posted in: Lua Code Discussion
  • 0

    posted a message on LoadURLIndex and CONFIRM_LAUNCH_URL ???
    Quote from Dridzt
    This globalstring from 4.3.4 client makes me wonder...
    [...]
    I wonder if LoadURLIndex(data) can be called from addons with arbitrary URLs or index refers exclusively to one of
    VISITABLE_URL1 = "http://enUS.nydus.battle.net/WOW/enUS/client/in_game_mail_link_1?r=US&l=%s&sr=%u&c=%x%x";
    VISITABLE_URL2 = "http://enUS.nydus.battle.net/WOW/enUS/client/trial_restriction_error_1?region=US&accountName=%s";
    VISITABLE_URL3 = "http://enus.nydus.battle.net/wow/enUS/client/item-restoration";
    VISITABLE_URL_GENERIC = "http://enUS.nydus.battle.net/WOW/enUS/client/in_game_mail_link_%d";


    Edit2: Posted this here as it might be related to the "Addons cannot access anything outside of WoW" stipulation if these changes allow us to send a url to the browser.
    Feel free to delete or move it if it proves irrelevant.

    I just tested it on Live and it indeed seems it exclusively accepts the indices for the GlueStrings you mentioned
    (and if it didn't receive a valid index that it would otherwise fallback to VISITABLE_URL_GENERIC)
    /run LoadURLIndex('http://www.google.com/')
    Message: [string "LoadURLIndex('http://www.google.com/')"] line 1:
       Usage: LoadURLIndex(index)

    Amazingly, it's not a secure function and doesn't require a hardware event, so it can indeed be called from addons (o.O)
    Posted in: Lua Code Discussion
  • 0

    posted a message on ReportPlayer protected in 4.3.4 ?
    I just tried it on the 4.3.4 PTR though (build 15595) *
    (EU Live servers are still down atm)

    • I could call it fine with the /run script on some random person. Also could call it while in combat
    • It seems to be hardware event protected, when I tried it with an addon
    Message: Warning: AddOn Test attempted to call a protected function (ReportPlayer()) which may require interaction.
    Debug:
       [C]: ReportPlayer()
       Test\Test.lua:3:
          Test\Test.lua:1
    local function OnEvent(self, event, ...)
    	local lineid = select(11, ...)
    	ReportPlayer(PLAYER_REPORT_TYPE_SPAM, lineid)
    end
    
    local f = CreateFrame("Frame")
    f:RegisterEvent("CHAT_MSG_SAY")
    f:SetScript("OnEvent", OnEvent)

    Oh well that sucks. I use BadBoy too
    and that's one unhappy 4th addon birthday
    Posted in: Lua Code Discussion
  • 0

    posted a message on GetGuildInfo("unit") lua error
    I don't know what InspectFix does exactly, but ..

    in one of my addons I use a workaround, by setting InspectFrame.unit to yourself
    This should at least prevent InspectGuildFrame_Update() line 18 from giving an error

    Setting it to "player" should be safer than e.g. "none", "target" or the applicable unit id, since otherwise it still has a chance to give an error a bit further up at line 25

    The idea is that it doesn't really matter what unit id it's set to, as long as it won't give an error, and since there isn't any actual inspecting going on anyway
    1. Blizzard_InspectUI is loaded and InspectFrame is shown -> don't NotifyInspect()

    2. Blizzard_InspectUI is loaded and InspectFrame is not shown -> NotifyInspect(), set InspectFrame.unit to "player"
    3. Blizzard_InspectUI is not loaded -> NotifyInspect()
    This is my example code:
    if CanInspect(unit) then
    	if InspectFrame then
    		if not InspectFrame:IsShown() then
    			InspectFrame.unit = "player"
    			NotifyInspect(unit)
    		end
    	else
    		NotifyInspect(unit)
    	end
    end

    This thread's subject is only about safely calling NotifyInspect() to avoid this Blizzard error in particular right?

    Edit: It seems this bug will be fixed in MoP
    (5.0.1.15589) AddOns/Blizzard_InspectUI/InspectGuildFrame.lua Line 7
    Posted in: Lua Code Discussion
  • 0

    posted a message on [pkgmeta] Embeding AceGUI-3.0-SharedMediaWidgets without duplicate libraries
    Am I missing something? Because I don't understand what everyone is talking about which makes me feel kinda stupid ._.
    Posted in: General Chat
  • 0

    posted a message on [pkgmeta] Embeding AceGUI-3.0-SharedMediaWidgets without duplicate libraries
    Quote from Phanx
    I don't understand what you think is a problem...

    If you look at Grid, you can clearly see the AceGUI-3.0-SharedMediaWidgets files in the Grid/Libs/AceGUI-3.0-SharedMediaWidgets folder, and none of AceGUI-3.0-SharedMediaWidgets's externals. Just copy Grid's embed paths:

    In your .pgkmeta file:
    externals:
        Libs/AceGUI-3.0-SharedMediaWidgets: svn://svn.wowace.com/wow/ace-gui-3-0-shared-media-widgets/mainline/trunk/AceGUI-3.0-SharedMediaWidgets


    In your TOC file:
    Libs\AceGUI-3.0-SharedMediaWidgets\widget.xml


    You will get the library files, without the library's .pkgmeta, the library's TOC, or the library's embeds/externals.

    Where is the problem? ???


    Phanx, I tried out the embed paths you suggested, and did a test commit and afterwards a test tag

    But the following made me believe you were looking at an alpha of Grid:
    • In this alpha build of ScrollingChatText, the external libs from AceGUI-3.0-SharedMediaWidgets didn't get included (I was dumbfounded for a second*)

    • But in the release build, they got included again
    *When I checked the alpha build, I first thought it had something to do with omitting the "url" and "tag" words in the .pkgmeta, since I already had exactly the same embed paths you showed in your post. But my presumption got debunked since these external libs were packaged again in the release build

    I think you should check it for yourself; AceGUI-3.0-SharedMediaWidgets' external libs are embedded in the latest release build of Grid, but not in the latest alpha build
    Posted in: General Chat
  • To post a comment, please or register a new account.