I made some changes that I hope Tony will upload with the 2.1 fix:
- It seems like the ImageSearch problems are caused by 32-bit and 64-bit mismatches. I added a DLL for each architecture and the bot will use the DLL corresponding to the AutoIt version that's running. I hope that'll fix all the errors that keep popping up.
- I added a resolution selection box so you'll be able to run Diablo in a resolution different than the one defined by the system.
- I moved the BETA message to the GUI, so it won't pop up every time you run the bot.
- The options that don't work yet are now greyed out.
- I started populating the 1920x1200 resolution. I hope I'll have it working soon.
sorry for the inconvenience of 4 files to download (the forum didn't let me upload in 1 file), this should work on 2.1.
trunk.part03.rartrunk.part04.rartrunk.part02.rartrunk.part01.rar
remember:
its only 1920x1080 and if you get an error:
change line 36 in file ImageSearch.au3 in modules dir from:
$result = DllCall("modules\ImageSearchDLL.dll","str","ImageSearch","int",$x1,"int",$y1,"in t",$right,"int",$bottom,"str",$findImage)
to:
$result = DllCall("ImageSearchDLL.dll","str","ImageSearch","int",$x1,"int",$y1,"int",$righ t,"int",$bottom,"str",$findImage)
Last edited by tonyv82; 08-28-2014 at 05:45 PM.
The fix to the ImageSearch function had some problems and they weren't fixed in time to go into the latest update.
They'll probably be in the next one.
Last edited by YMI; 08-28-2014 at 07:41 PM.
new beta version, works much better
trunk.part1.rar
trunk.part2.rar
It found my "Start/Resume Game" button.
Then it was waiting forever for "Waiting game load", then it appeared "Error image GameRunning", but the "Captures" folder is empty.
Maybe there is some difference while running the game with High/Low graphic quality? Maybe can you post your config that you used to capture the images?
You can download a new version from this link:
v0.9.5.rar
This version has 1920x1200 support.
There's a known bug when salvaging (due to the way salvaging works in the new patch). It'll be fixed soon.
You can copy the res_1920x1200 to any old bot version if you want to use it. Don't forget to change the resolution in the dropdown or it won't work.
Last edited by YMI; 08-29-2014 at 04:10 PM.
The bot works with creating game, going to right wp, and going into Larder but the it just stops there. The message at top left corner just says "going to larder", so it seems as if it's not registering that he's in larder already and moves on. I'm running it in 1920x1080 and did all those steps with windowed, no cinematics etc etc.
Last edited by Snow79; 08-30-2014 at 03:07 AM.
Can you check bender_gb.log and see why it closed? Some images and locations changed in 2.1 and might need some adjusting.
This is what log says:
[11:05:24] -I- =============== Session Started ===============
[11:05:26] -I- starting game
[11:05:27] -I- Waiting for Game to Load
kills: 0
sec/kill: -1.#IND
[11:05:37] -I- Check Inventory
[11:05:39] -I- Inventory is not full
[11:05:39] -I- going to waypoint
[11:05:40] -I- going to larder
[11:06:26] -I- ================ Session Ended ================
[11:06:43] -I- boss no go
[11:06:43] -I- error handler massage: InBoss.bmp
[11:06:43] -I- in handle error capturing box: InBoss.bmp bmp found at8
[11:06:45] -I- ================ Session Ended ================
Where? In config -> resolution -> images? Don't have any screenshots there.
No. There's a directory called "captures". It should be there.
replace this file in config\res_1920x1080\images folder
InBoss.zip