• 0

    posted a message on Wiring a file via Lua
    Quote from twobits
    Yeah, a log file should even be append only not just write only.

    And yeah, a bot would have an add on pump out info to a file, and in effect 'tail -f' it... of course not doing this does not stop botting, just takes away an easy route to sync it with the game, so a delayed write should take care of that concern. Next of course you can write something to sniff the ram/cache, but then you can also just sniff the game if you are going that far.


    Personally I put things in two baskets; reading and writing. Append falls into the writing category although it's obviously a different flag. Either way, it's definitely not reading, and a delayed write renders the botting argument useless.
    Posted in: Lua Code Discussion
  • 0

    posted a message on Wiring a file via Lua
    There's another important considering regarding a logfile. By definition a log file is write-only! The WoW client doesn't ever read it in for any reason, so there's no execution without user interaction.

    Also, how does allowing a write-only file help people bot? IMO, it would only help if the same file could be read back into the client.
    Posted in: Lua Code Discussion
  • 0

    posted a message on Layering
    Thanks! I'll try it when I get a chance.
    Posted in: Lua Code Discussion
  • 0

    posted a message on Layering
    What is the best way to make sure that the "Ready Check" frame shows up in front of my addon's frame and not behind it?
    Posted in: Lua Code Discussion
  • 0

    posted a message on Wiring a file via Lua
    Quote from TangoDigital
    I don't. The thought of authors being able to write files to my HDD sends shivers down my spine.


    Interesting thought. Have you given consideration to the fact that we're already doing that with saved variables, and the code itself that you're downloading and installing? Or are you checking everything you download in some sort of text editor first?
    Posted in: Lua Code Discussion
  • 0

    posted a message on Using LibDataBroker w/ SVN
    Thanks for the all the help so far. Now that I've download the LDB Lua file and tossed it in my "libs" folder in my working copy, how so I get SVN to revision it properly so it gets packaged with everything else. For whatever reason it won't seem to recognize that anything in my "libs" folder needs to be updated. I'm sure I have something set up wrong, I just don't know what.

    I've got my .pkgmeta file set up to pull all the libraries I need for the packager, and I've got svn:externals set up to pull them in for my working copy.

    Thanks again.
    Posted in: General Chat
  • 0

    posted a message on Looking for guidance
    I'm not sure this is possible to do. If I remember correctly, the option to view/edit officer notes is a single checkbox, so if they can view them, they can edit them. Even if it is two checkboxes (view and edit separate) officer notes are a global permission; if the user can view their own officer note, they can view everybody's, and I'm not sure that's what you're looking for.
    Posted in: Lua Code Discussion
  • 0

    posted a message on Using LibDataBroker w/ SVN
    I want to incorporate LibDataBroker into the addon I'm working on and have run across a small issue. I know how to set up the .pkgmeta file to pull the latest version in the distro, but is there a way to set up SVN to pull it as an external even though it's a git-repo and not an svn-repo?

    Thanks in advance!
    Posted in: General Chat
  • 0

    posted a message on Wiring a file via Lua
    I've thought about doing that. The one problem I see is when people are already logging chat, my log and their log get mixed together. Not that I know anybody who logs chat all day long, but it's still possible.

    I agree that it would be nice to be able to open a custom log file.
    Posted in: Lua Code Discussion
  • 0

    posted a message on Wiring a file via Lua
    Is there any way at all to write some sort of custom log-file in the game?
    Posted in: Lua Code Discussion
  • 0

    posted a message on Wiring a file via Lua
    D'oh. Sad panda. :(
    Posted in: Lua Code Discussion
  • 0

    posted a message on Wiring a file via Lua
    I was reading the forums the other day and came across this little bit of code in a post:

    local file = assert(io.open("output.lua", "w"))
    file:write("Hello world")
    I wanted to know more about writing a file like this in Lua. Can I name "output.lua" as "output.txt" without any problems? Also, I'm assuming that the "w" flag is for writing, is there a "r" for read, and "a" for append, etc.

    Also, where is the default directory for "output.lua"? Can I specify a different directory?

    Thanks in advance for the help.
    Posted in: Lua Code Discussion
  • 0

    posted a message on Omen3
    Quote from Xinhuan
    Longer technical answer:
    A secure frame (that allows you to click on and interact with the unit) cannot respond to threat change events, because the secureheader environments in post patch 3.0 does not contain the threat query functions.


    It's not possible to create a completely transparent secure frame on top of the the threat bar and then change the attribute to it dynamically based on the unit that's underneath it?
    Posted in: Raid AddOns
  • 0

    posted a message on Omen3
    I was also thinking that it would be nice if you could cast a spell by clicking on the bars (or some combination of modifer keys + click). Right now I have to check Omen to see if somebody is getting too high, then look over at my raid frames and find them. It's be nice to eliminate that second step.
    Posted in: Raid AddOns
  • 0

    posted a message on getglobal() vs _G[ ]
    Can somebody explain to me what exactly the difference is between getglobal() and _G[ ].

    I'd like to use the latter version to make somethings more readable, but I'm not sure I fully understand the differences.

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