• 0

    posted a message on performance & best practise - a few questions
    Quote from Zer0

    3. regarding AceAddon's OnEnable() function:
    since some modules might be disabled (so I won't call OnEnable() unless the module gets activated manually), is it better for the perfomance to put all of the module's local functions into the OnEnable() function and making sure it only gets called once? (like half LoD? ;) )


    I use a system like this, and it works but only if you allow the functions to all be GC'd if the module is disabled.

    Putting them in OnEnable will just use 2x as much memory for no real gain since the functions in OnEnable will never get gc'd
    Posted in: Lua Code Discussion
  • 0

    posted a message on Chat Bubble Enhancement Addon
    Quote from Aporakh
    Hello,
    Is it possible to add the name in front of the text, like :

    Sylvaann : Hello my name is sylvaann.


    ...

    I was going to say yes, but I'll just say maybe. It would take a bit of work to track who said what recently.
    Posted in: Addon Ideas
  • 0

    posted a message on My Work on a Lua IDE
    Released version 0.9
    Posted in: Lua Code Discussion
  • 0

    posted a message on My Work on a Lua IDE
    Quote from abija
    Some other things that annoyed me:

    Keyword completion doesn't seem to work on table keys.
    Couldn't figure out how to make folding work for tables too.
    Some weird highlight just happens when I edit code and can't always figure out why.
    Moving with arrow keys between lines keeps the column even if the current line is shorter than the column.

    Last two are probably from the editor but I couldn't find settings to modify them.
    Images for keywords and the highlight: http://i.imgur.com/M0EF5.jpg


    Yeah, i have seen that hilight also. I'm not sure what causes it.

    There is currently no suport for collapsing tables, or for resolving references into them.

    I'll be working on resolving table references in version 0.9 as well as smarter placement of the cursor with auto-formatting.

    Thanks for your feedback - I think that what you have mentioned are pretty much the next things i'll be working on in my 0.9 releases
    Posted in: Lua Code Discussion
  • 0

    posted a message on Lua help: string.find or match
    Quote from upyursh
    print(string.match(value.details, "%b{}"))
    based on your code this will give me the first placeholder found, but the second one is ignored


    then you use gmatch and iterate over the matches.


    http://www.lua.org/manual/5.1/manual.html#pdf-string.gmatch
    Posted in: Need Help?
  • 0

    posted a message on My Work on a Lua IDE
    Quote from abija
    If I open a big file (like Shadowed_UF_Options\config.lua) it starts crawling. Needs 3-5 seconds to perform a new line command.


    Optimization is the last step in the development process.

    Just try to check out the other features. I'll optimize before the final release. Its still an alpha.

    One of the things that it does when it opens the file is resolve all the references, that takes a little time.
    Posted in: Lua Code Discussion
  • 0

    posted a message on My Work on a Lua IDE
    Posted on lua-l


    [ann] Lua 0.8.31 For IntelliJ IDEA And Other JetBrains Products
    Jon Akhtar <akhtar <at> mindspring.com>
    2010-11-01 14:01:51 GMT

    My work on an Eclipse style Lua IDE has reached a new milestone and I felt it
    was ready for another [ann].

    If you would like to try it you can use the free version of IntelliJ
    http://www.jetbrains.com/idea/download/

    You can enable the plugin by going to the File/Settings menu, then on
    the Plugins tab locate and install the Lua plugin from the list of
    available plugins.

    The project homepage is
    http://www.bitbucket.org/sylvanaar2/...idea/wiki/Home, there are
    a *A LOT* of screenshots and the source code.

    This is the last of the v0.8 series. I'm interested in getting as much feedback
    as possible as I release 0.9 and am on the home stretch for v1.0 by the end of
    the year.

    Features
    --------

    JavaHelp For Lua 5.1
    Execution in the Kahlua interpreter
    Identifier Highlighter
    Go to definition
    find usages
    Code formatting
    Keyword completion
    5 code intentions(s)
    6 code inspection(s)
    Highlighting global vs local variables
    Script execution and run configurations
    Kahlua interpreter window for interactive script execution (repl)
    Comes with an embedded Lua compiler written in Java (Kahlua)
    Structure view
    Syntax checking
    Syntax highlighting - including proper handling of extended syntax comments and
    quotes
    Customizable highlighting colors
    Code folding for code blocks and comments
    Brace Matching for do blocks, long strings and comments, and (, { , [
    Minor feature comment inout.
    Posted in: Lua Code Discussion
  • 0

    posted a message on Noob question about OnEvent
    Quote from Tirdal
    Thank you!

    I had to pull OnEvent out of the SetGlobals() function, and now it's not spitting up any LUA errors. It's got lots of other problems, but I'm reading the WoW Programming book first, which has already pointed out several key points about LUA syntax to me that I hadn't grokked.



    Lua
    Posted in: Lua Code Discussion
  • 0

    posted a message on Move the new Party Frames?
    Quote from Valimonde
    *face palm* Ok, admission time of a noob. I did not notice at first because I have turned off the border in the settings. It was not until I logged into my second account that I thought. . That is odd. Well. . you can move the party frame by clicking on the word. . . get ready. . party. DOH! Just like old raid frames.

    Talk about feeling dumb. hehe



    No way! I never knew this
    Posted in: Addon Ideas
  • 0

    posted a message on What do all the errors in FrameXML.log mean anyway?
    Wow - I thought we put this one to bed back in 2006.

    FrameXML errors increase load times dramatically iirc.
    Posted in: General Chat
  • 0

    posted a message on Lua IDE???
    Quote from Stabler
    Does that IDE have a SVN module? Looks similar to eclipse.



    svn, git, hg, bzr... you name it
    Posted in: General Chat
  • 0

    posted a message on Prat 3.0 Chat Mod Framework
    Quote from ReallyRick
    I recently had to re-install all my add-ons, and I cannot find where the ScrollBack option for Prat is located. (The one where if you have to reload UI it saves what was said in chat while you were at wow screen.)

    Can someone tell me how to re-activate this feature?

    Thanks



    Enable the Prat-3.0-HighCPUUsageModules addon, then it should already be on - if not the option will appear in the history module
    Posted in: General AddOns
  • 0

    posted a message on Prat 3.0 Chat Mod Framework
    Quote from gamemaster128
    Well, if we do get an option for that, can we get an option to control how the command history is saved as well? I would prefer that both be saved per character. I don't want to scroll through my command history and see stuff that I typed while on another character.


    I'd prefer to just do it one way, so probably moving the commands to character storage makes sense.
    Posted in: General AddOns
  • 0

    posted a message on Prat 3.0 Chat Mod Framework
    Quote from Tsplodey
    I have found two strange and slightly irksome issues with Prat in 4.0. The first is that sometimes the autocomplete name suggestions suggest the same name twice. They both work so its nothing more than a cosmetic issue.

    The second is that for some reason with Prat enabled, the autocomplete wont suggest my Real ID friends until I type their whole first name. I tested my bank alt which runs zero addons and it works as expected (i.e. typing L would suggest Larry Laffer and Legolas, whereas with Prat it would only suggest Legolas).

    The Real ID issue is possibly a Blizzard change. So if its easy to change it back using Prat that would be great.


    Do you have the tab complete option in Playernames turned on?
    Posted in: General AddOns
  • 0

    posted a message on Lua IDE???
    You can try my Lua IDE which is based on IntelliJ IDEA

    http://forums.wowace.com/showthread.php?t=18501

    If you use SCItE be sure to set up LuaInspect along with it.
    Posted in: General Chat
  • To post a comment, please or register a new account.