HearthstoneBot

03/12/2014 16:14 skeenia#1
Announcing HearthstoneBot, a derivative of Bot of Stone.

HearthstoneBot is open source, the repository can be found at;
* [Only registered and activated users can see links. Click Here To Register...]
Pull requests, patches, tickets, ect., are VERY welcome!

Missing a feature? Found a bug? Wanna impact development?
- Head over to the ticket tracker at;
* [Only registered and activated users can see links. Click Here To Register...]
Vote your favorite ticket, and the development focus will be on that!

HearthstoneBot focuses on AI custom-ability via AI scripts written in Lua.
If you develop a customization to the default AI scripts (or an AI from scratch), please do share it.

This project is controlled via a command line interface, i.e. there is NO GUI.
Also the project relies on mono, however this is distributed with the bot in the zip-file.

The current release can be downloaded here;
* [Only registered and activated users can see links. Click Here To Register...]

Changelog:
* v1.0 - Now packed with mono, for easier adaption.
* v1.1 - Fixed 'LoaderCommandline.bat' and removed Helper.lua
* v1.2 - Removed mono dependency
* v1.3 - Minions will now only try to attack, if they're able to.

---------------------------------------------------------------------------------

Current capabilities of the bot (subject to change);
1. Drop minions (no target battlecries)
2. Get rid of tanks
3. Attack hero

---------------------------------------------------------------------------------

Run 'LoaderCommandline.exe' from cmd, in order to get the help menu.
Typical usage will be;

* Run "LoaderCommandline.exe --set_hs_path="C:\Program Files (x86)\Hearthstone""
* Open Battlenet
* Run "LoaderCommandline.exe --regen_inject inject"
* Wait for the command to be done indicated by the message; "Ready to launch Hearthstone"
* Launch Hearthstone
* Wait for Heartstone to be booted
* Run "LoaderCommandline.exe startbot"
* Bot should start up automatically, and join a non-ranked player match.
03/13/2014 04:08 orlandofua#2
Hey skeen, I tried messing around with the files with the first release and 1.0 (packed with mono), and found out that I had to copy and paste the assembly.dll file from the first release to the current one because Loadercommandline.exe --regen_inject inject gives me an error:

Error: Unsuccessfull injection file creation (Error code = 1)
Check the injector log file (logs/injector.log)
03/13/2014 10:07 tatchan1304#3
Did everything successfully. The mono cmd says "Ready to launch Hearthstone", I click Play and the Hearthstone window appears but in Black screen and then not responding -> Forced close :)
03/13/2014 10:55 skeenia#4
Quote:
Originally Posted by tatchan1304 View Post
Did everything successfully. The mono cmd says "Ready to launch Hearthstone", I click Play and the Hearthstone window appears but in Black screen and then not responding -> Forced close :)
Can you post the logs you get from this?

Quote:
Originally Posted by orlandofua View Post
Hey skeen, I tried messing around with the files with the first release and 1.0 (packed with mono), and found out that I had to copy and paste the assembly.dll file from the first release to the current one because Loadercommandline.exe --regen_inject inject gives me an error:

Error: Unsuccessfull injection file creation (Error code = 1)
Check the injector log file (logs/injector.log)
Does the logs/injector.log file exist, and if so can you post the contents? - Also this may be a issue related to mono, not being existent where it's expected.

I'm currently working on getting rid of the mono dependency.
03/13/2014 11:20 orlandofua#5
Here:

Also when I run loadercommandline.bat, it shows this and fails to create the injection file:

And everytime I queue for something I get the "playful sprites" error. How do we fix this?
03/13/2014 11:58 skeenia#6
Quote:
Originally Posted by orlandofua View Post
Here:

Also when I run loadercommandline.bat, it shows this and fails to create the injection file:

And everytime I queue for something I get the "playful sprites" error. How do we fix this?
Both of these issues were results of the mono dependency, this should be fixed as of v1.2, would you mind testing, that this is the case?
03/13/2014 12:08 tatchan1304#7
I don't see the logs anywhere, there's only 1 file "Do not erase" in the logs folder. If you're talking about the mono cmd, it says nothing except for "Ready to launch hearthstone".

Here's the screenshot.
03/13/2014 12:27 orlandofua#8
I just tested it out and I still got the "playful sprites" error.

This is the contents(near-end) of API.log:
03/13/2014 12:27 skeenia#9
Quote:
Originally Posted by tatchan1304 View Post
I don't see the logs anywhere, there's only 1 file "Do not erase" in the logs folder. If you're talking about the mono cmd, it says nothing except for "Ready to launch hearthstone".

Here's the screenshot.
In this case, there should be a log file in %HEARTHSTONEFOLDER%/Logs/API.log
Can you confirm if this file exists?

Quote:
Originally Posted by orlandofua View Post
I just tested it out and I still got the "playful sprites" error.

This is the contents(near-end) of API.log:
Right double queuing, I'll have to look into this soon. Thanks for reporting. I've created a ticket for this.
03/13/2014 12:29 orlandofua#10
No problem. It's the least I can do.
03/13/2014 13:52 tatchan1304#11
There's nothing in the Logs folder. It's like the bot hasn't even run
03/13/2014 14:09 skeenia#12
Quote:
Originally Posted by tatchan1304 View Post
There's nothing in the Logs folder. It's like the bot hasn't even run
Can you confirm this is still an issue as of v1.3? - Because it does indeed seem like the Bot never booted.
03/13/2014 14:16 tatchan1304#13
Yea it's still an issue as of v1.3, deleted everything in hearthstone folder except Data folder and reupdated it to make sure it's not because of the Hearthstone itself.

On a side note, Botofstone injection works fine for me without issues.
03/13/2014 14:51 skeenia#14
Quote:
Originally Posted by tatchan1304 View Post
Yea it's still an issue as of v1.3, deleted everything in hearthstone folder except Data folder and reupdated it to make sure it's not because of the Hearthstone itself.

On a side note, Botofstone injection works fine for me without issues.
This does seem weird indeed! It seems that the files are injected, however loading them crashes the application. This is most likely a dll related error.
Have you tried to erase the "%HEARTHSTONEPATH%/Hearthstone_Data/Managed" folder, and let the patcher reapply it?
03/13/2014 15:38 tatchan1304#15
Yea I deleted everything including Managed folder, only left out the Data folder (1gb folder) for it to repatch before trying the bot. I think it's a dll related error. When the new patch just came, the botofstone got into some pink screen errors as well so we had to delete the Assembly-CSharp.orig.dll and path files in the botofstone folder.