• 0

    posted a message on SVN Client that doesn't require install
    Cygwin (http://www.cygwin.com/mirrors.html) doesn't require admin rights to install, and has a subversion package, along with numerous other linux cli type goodies.

    It's probably only worth your time if you know at least survival level *nix command line, though.

    Best,
    -Z
    Posted in: Lua Code Discussion
  • 0

    posted a message on Non-capture Groups in LUA... HOW?
    Good reading indeed. Thanks, Bam. I needed something to read to cool my brain down after spending a good chunk of the day battling LUA pattern matching.
    Posted in: Lua Code Discussion
  • 0

    posted a message on Making a static DataBase???
    QuestHelper (http://wow.curse.com/downloads/details/9924/ alas, newly abandoned) has a great example of scads of static data saved in a separate .lua file. He saves it all inside a table in the global namespace (i.e. no 'local' in the definition). It's made available to the other scripts by being included in the .toc file. BTW, the structure of your /acro example looked fine to me. You could use ipairs() to loop through the "WoW" group, for example, to print out the keys and values.

    On a somewhat related side note, I got the crazy idea in my head that I needed to create a light, in-memory relational database for my addon. I've long since passed the point of realizing that it's probably not the best thing for my mod, it's become a challenge now. I was doing pretty well, too, until I decided to make it take queries in basic SQL.. I've spent most of the rest of today cursing LUA's weak-sauce pattern matching implementation.
    Posted in: Lua Code Discussion
  • 0

    posted a message on Non-capture Groups in LUA... HOW?
    Unlike several other scripting languages, Lua does not use POSIX regular expressions (regexp) for pattern matching. The main reason for this is size: A typical implementation of POSIX regexp takes more than 4,000 lines of code. This is bigger than all Lua standard libraries together. In comparison, the implementation of pattern matching in Lua has less than 500 lines.


    (As he points the other way and shifts the burden onto the users)

    Little does he know, I've one-upped him. I've made a language so small and portable that it takes zero lines of code. The flexibility is fantastic! With it, a programmer can create literally anything (s)he has the ingenuity to come up with.
    Posted in: Lua Code Discussion
  • 0

    posted a message on IsEquippableItem -- Not enough information
    Ick.. it's as I feared, then.

    Thanks for the reply!
    Posted in: Lua Code Discussion
  • 0

    posted a message on IsEquippableItem -- Not enough information
    Hello, I apologize if I'm missing something obvious here. Is there an API or library function available to determine whether an item may be used by the current player?

    IsEquippableItem returns true if _someone_ can equip the item, but doesn't take level or class restrictions into account. I can come up with my own function to test these, but I'd rather not reinvent the wheel.

    Thanks much,
    -Z
    Posted in: Lua Code Discussion
  • To post a comment, please or register a new account.