Firstly OiJkN is my partner on this project and any errors and bug fixes he has the knowledge to help just as much as me.
There comes a time when you set your bot to work over night to wake up in the morning with no games played because hearthstone has crashed.
Well i wrote a simple script to recover the bot automatically but also shuts hearthstone down when the bot is stopped on one of your conditions.
WARNING! This will delete the log files. I will add a backup option in the future.
Pressing Control + F10 will kill the script and reload it in a paused state in case if misbehavior.This has been rewrote to be a lot more stable and work more on the logs of HearthRanger rather then looking at the console manually.
Unzip the zip file into the Hearthranger directory so the Ranger Recovery.exe and the Ranger Recovery Folder is in the folder with HearthRanger.exe.
Features- Will restart Hearthstone and the bot when it stops without an auto stop condition triggered.
- Will shutdown hearthstone and the bot when an auto stop condition has been met.
- Breaks to split games to act more human.
- Status indicator (see what the bot is doing).
- Support for DPI Scaled Windows
- Support for launching via Task Scheduler or other times program using command line argument -r to auto start the script as it loads.
Ver 1.6 DownloadPlace the file Ranger Recovery.exe and the folder named Ranger Recovery in the HearthRanger root folder.
Setup file paths in the GUI and Set your settings.
Run the Ranger Recovery.exe and let it play.
May need Admin privileges to run.
Please report any problems here.
Future update ideas i have are:
- Backup and restore logs.
- 2 tiers of breaks so you can have set off times every day.
- Remove need for save settings button (only needed now to change settings while running not closing)
- Your suggestions.
Please post all feedback here in the thread and any feature requests too.
Running Ranger recovery automatically:
Open the start menu and type "Task Scheduler" and press enter, You will be greeted by this window
Next we want to right click where all the other tasks are in the top half of the window and select create new task.
Give the task a name at the top.
You will be greeted by this window, Check the run with highest privilidges box and then move to the Triggers tab.
Here we want to select new and then input a time when you want to bot to run automatically. You can also use the random delay if you want to.
Move to the Actions tab now and here we are going to browse for the Ranger recovery.exe which is located in your hearthranger folder where ever you decided to extract it.
double click the ranger recovery.exe and the path will appear in your tasks tab.
Next we are going to add the "-r" like in the picture to the arguments box.
Now we need to put the folderpath into the run in box. Select everything in the program/script box and copy it, Paste it into the start in box and delete the " from the start of the text and the \Ranger Recovery.exe" from the end of the path, now press OK.
Move onto the conditions tab.
Select the start task if the computer is idle box if you will use your pc when the task is scheduled to start, This way it wont get in the way of other programs.
You can also select wake the PC to run this task if you want your PC to be woken from sleep (not a complte shutdown) when the task is to be run.
Leave the rest as is.
On the setting tab Check the box that says run task as soon as scheduled start missed.
Leave the reest as is.
After that press OK and then to test the task right clcik on it in the top pane and press run. If ranger recovery starts and auto runs you have done it.
Give your self a pat on the back and let it earn you gold.
Make sure you keep hearthranger settings so it uses the deck you want and stuff.
This will not currently auto complete quests so it's not fully autonomous.
Also make sure you have auto stop when max gold reached in hearthranger slected.
Changelog:
1.6
- Fixed close on Hearthstone Battlenet on hearthstone launch.
- Removed the need for clicks when launching battlenet (will be more reliable now).
- Removed the GUI position saving. (was casusing too many issues).
1.5:
- Added fix to start bot on scaled systems.
1.4.12:
- Added game Dc detection.
- Fixed breaks to make them more reliable. (it will close the bot instead of pausing it.)
1.4.11
- Fixed bug with default vars
1.4.10
- Fixed bug with loop start and killing the game.
1.4.9
- Added Crash Counter to see how many times the bot has been recovered (OiJkN)
- Added NAme randomisation just like HearthRanger itself.(OiJkN)
- Added default setting embedded into the bot so potentially no more initial setup.
- Added Icon.
- Removed tray icon from the program
1.4.8
- Window now remembers where it was closed and will open up in that spot.
- Changed wording on paths tab to be less confusing.
- Minor bug fixes and instruction updates.
1.4.7
- Added Skip break button that pops up next to the status area when break is active.
- Added options to close Game, Bot and Recovery to the options menu.
- Fixed bug in HR not resuming properly.
- Fixed bug with status not being the correct status.
- some other bugs fixed i cant remember.
1.4.6
- Fixed bug with auto stop on next game closing all of the things
- Fixed bug with bot not pausing when told to pause while hearthranger checking Data
- Fixed bug with Silver.exe being restarted when it isn't needed.
- Fixed bug with HR failing to unpause.
- Switched mouse move commands to replace cursor to last position when using it to click things(no more looking for the blasted thing.
- Fixed bug with status area being half there.
- Commented all the code in the source so it will be easier to follow. (comments are poor but best i can do right now).
1.4.5
- Added support for DPI scaled systems running Windows 8+
- Added support for Command line arguments (-r to launch bot when it starts)
1.4.4
- Revamped game launching to work better. Uses 2 different methods to try and play the game.
- Slightly darkened the UI so the status when Yellow is visible.
- Fixed bug in pause bot not resuming then start button pressed.
- Included source and will do from now on.
1.4.3
- Fixed bug launching decktracker
- Added Coloured Status indicators (Blue = Starting/Resuming, Green = Running, Yellow = Paused, Red = Not running).
- Added Path checks for all activated programs.
- Disabled the pause button until the script is running.
- Added Pause bot option in the Recovery window.
1.4.2
- Added GUI
- Added breaks
- Added pausing of script
- Added status of bot indicator
- Added launching of Decktracker and Silver.exe if you so choose
- Added option to close battle.net after game launch.
1.1
- Initial release
- Launches game and Bot
- Detects cashes of game and restarts bot and game an resumes playing.