Quantcast WoWInterface - Search Results
Showing results 1 to 25 of 500
Search took 0.05 seconds.
Search: Posts Made By: myrroddin
Forum: Lua/XML Help 02-14-18, 08:37 PM
Replies: 26
Views: 1,018
Posted By myrroddin
IsFlyableArea() returns true even inside the...

IsFlyableArea() returns true even inside the building within the Garrison. I'll check the cave later, but all the buildings I tested return true, yet you cannot manually cast a mount spell. If such a...
Forum: Lua/XML Help 02-13-18, 01:02 AM
Replies: 5
Views: 188
Posted By myrroddin
Instead of pattern matching, if you need several...

Instead of pattern matching, if you need several sub-events, create a table:
local sub_events = {
"PARTY_KILL" = true,
"UNIT_RESURRECTION" = true,
-- etc
}
Register...
Forum: Lua/XML Help 02-13-18, 12:50 AM
Replies: 26
Views: 1,018
Posted By myrroddin
Garrison = true Lunarfall Excavation/Horde...

Garrison = true
Lunarfall Excavation/Horde equivalent = true
Swimming in Garrison = true
Garrison Shipyard = true

So it looks like all of the garrison areas are true, even if your character...
Forum: Lua/XML Help 02-11-18, 01:00 PM
Replies: 26
Views: 1,018
Posted By myrroddin
Interesting. I play a Demon Hunter and it is...

Interesting. I play a Demon Hunter and it is flyable by the flightmaster but not inside the building itself. That is cool that some classes can fly, perhaps because their class halls are larger?
Forum: Lua/XML Help 02-11-18, 12:19 PM
Replies: 26
Views: 1,018
Posted By myrroddin
Phanx, awesome stuff. Here's a couple of updates,...

Phanx, awesome stuff. Here's a couple of updates, from your GitHub:

Warlords garrisons and Legion class halls are never flyable.

Garrisons are flyable, with the exceptions of the mine, inside...
Forum: Lua/XML Help 02-01-18, 06:45 PM
Replies: 10
Views: 467
Posted By myrroddin
Yes. Each time you modify a Lua file you need to...

Yes. Each time you modify a Lua file you need to reload the UI. If you add or remove a Lua file, you need to completely exit out of the game to make that effective.

I never write XML, but I'll...
Forum: Lua/XML Help 01-30-18, 07:52 AM
Replies: 10
Views: 467
Posted By myrroddin
NotifyChange is primarily used to update the SV...

NotifyChange is primarily used to update the SV table previously registered with AceDB whenever an external method makes a change to a setting.

Usually this is when you have a LDB or minimap button...
Forum: Lua/XML Help 01-30-18, 07:45 AM
Replies: 3
Views: 206
Posted By myrroddin
The vararg method works well, but since you asked...

The vararg method works well, but since you asked about Ace3, here's how to do it using that way.
-- First.lua
-- this creates a table named MyAddOn that can be passed to any Lua file in your...
Forum: Lua/XML Help 01-30-18, 07:26 AM
Replies: 20
Views: 680
Posted By myrroddin
No, because there is nothing wrong with Ace3. I...

No, because there is nothing wrong with Ace3. I looked at your code, and the issue is confusion about Ace3's API, basic WoW Lua, and using ElvUI's code.

Stop looking at ElvUI's code. Just. Please....
Forum: Lua/XML Help 01-24-18, 11:13 AM
Replies: 20
Views: 680
Posted By myrroddin
As an experiment, temporarily remove all .ace...

As an experiment, temporarily remove all .ace from your G table, so it reads like G:OnInitialize, G.db, etc.

