Showing results 1 to 25 of 185
Search took 0.01 seconds.
Search: Posts Made By: Choonstertwo
Forum: Lua/XML Help 07-09-15, 02:15 PM
Replies: 3
Views: 276
Posted By Choonstertwo
Each Lua file in your AddOn is called with two...

Each Lua file in your AddOn is called with two arguments: the AddOn's folder name and a table unique to the AddOn (often called namespace or ns). You can use the namespace table to store your AddOn's...
Forum: Dev Tools 07-08-15, 09:45 AM
Replies: 47
Views: 7,009
Posted By Choonstertwo
I'm getting a "Fetching failed with status 128"...

I'm getting a "Fetching failed with status 128" error when forcing an update on one of my AddOns.

Full log:Jul 08 08:38:14 choonster-wow-addons heroku/router: at=info method=GET...
Forum: Lua/XML Help 06-25-15, 12:28 PM
Replies: 5
Views: 286
Posted By Choonstertwo
Resike's code is getting the WorldMapFramePOI1...

Resike's code is getting the WorldMapFramePOI1 and WorldMapFramePOI1Texture objects, your code is getting the WorldMapFramePOI1 object and then attempting to concatenate that with the "Texture"...
Forum: Lua/XML Help 06-24-15, 05:11 PM
Replies: 8
Views: 402
Posted By Choonstertwo
XML doesn't allow any sort of conditional...

XML doesn't allow any sort of conditional declaration (i.e. you can't say "only declare template X when Y is true").
Forum: Lua/XML Help 06-24-15, 04:17 PM
Replies: 8
Views: 402
Posted By Choonstertwo
To my knowledge, the Lua environment doesn't know...

To my knowledge, the Lua environment doesn't know anything about virtual objects.
Forum: General Authoring Discussion 06-23-15, 08:26 AM
Replies: 20
Views: 1,216
Posted By Choonstertwo
I ended up using BankNorris' code from post #20,...

I ended up using BankNorris' code from post #20, which you can see here (https://github.com/Choonster-WoW-AddOns/KillingBlow_Enhanced/blob/d3904c973138dcffa04e952661427f519b0c60fc/core.lua). Thanks...
Forum: General Authoring Discussion 06-18-15, 01:53 PM
Replies: 20
Views: 1,216
Posted By Choonstertwo
Thanks for all the responses. I already have...

Thanks for all the responses. I already have arenas and BGs working, but I hadn't actually considered FFA PvP zones (I never did much PvP myself); I was only thinking of the three World PvP zones...
Forum: Lua/XML Help 06-17-15, 01:41 PM
Replies: 8
Views: 489
Posted By Choonstertwo
Some AddOn's SavedVariables file (it may or may...

Some AddOn's SavedVariables file (it may or may not be Skada's) is taking up a large amount of memory when loaded so WoW ran out of memory when trying to load Skada's SavedVariables file. Does it...
Forum: Lua/XML Help 06-17-15, 01:25 PM
Replies: 8
Views: 489
Posted By Choonstertwo
Notice that ["barheight"] = 12 is part of a table...

Notice that ["barheight"] = 12 is part of a table inside the windows table, the data isn't in the windows table itself. This inner table is at index 1 of the windows table.

When you put values...
Forum: General Authoring Discussion 06-17-15, 09:51 AM
Replies: 20
Views: 1,216
Posted By Choonstertwo
Thanks for that. So it's safe to assume that the...

Thanks for that. So it's safe to assume that the user is in an active World PvP zone from when BATTLEFIELD_MGR_ENTERED fires up until BATTLEFIELD_MGR_EJECTED, BATTLEFIELD_MGR_STATE_CHANGED or...
Forum: General Authoring Discussion 06-17-15, 06:18 AM
Replies: 20
Views: 1,216
Posted By Choonstertwo
Do you know whether that returns true only during...

Do you know whether that returns true only during an active battle or any time you're in a World PvP zone? Do you know which event to listen for to know when the return value changes? Unfortunately I...
Forum: General Authoring Discussion 06-15-15, 09:03 AM
Replies: 20
Views: 1,216
Posted By Choonstertwo
Just for future reference: When you enter a new...

Just for future reference:


