Showing results 1 to 25 of 79
Search took 0.01 seconds.
Search: Posts Made By: Sharparam
Forum: Lua/XML Help 08-19-14, 02:52 PM
Replies: 17
Views: 695
Posted By Sharparam
I'm not sure if there's a performance benefit to...

I'm not sure if there's a performance benefit to declaring those local variables outside of the for loop, as they are reassigned each loop iteration anyway (although I could be wrong). There's also...
Forum: AddOn Search/Requests 08-15-14, 06:19 PM
Replies: 21
Views: 1,279
Posted By Sharparam
Problem is you can end up with a lot of stuff...

Problem is you can end up with a lot of stuff storing data in guild notes that are either incompatible with each other or use up the severely limited space (seriously, why hasn't Blizz given us more...
Forum: AddOn Search/Requests 08-15-14, 01:36 PM
Replies: 21
Views: 1,279
Posted By Sharparam
The whole data collection part is probably not...

The whole data collection part is probably not that difficult to implement, sharing it is probably also pretty easy (but needs several messages to transfer notes unless they are limited in length,...
Forum: Lua/XML Help 08-07-14, 11:25 AM
Replies: 6
Views: 267
Posted By Sharparam
The issue is most likely that you're running the...

The issue is most likely that you're running the myAddon_OnLoad function at the end of the file, rather than when your addon has actually loaded. So the Saved Variables have not been initialized at...
Forum: Lua/XML Help 08-07-14, 10:49 AM
Replies: 6
Views: 267
Posted By Sharparam
Can you post the complete code (including TOC)?

Can you post the complete code (including TOC)?
Forum: Lua/XML Help 08-07-14, 08:59 AM
Replies: 6
Views: 267
Posted By Sharparam
You would have a "defaults" table defined in your...

You would have a "defaults" table defined in your AddOn that you then pass to CopyDefaults in ADDON_LOADED, so something like the following:


local defaults = {
foo = "hello world",
bar = { key...
Forum: AddOn Help/Support 08-06-14, 08:02 PM
Replies: 13
Views: 568
Posted By Sharparam
That part of the code uses the obsolete "argn"...

That part of the code uses the obsolete "argn" notation, so it would have to be updated to use proper Lua vararg instead. There is likely to be similar issues in other places as well.
Forum: AddOn Help/Support 08-06-14, 08:36 AM
Replies: 13
Views: 568
Posted By Sharparam
You could try replacing lines 597 through 603 in...

You could try replacing lines 597 through 603 in Core.lua with this:


function AIBot:ChatCommand(input)
if not input or input:trim() == "" then
...
Forum: Lua/XML Help 08-05-14, 10:47 AM
Replies: 8
Views: 312
Posted By Sharparam
You can get around the "not defined" issue by...

You can get around the "not defined" issue by forward-declaring functions:


local b

local function a() b() end

function b() print 'foo' end
Forum: Lua/XML Help 08-05-14, 10:30 AM
Replies: 8
Views: 184
Posted By Sharparam
Because there is no nil error in the call. {nil,...

Because there is no nil error in the call. {nil, nil} doesn't evaluate to nil, it evaluates to an empty table: {}. But since it has no values there is nothing to iterate over and the loop is...
Forum: General Authoring Discussion 07-28-14, 10:39 AM
Replies: 7
Views: 840
Posted By Sharparam
For an AddOn I'm developing in MoonScript...

For an AddOn I'm developing in MoonScript (http://moonscript.org/), I use a Python script (https://github.com/SharpWoW/ShareXP/blob/master/archive.py) to compile *.moon files and put results in a zip...
Forum: General Authoring Discussion 07-28-14, 04:09 AM
Replies: 7
Views: 840
Posted By Sharparam
I don't think it has such a feature at all...

I don't think it has such a feature at all (granted, I haven't really used the WoWI packager so I could be wrong).
Forum: Lua/XML Help 05-22-14, 03:06 AM
Replies: 6
Views: 635
Posted By Sharparam
At least if Blizzard has finally decided how to...

At least if Blizzard has finally decided how to handle cross-realm stuff across the board. It seemed to be going back and forth several times over. Removing and adding realm suffixes like crazy...
Forum: Lua/XML Help 05-22-14, 01:20 AM
Replies: 6
Views: 635
Posted By Sharparam
But what if you don't have a unit handy?

But what if you don't have a unit handy?
Forum: AddOn Search/Requests 04-29-14, 03:42 AM
Replies: 3
Views: 574
Posted By Sharparam
Working on an xp sharing addon at...

Working on an xp sharing addon at https://github.com/SharpWoW/ShareXP

For XP only, no quest sharing, but there are a number of addons that include that functionality (Carbonite is the only one I can...
Forum: AddOn Search/Requests 04-22-14, 08:20 AM
Replies: 18
Views: 1,462
Posted By Sharparam
But what are these errors you are getting?

But what are these errors you are getting?
Forum: AddOn Search/Requests 04-22-14, 05:21 AM
Replies: 18
Views: 1,462
Posted By Sharparam
As Phanx, I haven't experienced any issues with...

As Phanx, I haven't experienced any issues with overachiever either, and I use it all the time. Could this be some collision with another addon?

Edit: It would also help if you told us what errors...
Forum: Lua/XML Help 04-17-14, 06:07 AM
Replies: 13
Views: 977
Posted By Sharparam
Pretty sure that's how it works. The garbage...

Pretty sure that's how it works. The garbage collector goes through objects and disposes of any that don't have any variables referencing them.
Forum: Lua/XML Help 04-17-14, 05:52 AM
Replies: 13
Views: 977
Posted By Sharparam
This is not correct. By doing t.func = nil you...

This is not correct. By doing t.func = nil you are just making t.func no longer reference that function. Any other references to the function are still valid.

You are assigning nil to t.func, not...
Forum: Dev Tools 03-14-14, 05:23 PM
Replies: 11
Views: 4,452
Posted By Sharparam
Also, there is a RESTful API to query item data...

Also, there is a RESTful API to query item data on battle.net: http://blizzard.github.io/api-wow-docs/

Example for castlebreaker bracers: http://eu.battle.net/api/wow/item/103759
(Replace eu with us...
Forum: AddOn Search/Requests 03-14-14, 05:17 AM
Replies: 4
Views: 1,126
Posted By Sharparam
http://www.wowinterface.com/downloads/info4077-Sto...

http://www.wowinterface.com/downloads/info4077-StopTheSpam.html

Is that the AddOn you were thinking about?

It hasn't been updated in quite a while, so it's possible it doesn't work at all anymore...
Forum: AddOn Search/Requests 02-06-14, 07:20 PM
Replies: 14
Views: 1,220
Posted By Sharparam
To fix that error in Phanx's code, remove the...

To fix that error in Phanx's code, remove the parantheses on line 20:

for i = 1, numGroupMembers() do

So it becomes this:

for i = 1, numGroupMembers do

(Seems like she mixed up the local variable...
Forum: AddOn Search/Requests 02-06-14, 07:06 PM
Replies: 14
Views: 1,220
Posted By Sharparam
That's what I get for dry-coding :P I didn't...

That's what I get for dry-coding :P

I didn't really take optimizing into mind though, as this isn't code that gets called 20+ times a second.

Didn't know about GetUnitName, that's a neat function.
Forum: AddOn Search/Requests 02-06-14, 04:56 PM
Replies: 14
Views: 1,220
Posted By Sharparam
You will have to post your AutoMessage.lua as it...

You will have to post your AutoMessage.lua as it seems to be different from the code I posted (line numbers are different). I couldn't find where it would be thrown by looking at the code i...
Forum: AddOn Search/Requests 02-06-14, 06:33 AM
Replies: 14
Views: 1,220
Posted By Sharparam
It's a function in the WoW API to clear a table's...

It's a function in the WoW API to clear a table's values. I believe it's not available in standard Lua.
Showing results 1 to 25 of 79