Further, I suspect (but can't confirm) that the following line is the root of your issue....
Forum: Lua/XML Help 01-23-18, 08:34 AM
Replies: 20
Views: 680
Posted By myrroddin
Okay, if gempDB the table is populating, and...

Okay, if gempDB the table is populating, and changing settings in game actually does stuff, yet reloading the UI and exiting out of the game do not write to disk, then you probably have a file...
Forum: Lua/XML Help 01-22-18, 08:06 AM
Replies: 20
Views: 680
Posted By myrroddin
This has been mentioned before: AceDB does NOT...

This has been mentioned before: AceDB does NOT write updated values to your saved variables file unless the user changes a setting from the default to something else.

If nothing has been changed...
Forum: Released AddOns 01-22-18, 08:00 AM
Replies: 180
Views: 124,571
Posted By myrroddin
Since the issues posted above your thread were...

Since the issues posted above your thread were fixed in the latest build, InFlight does not need to be updated; it works as intended right now.
Forum: Lua/XML Help 01-20-18, 06:22 AM
Replies: 8
Views: 329
Posted By myrroddin
Ace3 loads your SVs for you during OnInitialize;...

Ace3 loads your SVs for you during OnInitialize; you don't need to load them yourself, unless I am misunderstanding the question.
Forum: Lua/XML Help 01-10-18, 10:39 PM
Replies: 67
Views: 19,778
Posted By myrroddin
This is a huge oversimplification, and is not...

This is a huge oversimplification, and is not 100% accurate, but it gets the point across:
local some_boy = "Harry"
local some_girl = "Sally"
In Lua, since it is single threaded, it executes line 1,...
Forum: Lua/XML Help 01-10-18, 12:57 AM
Replies: 3
Views: 193
Posted By myrroddin
They should still respond, yes. Hiding is exactly...

They should still respond, yes. Hiding is exactly that not making it visible, whereas unregistering an event is exactly how it sounds. Hiding and unregistration are two separate things...
Forum: Lua/XML Help 12-31-17, 08:59 PM
Replies: 8
Views: 385
Posted By myrroddin
function myaddon:OnEnable() ...

function myaddon:OnEnable()
self:RegisterEvent("SOME_EVENT")

-- now call it if you need it right away
self:SOME_EVENT()
end

function myaddon:OnDisable()
...
Forum: Lua/XML Help 12-31-17, 04:23 PM
Replies: 8
Views: 385
Posted By myrroddin
I see you are comparing TukUI/ElvUI code with...

I see you are comparing TukUI/ElvUI code with Ace3 and the game's built-in Lua. No wonder you are confused!

Calling the event handler in OnInit does nothing because you haven't registered the event...
Forum: Lua/XML Help 12-31-17, 04:05 PM
Replies: 7
Views: 267
Posted By myrroddin
The documentation is outdated. WoW returns...

The documentation is outdated. WoW returns numbers, not strings, for icons, and had done so since the 7.x pre-patch.

Edit: I looked at the documentation, and the third return is a fileID, which is a...
Forum: General Authoring Discussion 12-31-17, 04:03 PM
Replies: 1
Views: 202
Posted By myrroddin
Post your library's code.

Post your library's code.
Forum: General Authoring Discussion 12-21-17, 07:14 PM
Replies: 24
Views: 681
Posted By myrroddin
Late to the party... Why not use AddonLoader...

Late to the party... Why not use AddonLoader (https://www.curseforge.com/wow/addons/addon-loader)? It is here (http://www.wowinterface.com/downloads/info11476-AddonLoader.html) on Wowinterface as...
Forum: Lua/XML Help 12-16-17, 07:28 AM
Replies: 1
Views: 264
Posted By myrroddin
PARTY_KILL only checks within your party, as you...

PARTY_KILL only checks within your party, as you noticed. It does not even check if someone in your raid but not in your actual party gets the kill.

What I would do is use UNIT_DIED and from that...
Forum: AddOn Help/Support 12-16-17, 07:21 AM
Replies: 9
Views: 680
Posted By myrroddin
Sure, Curse/Twitch has their Author Rewards...

Sure, Curse/Twitch has their Author Rewards Program, but my main reason for having Curse be my development hub is the easy to use localization system.

Anyone can contribute translations to my...
Forum: Lua/XML Help 12-10-17, 10:13 AM
Replies: 6
Views: 297
Posted By myrroddin
Oh, I just noticed that your OptionalDeps line in...

Oh, I just noticed that your OptionalDeps line in your .toc is missing LibStub and CallbackHandler-1.0, which should be listed before Ace3.

... And double check the order of your listed Ace3...
Forum: Lua/XML Help 12-10-17, 10:08 AM
Replies: 6
Views: 297
Posted By myrroddin
What Seerah said. AceDB does not write anything...

What Seerah said. AceDB does not write anything to the SV file except for the profile keys, unless something has been changed by the user. If the value in the defaults table is the same as the user...
Showing results 1 to 25 of 500