When you enter a new continent/instance (including when you first log in), PLAYER_ENTERING_WORLD and ZONE_CHANGED_NEW_AREA are fired in that order. When...
Forum: General Authoring Discussion 06-15-15, 08:03 AM
Replies: 20
Views: 1,216
Posted By Choonstertwo
That's a good idea. Using GetInstanceInfo, I can...

That's a good idea. Using GetInstanceInfo, I can at least avoid calling SetMapToCurrentZone on every continent except Northrend.
Forum: General Authoring Discussion 06-15-15, 03:42 AM
Replies: 20
Views: 1,216
Posted By Choonstertwo
Thanks, I'll use that approach.

Thanks, I'll use that approach.
Forum: General Authoring Discussion 06-14-15, 10:43 PM
Replies: 20
Views: 1,216
Posted By Choonstertwo
Detecting World PvP Zones

Someone has recently commented (http://www.curse.com/addons/wow/killingblow_enhanced#c57) on my KillingBlow_Enhanced AddOn that it doesn't work in Ashran when PvP only mode (i.e. only report killing...
Forum: Site help, bugs, suggestions/questions 03-06-15, 05:00 PM
Replies: 4
Views: 874
Posted By Choonstertwo
There's been a few threads asking about...

There's been a few threads asking about it:
http://www.wowinterface.com/forums/showthread.php?t=50250
http://www.wowinterface.com/forums/showthread.php?t=51528

Dolby responded here...
Forum: Lua/XML Help 02-18-15, 06:38 PM
Replies: 4
Views: 682
Posted By Choonstertwo
You could use StopSound...

You could use StopSound (http://wow.gamepedia.com/API_StopSound) with the sound handle returned by PlaySoundFile to stop the file immediately after playing it during the testing phase.
Forum: Lua/XML Help 02-13-15, 07:35 AM
Replies: 27
Views: 2,885
Posted By Choonstertwo
Ro posted a talent-swapping macro here...

Ro posted a talent-swapping macro here (http://us.battle.net/wow/en/forum/topic/9377380018#7), but apparently it's not always reliable when trying to switch multiple talent tiers at once.

You could...
Forum: Lua/XML Help 02-04-15, 10:27 AM
Replies: 15
Views: 1,227
Posted By Choonstertwo
That's only in XML. Passing nil to CreateFrame in...

That's only in XML. Passing nil to CreateFrame in Lua actually passes nil.
Forum: Lua/XML Help 02-04-15, 09:34 AM
Replies: 15
Views: 1,227
Posted By Choonstertwo
Just use nil:newButton = CreateFrame("Button",...

Just use nil:newButton = CreateFrame("Button", nil, ORC_UserFrame);
Forum: AddOn Search/Requests 02-03-15, 11:15 AM
Replies: 6
Views: 1,043
Posted By Choonstertwo
Here's a direct link...

Here's a direct link (http://wow.gamepedia.com/Viewing_Blizzard%27s_interface_code).
Forum: General Authoring Discussion 02-03-15, 03:10 AM
Replies: 14
Views: 1,706
Posted By Choonstertwo
Even though Lua doesn't have constants, there's...

Even though Lua doesn't have constants, there's nothing stopping you from using a normal local variable like a constant:
local RIPTIDE_ID = 61295

-- ...

if GetSpellCooldown(RIPTIDE_ID) == 0...
Forum: Lua/XML Help 02-03-15, 03:07 AM
Replies: 4
Views: 854
Posted By Choonstertwo
ntex:SetVertexColor("color_normal") You're...

ntex:SetVertexColor("color_normal")

You're passing a string to SetVertexColor instead of the RGBA values it expects.

This is what you want:ntex:SetVertexColor(unpack(color_normal))

This unpacks...
Forum: Lua/XML Help 01-31-15, 04:41 AM
Replies: 21
Views: 1,796
Posted By Choonstertwo
This isn't actually stripping properly, it's just...

This isn't actually stripping properly, it's just broken in such a way that it looks like it's working.

ť and Í are both two-byte characters that share their first byte. When you use ť in the...
Forum: Lua/XML Help 01-30-15, 08:09 PM
Replies: 21
Views: 1,796
Posted By Choonstertwo
You could use a slightly less restrictive pattern...

You could use a slightly less restrictive pattern that matches everything after the first dash:("PLAYERNAME-Aggra(PortuguÍs)"):gsub("%-.+", "")

You could also use the WoW-specific strsplit...
Showing results 1 to 25 of 185