• 0

    posted a message on Anchor stuck to mouse
    Meaning, I should change all the "this"s to "self"s? I hope the "end" is in the correct place, then.
    Posted in: Lua Code Discussion
  • 0

    posted a message on Anchor stuck to mouse
    First of all, to those who have given advice and help in the past, again, many, many thank yous!

    Just for the record, I inherited SmartRes after the previous devs stepped away from the project, so I am confessing to not entirely understanding their code. I follow it however.

    Anyway, I decided to perform some "best practices" on the options file. The original code is thus:
    http://pastey.net/106962
    I changed lines 390-399 to
    http://pastey.net/106963
    to do away with the "this" global, which I understand has depreciated. Now, when I log in, I get errors on lines 83 & 429, and the anchor, when I activate it, gets stuck to the mouse, and only the command /sr anchor turns it off. It is supposed to stop moving and stay in place after releasing the mouse button.

    I get what the code is doing (getting new position and updating the variables) but not why ... *sigh* Any suggestions would be helpful, thank you all.
    Posted in: Lua Code Discussion
  • 0

    posted a message on SmartRes
    Thanks to a fair bit of help, (Xinhan for how to upload and Zidomo for bug fixes) this addon is now WotLK release-compatible. Enjoy!
    Posted in: General AddOns
  • 0

    posted a message on How To: Use curseforge/wowace to upload via SVN/TortoiseSVN
    Days later, I noticed that more or less spontaneously, my non-release, alpha, or beta version of the mod was updating to both wowace and to curse. I didn't intend on it sending versions, especially to curse. This may be because I was trying to learn how the repositories work.

    So, the questions are: how do I mark my repository so it only uploads alpha builds, or beta/release to curse? I am not planning yet to upload, as the mod isn't ready. Just thinking in advance here.

    Actually, if there is a thread that goes into detail about how to use the repositories on wowace, that would be welcome as the help on the repository page itself is a bit confusing. Hence why some poor curse users got a far from ready addon....
    Posted in: Need Help?
  • 0

    posted a message on SmartRes
    Wow, patch 3.02 did a number on this addon. Right now, I see the bars no problem, but the FuBar plugin and the slash commands don't work. I tried downgrading SR versions to test, and they aren't working for me either.

    One thing at a time... I'll get this ironed out.

    >Zidomo, I don't get those, or any errors for that matter, logging in the game. I am only loading SR and FuBar3.5, and nothing. I'll keep checking though.
    Posted in: General AddOns
  • 0

    posted a message on SmartRes
    I will look into this, Zidomo. Thank you for the post.
    Posted in: General AddOns
  • 0

    posted a message on How To: Use curseforge/wowace to upload via SVN/TortoiseSVN
    Wow, never mind, I just had no patience. It worked. Thank you for everything, Xinhuan. Much appreciated, and I said as such on the project's curse page. *bows gratefully*
    Posted in: Need Help?
  • 0

    posted a message on How To: Use curseforge/wowace to upload via SVN/TortoiseSVN
    Xinhuan, alright, good up to the where you talk about creating betas or releases. Then it shows something else:
    svn://myrroddin@svn.wowace.com/wow/smart-res/mainline/trunk

    Shouldn't it say:
    This brings up a dialog box that says to take the contents of
    svn://svn.wowace.com/wow/smart-res/mainline/trunk
    and make a copy of it to
    svn://svn.wowace.com/wow/smart-res/mainline/tags/beta or release to push

    And when I do this, I select the radio button for HEAD revision in the repository correct?
    Posted in: Need Help?
  • 0

    posted a message on Is this the thread for code feedback?
    Yes, it was working just fine in game, actually. At least what of it I could test. I play a Priest, and haven't had an opportunity yet to see a Druid cast Revive, nor check if Death Knights will be last on list of res targets, along with Warriors.

    I guess my problem is that I'm trying to learn and code at the same time. Maybe I'm jumping in too deep and too fast. ... That wasn't a question, or if it was, a rhetorical one.

    Now that I have a working example (I learn best from examples. I *Do* have Cladhaire's WoW Programming guide, and reference it as often as I can) I see I was thinking correctly about self.ResSpellIcons. Nice of you to put the SpellIDs in, although in this case I don't think I will use them. Maybe, maybe not.

    How about I call myself a newb, and leave it at that?
    Posted in: Lua Code Discussion
  • 0

    posted a message on Is this the thread for code feedback?
    Awesome. You are an amazing resource, I am crediting your help now, Xinhuan. Is it possible to follow the next block of code

    self.ResSpellIcons = {
    PRIEST = "Interface\\Icons\\Spell_Holy_Resurrection",
    SHAMAN = "Interface\\Icons\\Spell_Nature_Regenerate",
    PALADIN = "Interface\\Icons\\Spell_Holy_Resurrection",
    DRUID = "Interface\\Icons\\Spell_Nature_Regenerate"
    }

    the same way? Since the GetSpellInfo has a return value of icon.
    Posted in: Lua Code Discussion
  • 0

    posted a message on Is this the thread for code feedback?
    I am working on updating SmartRes for WotLK, and when compiling it, I get errors that cause failure.

    code modifications

    The error while compiling is:
    Command: Commit
    Modified: D:\Program Files\World of Warcraft\Interface\Addons\SmartRes\.pkgmeta
    Deleting: D:\Program Files\World of Warcraft\Interface\Addons\SmartRes\SmartRes-deDE.lua
    Deleting: D:\Program Files\World of Warcraft\Interface\Addons\SmartRes\SmartRes-enUS.lua
    Deleting: D:\Program Files\World of Warcraft\Interface\Addons\SmartRes\SmartRes-koKR.lua
    Deleting: D:\Program Files\World of Warcraft\Interface\Addons\SmartRes\SmartRes-zhCN.lua
    Modified: D:\Program Files\World of Warcraft\Interface\Addons\SmartRes\SmartRes.lua
    Modified: D:\Program Files\World of Warcraft\Interface\Addons\SmartRes\SmartRes.toc
    Modified: D:\Program Files\World of Warcraft\Interface\Addons\SmartRes\SmartResOptions.lua
    Sending content: D:\Program Files\World of Warcraft\Interface\Addons\SmartRes\SmartRes.lua
    Sending content: D:\Program Files\World of Warcraft\Interface\Addons\SmartRes\SmartRes.toc
    Sending content: D:\Program Files\World of Warcraft\Interface\Addons\SmartRes\.pkgmeta
    Sending content: D:\Program Files\World of Warcraft\Interface\Addons\SmartRes\SmartResOptions.lua
    Error: Commit failed (details follow):
    Error: 'pre-commit' hook failed with error output:
    Error: trunk/SmartRes.lua has a syntax error:
    Error: luac: stdin:62: '}' expected (to close '{' at line 56) near 'return'
    Finished!:


    Suggestions, or is this the wrong forum, and where should I be posting?
    Posted in: Lua Code Discussion
  • 0

    posted a message on How To: Use curseforge/wowace to upload via SVN/TortoiseSVN
    Also, after doing the SVN commit, I get

    Command: Commit
    Modified: D:\Program Files\World of Warcraft\Interface\Addons\SmartRes\.pkgmeta
    Deleting: D:\Program Files\World of Warcraft\Interface\Addons\SmartRes\SmartRes-deDE.lua
    Deleting: D:\Program Files\World of Warcraft\Interface\Addons\SmartRes\SmartRes-enUS.lua
    Deleting: D:\Program Files\World of Warcraft\Interface\Addons\SmartRes\SmartRes-koKR.lua
    Deleting: D:\Program Files\World of Warcraft\Interface\Addons\SmartRes\SmartRes-zhCN.lua
    Modified: D:\Program Files\World of Warcraft\Interface\Addons\SmartRes\SmartRes.lua
    Modified: D:\Program Files\World of Warcraft\Interface\Addons\SmartRes\SmartRes.toc
    Modified: D:\Program Files\World of Warcraft\Interface\Addons\SmartRes\SmartResOptions.lua
    Sending content: D:\Program Files\World of Warcraft\Interface\Addons\SmartRes\SmartRes.lua
    Sending content: D:\Program Files\World of Warcraft\Interface\Addons\SmartRes\SmartRes.toc
    Sending content: D:\Program Files\World of Warcraft\Interface\Addons\SmartRes\.pkgmeta
    Sending content: D:\Program Files\World of Warcraft\Interface\Addons\SmartRes\SmartResOptions.lua
    Error: Commit failed (details follow):
    Error: 'pre-commit' hook failed with error output:
    Error: trunk/SmartRes.lua has a syntax error:
    Error: luac: stdin:62: unexpected symbol near 'local'
    Finished!:

    The offending code line:62 reads
    local name = GetSpellInfo("Resurrection") return name

    Is there an error in my code, and do I have to fix it before it will commit?

    And in the pkgmeta, I did list each Ace3 component seperately, all linking to the same trunk, as above.
    Posted in: Need Help?
  • 0

    posted a message on How To: Use curseforge/wowace to upload via SVN/TortoiseSVN
    When I go to
    http://www.wowace.com/projects/ace3/
    and click the repositories I get
    svn://svn.wowace.com/wow/ace3/mainline/trunk
    and in the .pkgmeta file (old version) I see listings for each component of Ace2. Does Ace3 only have one link, or should I search each component seperately?

    Thank you very much for this help. This is much, much farther than I've gotten in 4 days already.
    Posted in: Need Help?
  • 0

    posted a message on How To: Use curseforge/wowace to upload via SVN/TortoiseSVN
    I have been given Project Lead on SmartRes, and have updated it for 3.x of WoW. At this point, since it is an Ace3 project, I need to upload it to WoWAce and to CurseForge. Also, I would like to use Subversion, .pkgmeta, or what have you since that seems recommended.

    Problem: I have gone through all the KB docs, CurseForge, WoWAce, etc, read them all, and nothing makes sense, as the "do this" stuff isn't actually showing up for me anywhere.

    What I have so far is: an addon folder on my computer (should I zip it, or is that done autmatically?) Project Lead status on WoWAce, and accounts on Curse and CurseForge and a lot of questions! ???

    A step by step tutorial, that does not assume you have uploaded to Curse.com, and does not assume that a project is a new project, would be greatly appreciated.
    Posted in: Need Help?
  • To post a comment, please or register a new account.