• Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • [Standalone][BETA] Cowmender2 - yet another custom bot manager for HB

    Discussion in 'Archives' started by cowdude, Mar 13, 2011.

    1. cowdude

      cowdude Active Member

      Joined:
      Feb 17, 2010
      Messages:
      337
      Likes Received:
      27
      Trophy Points:
      28
      Hi,

      You might have seen this post lately. I've been improving a bit my own bot manager and should be easily usable now.

      Important!
      In order to be clear: it has bugs. It should run fine, baby-sitting your bots for days as long as you avoid a few unsupported things, which means:
      • Don't use multiple CC's for a given class
      • Run it as Administrator
      • Put all your XML profiles in the same folder if you want to use this feature. You'll need to load one of them manually if the restarter hangs forever while setting HB up.


      I also need to underline a few things about its mechanics.

      There are two EXE files. Cowmender2.exe is the restarter itself, and does read the game's memory. Yes, I said 'read', not 'write'. That's fine, but just saying.

      The other one (WoWStarter.exe) is a console application that will hook the game's endscene in order to run Lua code and login your toon. Yeah, that's as legal as using HB to Blizzard's point of view. Nevertheless, if you don't want to take any further risks of getting banned, don't use it.

      You can either code your own WoW logger and overwrite WoWStarter.exe or simply delete Cowmender2.

      I'm providing the source code of both programs. No "omgz i lost al my goldz cuz i used dis shit yestrday it haz keyloggers!!1!". What if you just can't read C#? Don't use it then, if you think it may steal any data.

      I'm not taking any responsability in case of wow account closure/hack/"hey my computer is smoking, lolwtf" etc.

      Last point: the wow logger won't work after a patch; you'll need to edit the source code or download a newer release here.

      (End of important and boring stuff)

      Pictures
      http_live.jpg win_ui.jpg http_static.jpg
      (Live stream webpage / Windows UI / Static webpage)

      Restarter Features
      • Restarts wow+HB on disconnections, wow errors, and many stuff...
      • Automatically start Wow, login, launch HB and start botting
      • Allows you to overwrite HB profile and bot for each toon without editing your HB settings
      • Supports BNet multi accounts
      • Allows you to use a different HB.exe and/or HB account per bot
      • Allows you to define 'switch' rules to switch from a bot to another. Pretty useful if you'd like to switch to your mailbox/auction toon once a day.

      Remote features
      • You can choose to start a simple HTTP server to monitor your bots from a webpage "everywhere in the world", etc.
      • There's also a super cool (but useless) web page with live videos of your current bots.

      Security stuff
      Your settings are written in plain XML without any encryption. Anyone that has access to your files will be able to read your passwords.
      There is no way to get passwords using the Web server, only your wow account login and account (WoW1, etc.).
      There is currently no way to edit your configuration settings through the web server.

      Fast howto guide
      Download the zip file and extract it somewhere on your drive. If you want to compile it, you'll need to get the DLLs from the bin release (or just download them on the web).

      Start Cowmender2.exe. Ensure that you're starting it as Administrator, which should be the case by default.

      Set your Honorbuddy.exe location (top right corner on the main window).

      Set your WoW/HB logins, character name, etc. by clicking on 'WoW/HB accounts'.
      Light blue columns = compulsary stuff. The app will surely crash if you don't set them correctly.
      White columns = can survive without setting them
      BNet account column = you don't need to put anything here unless you have multiple wow accounts bound to your login
      Wow.exe column = Yeah, it's a white column, but you have to set it... Just seeing this now, will fix it someday.

      Don't forget to tick the 'run' column if you want to... run this bot.

      You don't need to play with the switch button right now. It's disabled by default.

      Close the accounts settings window once you're done.

      Optional: Click the 'web server' button and edit its configuration if needed. You can choose to disable it if you don't need this stuff.

      Done! Click the 'start' button and you're set.

      Using bot switch conditions
      On the accounts settings panel, you'll find a Switch button. It allows you to switch the current bot off and start another bot. There are currently two conditional statements:
      1. Switch when HB (bot) stops running. I'm using it on my own auction bot that will stop running once it's done.
      2. Switch when it's around HH:MM. Cowmender2 must be idle to successfuly switch => don't set more than one daytime switch condition at the same time!!

      You should uncheck the 'run' field on the bot you want to switch on. Simple gatherbot + auction bot example:
      [X Run] cowdude@foo.com ... MyFarmerToon ... [BotBase=GatherBuddy2] [Switch enabled on toon "MyAuctionToon" at 9:00 AM]
      [ ] cowdude@foo.com ... MyAuctionToon ... [BotBase=My custom Auction Bot] [Switch enabled on bot stopped - switch back to "MyFarmerToon"]

      Note that I made a loop with my farmer and auction toon. Once any of them is done, it will switch to the other one.
      You can basically do the same kind of loop with more than two characters if needed.

      Web server FAQ
      You can play with the web server by going to http://localhost:1234/ by default. The default password is 'test'.

      I'll add some help about how to access it from the outside later.

      Credits
      • MaiN
      • Ryuk on mmowned for providing iHook.dll
       

      Attached Files:

      Last edited: Mar 13, 2011
      Ronnieole and shinavaka like this.
    2. Kickazz006

      Kickazz006 Well-Known Member Moderator

      Joined:
      Jan 15, 2010
      Messages:
      20,567
      Likes Received:
      302
      Trophy Points:
      83
    3. Ripperpt

      Ripperpt New Member

      Joined:
      Jan 12, 2011
      Messages:
      574
      Likes Received:
      4
      Trophy Points:
      0
      Second???
       
    4. bottercrazy

      bottercrazy New Member

      Joined:
      Mar 13, 2011
      Messages:
      107
      Likes Received:
      8
      Trophy Points:
      0
      Very useful and complete set, thanks a lot.

      Anyway, i dont want to sound suspicious but is it safe to spread all this details on a plugin like this? i mean account details, username passwords and so on.
       
    5. cowdude

      cowdude Active Member

      Joined:
      Feb 17, 2010
      Messages:
      337
      Likes Received:
      27
      Trophy Points:
      28
      (filler)
       
    6. bottercrazy

      bottercrazy New Member

      Joined:
      Mar 13, 2011
      Messages:
      107
      Likes Received:
      8
      Trophy Points:
      0
      this is clear, i missread that part. Thanks
       
    7. Ripperpt

      Ripperpt New Member

      Joined:
      Jan 12, 2011
      Messages:
      574
      Likes Received:
      4
      Trophy Points:
      0
      Cowdude the prog gives me a error after resize the wow, and exit.
       
    8. cowdude

      cowdude Active Member

      Joined:
      Feb 17, 2010
      Messages:
      337
      Likes Received:
      27
      Trophy Points:
      28
      You're not supposed to resize them, actually. Try disabling the web server if you want to resize WoW.

      By the way, there are a few debug statements on the livestream web page. You'll need to fix them or use Google chrome/Safari for the moment.
       
    9. Ripperpt

      Ripperpt New Member

      Joined:
      Jan 12, 2011
      Messages:
      574
      Likes Received:
      4
      Trophy Points:
      0
      ok i will try it
       
    10. Rhainland

      Rhainland New Member

      Joined:
      Nov 17, 2010
      Messages:
      75
      Likes Received:
      0
      Trophy Points:
      0
      Not working in my windows 7 64 bit, followed the howto set it all up. After pressing START it launches WoW, sits there for a few secs. Then i get a WoW error and a window pops up saying

      Exeption:
      System.Exception: Could not write the specified bytes! 1A0A0000 [5]
      at iHook.Memory.Writebytes(UInt32 address, Byte[] Val)
      at iHook.Hook.InjectAndExecute(String[] ASM)
       
    11. Ripperpt

      Ripperpt New Member

      Joined:
      Jan 12, 2011
      Messages:
      574
      Likes Received:
      4
      Trophy Points:
      0
      Keeps crashing and resizing heres the log ( i deleted the Char name and mail name :D )


      Cowmender loaded.
      Opening web server settings
      UI...
      Settings
      saved!
      Pulse thread is
      starting...
      Launching
      wow+bot for account
      Bot
      l changed state
      to: Restarting
      Bot
      changed state
      to: LoggingIn
      WoWStarter
      returned exit code 5520

      Success!
       
    12. Ripperpt

      Ripperpt New Member

      Joined:
      Jan 12, 2011
      Messages:
      574
      Likes Received:
      4
      Trophy Points:
      0
      i try it in my win32 bit runs good, the error is only in win7 64bits :( i think
       
    13. qlithe

      qlithe New Member

      Joined:
      Mar 16, 2010
      Messages:
      198
      Likes Received:
      0
      Trophy Points:
      0
      anyone with win7 64bit got it working?
       
    14. cowdude

      cowdude Active Member

      Joined:
      Feb 17, 2010
      Messages:
      337
      Likes Received:
      27
      Trophy Points:
      28
      Try to set the following programs in 32bits compatibility mode:
      - WoWStarter.exe
      - Wow.exe
       
    15. Rhainland

      Rhainland New Member

      Joined:
      Nov 17, 2010
      Messages:
      75
      Likes Received:
      0
      Trophy Points:
      0
      How exactly do you set a program to 32bit compatibility? Any 32 application run on a 64 bit will be ran on the 'layered 32bit' in user mode.

      So your app is not supporting 64 bit i can figure.
       
    16. Blink99

      Blink99 New Member

      Joined:
      Jan 15, 2010
      Messages:
      233
      Likes Received:
      2
      Trophy Points:
      0
      this is epic THANKS!

      one request, would it be possible to add a field for it to start another program, then check and make sure that the process is still running every 10 min or so? would be very useful for ppl that use standalone aiml chatbots
       
    17. Ripperpt

      Ripperpt New Member

      Joined:
      Jan 12, 2011
      Messages:
      574
      Likes Received:
      4
      Trophy Points:
      0
      and i think i found another bug :D sometimes the app cant read the Game state and kill WoW and The Bot. and restart all over again
       
    18. cowdude

      cowdude Active Member

      Joined:
      Feb 17, 2010
      Messages:
      337
      Likes Received:
      27
      Trophy Points:
      28
      It barely happens when you're moving to another map (instance, bg, ...). Got to add a delay on this.
       
    19. cowdude

      cowdude Active Member

      Joined:
      Feb 17, 2010
      Messages:
      337
      Likes Received:
      27
      Trophy Points:
      28
      Assuming that a few people request that, sure.
      That's mostly a tool I use to automate my bots for days, not a community tool. I'm just sharing it here so people can try it.

      I'm still open to feature requests and improvements; just saying I'll first focus on make it stable enough for my own needs.
       
      Last edited: Mar 13, 2011
    20. iesux

      iesux New Member

      Joined:
      Nov 6, 2010
      Messages:
      237
      Likes Received:
      0
      Trophy Points:
      0
      noway you can tweak in GB1? I'm just used to it so much and it never bypasses my ores:p
       

    Share This Page