Showing results 1 to 19 of 19
Search took 0.00 seconds.
Search: Posts Made By: Azul
Forum: Lua/XML Help 04-18-09, 02:13 AM
Replies: 49
Views: 37,168
Posted By Azul
Unhappy Forget it. I was hoping somebody could just give...

Forget it. I was hoping somebody could just give me a straight answer to my question. I don't want to waste any more time on this, since all anyone is doing is trying to avoid the question. I'll just...
Forum: Lua/XML Help 04-18-09, 02:01 AM
Replies: 49
Views: 37,168
Posted By Azul
Not limits anywhere near this low. And it's just...

Not limits anywhere near this low. And it's just one function, not several. And I've seen several addons give C stack overflow errors, and they didn't even use local variables at all!



It being...
Forum: Lua/XML Help 04-18-09, 01:56 AM
Replies: 49
Views: 37,168
Posted By Azul
PHP, Python, Lisp, Perl, etc are also scripting...

PHP, Python, Lisp, Perl, etc are also scripting languages.
And stop asking for my code already, please. There's nothing relevant in it other then the fact it has over 60 variables, which you already...
Forum: Lua/XML Help 04-18-09, 01:47 AM
Replies: 49
Views: 37,168
Posted By Azul
I've never encountered any scripting or...

I've never encountered any scripting or programming languages that have a 60 variable limit. This is the first time.



There's really nothing interesting to see in my code. I just have a lot of...
Forum: Lua/XML Help 04-18-09, 01:27 AM
Replies: 49
Views: 37,168
Posted By Azul
Because for some reason (or maybe no reason at...

Because for some reason (or maybe no reason at all?) WoW's addon parser falls over and dies if there are over 60, and I can't find any way around this.

I need over 60 because I have over 60 variable...
Forum: Lua/XML Help 04-18-09, 01:12 AM
Replies: 6
Views: 4,253
Posted By Azul
Well if you want to hook it then you kind of need...

Well if you want to hook it then you kind of need the SlashCmdList[] array, since that is where the slash commands are stored.

If you know ahead of time exactly how many aliases of the /gremove...
Forum: Lua/XML Help 04-18-09, 01:05 AM
Replies: 49
Views: 37,168
Posted By Azul
I think the lag will be worse if I use globals...

I think the lag will be worse if I use globals instead of locals. Your (or their) logic is completely flawed. At the most fundamental level possible.



Because I tried with tables, and it was much...
Forum: Lua/XML Help 04-18-09, 01:03 AM
Replies: 6
Views: 4,253
Posted By Azul
Then use UninviteUnit(name) for party/raid and...

Then use UninviteUnit(name) for party/raid and GuildUninvite(name) for guild.

IsPartyLeader() to see if you can kick from party/raid and CanGuildRemove() to see if you can kick from guild.
Forum: Lua/XML Help 04-18-09, 12:55 AM
Replies: 49
Views: 37,168
Posted By Azul
I'm rather curious what this limit is for, and...

I'm rather curious what this limit is for, and why there is nothing I can call to disable it.
Forum: Lua/XML Help 04-18-09, 12:47 AM
Replies: 49
Views: 37,168
Posted By Azul
Tables are to slow. If there's a decent (not...

Tables are to slow. If there's a decent (not function call, like the extremely slow bit library) way to do bitwise operations in it, I think I could bring the variable count down enough to placate...
Forum: Lua/XML Help 04-18-09, 12:35 AM
Replies: 49
Views: 37,168
Posted By Azul
How do I check for a local foo instead? And be...

How do I check for a local foo instead? And be defined in the function scope instead of the if statement? If this is impossible then defining them inside the update definitely isn't an alternative...
Forum: Lua/XML Help 04-18-09, 12:25 AM
Replies: 49
Views: 37,168
Posted By Azul
They are generated once on load. This process is...

They are generated once on load. This process is very expensive, and can't really be optimized any more then it already is. Their values are (sometimes) modified outside of the OnUpdate by slash...
Forum: Lua/XML Help 04-18-09, 12:15 AM
Replies: 49
Views: 37,168
Posted By Azul
No. Was just simplifying the example to...

No.




Was just simplifying the example to make it easier to understand, and hadn't seen your reply yet.

Yes text is supposed to be overwritten in the example.. and it's supposed to be a local.
Forum: Lua/XML Help 04-17-09, 11:41 PM
Replies: 49
Views: 37,168
Posted By Azul
Then I will lose the value of it on every frame.....

Then I will lose the value of it on every frame.. not to mention the overhead will be nuts.
Forum: Lua/XML Help 04-17-09, 11:18 PM
Replies: 49
Views: 37,168
Posted By Azul
What is wrong with this? It says that foo is...

What is wrong with this? It says that foo is global, and that it's nil.. when obviously it should be local (they all should), and not nil..

local...
Forum: Lua/XML Help 04-17-09, 08:46 AM
Replies: 49
Views: 37,168
Posted By Azul
If I had malicious intentions couldn't I just eat...

If I had malicious intentions couldn't I just eat all the memory with "var={} while 1 do table.tinsert(var,' ') end"? >_>
Forum: Lua/XML Help 04-17-09, 08:01 AM
Replies: 49
Views: 37,168
Posted By Azul
Thank you. I split them and the performance...

Thank you. I split them and the performance wasn't as bad as the other ways. :)


I still wish there was a way to fix the 60 upvalue limit though.
Forum: Lua/XML Help 04-17-09, 07:20 AM
Replies: 49
Views: 37,168
Posted By Azul
Thanks. There is just one frame, for the...

Thanks.

There is just one frame, for the OnUpdate function. It's a command based addon.

Also, arrays and globals are to slow and use to much meory.. and locals in the OnUpdate function lose all of...
Forum: Lua/XML Help 04-17-09, 05:21 AM
Replies: 49
Views: 37,168
Posted By Azul
function "has more then 60 upvalues"

It seems my OnUpdate function has to be pretty small or else the whole addon fails to load with the above error. How do I solve this (besides a horribly hackish (and slow) solution like making tons...
Showing results 1 to 19 of 19