Quantcast WoWInterface - Search Results
Showing results 1 to 25 of 500
Search took 0.05 seconds.
Search: Posts Made By: SDPhantom
Forum: PTR API and Graphics Changes 06-19-18, 02:19 AM
Replies: 31
Views: 7,091
Posted By SDPhantom
That's the point though, it's not just memory....

That's the point though, it's not just memory. When the garbage collection is called more often, it eats up cycles and becomes a CPU problem.
Forum: PTR API and Graphics Changes 06-18-18, 05:54 AM
Replies: 31
Views: 7,091
Posted By SDPhantom
This is getting off topic. The discussion is how...

This is getting off topic. The discussion is how to counteract the memory impact of calling C_Map.GetPlayerMapPosition() frequently.
Forum: PTR API and Graphics Changes 06-15-18, 05:53 PM
Replies: 31
Views: 7,091
Posted By SDPhantom
It's just how Lua handles tables, and it's been a...

It's just how Lua handles tables, and it's been a constant issue I've had with Blizzard's trend with their APIs lately. Every time an API is called that returns a table, it takes up a small chunk of...
Forum: Lua/XML Help 05-19-18, 12:41 AM
Replies: 3
Views: 403
Posted By SDPhantom
Here's what I came up with as well as improving...

Here's what I came up with as well as improving the code.


local UnitAffectingCombat=UnitAffectingCombat;
local SecureButton_GetUnit=SecureButton_GetUnit;

local Textures={};-- Texture object lookup...
Forum: AddOn Help/Support 04-29-18, 06:02 PM
Replies: 1
Views: 435
Posted By SDPhantom
The only way I can think of is check the tooltip...

The only way I can think of is check the tooltip for a mouseover unit when it pops up and query it for a UnitGUID(). This is if the game triggers the tooltip with tooltip:SetUnit() instead of just...
Forum: News 04-22-18, 06:13 PM
Replies: 18
Views: 22,433
Posted By SDPhantom
Probably, though at this stage in Legion, keys...

Probably, though at this stage in Legion, keys were already being given out and it was only a matter of weeks before beta rolled out.
Forum: Lua/XML Help 08-23-17, 09:11 PM
Replies: 4
Views: 570
Posted By SDPhantom
Be aware if you use frame:GetCenter(), the...

Be aware if you use frame:GetCenter(), the numbers you get may be raw coordinates not taking into account UI scaling or anchor offsets. In this case, it's based off the coordinates at the bottom left...
Forum: Lua/XML Help 08-23-17, 04:14 AM
Replies: 4
Views: 570
Posted By SDPhantom
Long story short, the variables don't actually...

Long story short, the variables don't actually store the table itself. They store a pointer that tells Lua where the table data is. This means when the Ace profile changes, dbsetting remains pointing...
Forum: Lua/XML Help 08-09-17, 11:32 PM
Replies: 16
Views: 877
Posted By SDPhantom
What happens add this at the top of the...

What happens add this at the top of the function?
max = max or 0
This will force max to be zero if nil is passed.
Forum: General Authoring Discussion 08-09-17, 11:18 PM
Replies: 1
Views: 462
Posted By SDPhantom
The limitations on secure hooking is actually...

The limitations on secure hooking is actually part of its design. This and the entire taint system was built to stop addons from setting up or executing various automated tasks.
Forum: Lua/XML Help 07-28-17, 02:51 PM
Replies: 15
Views: 651
Posted By SDPhantom
Most character information is ready by the time...

Most character information is ready by the time PLAYER_LOGIN fires. I don't know about these functions specifically though.
Forum: Lua/XML Help 07-28-17, 02:40 PM
Replies: 6
Views: 564
Posted By SDPhantom
Explaining why, {}=={} is not doing anything...

Explaining why, {}=={} is not doing anything special to compare values in tables. What it does is create two completely different tables and compare their pointers. Since they are exactly two...
Forum: Lua/XML Help 07-28-17, 10:19 AM
Replies: 5
Views: 1,035
Posted By SDPhantom
Blizzard never saw the need for this data to...

Blizzard never saw the need for this data to exist, so they don't give it to us.
Forum: Lua/XML Help 07-28-17, 10:16 AM
Replies: 11
Views: 595
Posted By SDPhantom
The example you provided is for C code. While it...

The example you provided is for C code. While it is possible to emulate this in Lua, the performance impacts of doing so is far different. Not only is Lua code far slower than C, but you don't have...
Forum: Lua/XML Help 07-27-17, 02:39 PM
Replies: 11
Views: 595
Posted By SDPhantom
Trying to track the top X entries would be too...

Trying to track the top X entries would be too much work that would ultimately lead to minuscule if any benefit at all. It's entirely possible that the resulting code would have worse performance. If...
Forum: Lua/XML Help 07-27-17, 06:19 AM
Replies: 11
Views: 595
Posted By SDPhantom
The problem with trying to sort BangCharKills...

The problem with trying to sort BangCharKills directly is that the keys are not numeric. Sorting doesn't work unless they are numeric and sequential. KillSort() returns a sorted list by taking the...
Forum: Lua/XML Help 07-26-17, 07:58 AM
Replies: 11
Views: 595
Posted By SDPhantom
Here's what I came up with. I completely rewrote...

Here's what I came up with. I completely rewrote the sorting algorithm to support names as keys and kill count as values.


local KillSort;-- Function prototype (Any functions defined with this name...
Forum: Macro Help 07-06-17, 05:27 PM
Replies: 4
Views: 812
Posted By SDPhantom
It should also be noted help/harm implies exists....

It should also be noted help/harm implies exists. It's redundant to specify both in a condition.
Forum: Tutorials & Other Helpful Info. 07-03-17, 01:52 PM
Replies: 8
Views: 1,740
Posted By SDPhantom
There was already a discussion on this. 54784

There was already a discussion on this.
54784
Forum: Lua/XML Help 07-03-17, 01:48 PM
Replies: 3
Views: 521
Posted By SDPhantom
You need a UnitID to be able to get reaction...

You need a UnitID to be able to get reaction colors. I'm guessing since you're using GUID that this is coming from a chat event, which can come from things without valid UnitIDs.
Forum: Lua/XML Help 06-27-17, 04:43 PM
Replies: 12
Views: 722
Posted By SDPhantom
HIGHLIGHT is a special layer that only shows on...

HIGHLIGHT is a special layer that only shows on mouseover. Don't use it unless you need this behavior.
Forum: Macro Help 05-18-17, 08:47 AM
Replies: 7
Views: 905
Posted By SDPhantom
UnitExists("target") should work fine.

UnitExists("target") should work fine.
Forum: AddOn Search/Requests 05-18-17, 07:41 AM
Replies: 14
Views: 1,671
Posted By SDPhantom
.cmd is technically the extension to use in...

.cmd is technically the extension to use in WinNT-derived (2000, XP, and newer) systems, though .bat still works for legacy support with no real difference between them. The Windows Command interface...
Forum: AddOn Search/Requests 05-17-17, 10:13 AM
Replies: 14
Views: 1,671
Posted By SDPhantom
In my experience, Blizzard keeps recreating empty...

In my experience, Blizzard keeps recreating empty folders for internal LoD addons, so they shouldn't be marked for deletion. I modified the script I posted earlier to run a regex match and skip...
Forum: AddOn Search/Requests 05-16-17, 10:24 PM
Replies: 14
Views: 1,671
Posted By SDPhantom
I wrote this Windows Command script a long time...

I wrote this Windows Command script a long time ago to get rid of extraneous backup files and abandoned saved variables.


@echo off
pushd "C:\Program Files (x86)\World of Warcraft\WTF\Account"

del...
Showing results 1 to 25 of 500