beta of the new bot is at the end of the first post, only 1920x1080 for now
good luck and bring us feedback
beta of the new bot is at the end of the first post, only 1920x1080 for now
good luck and bring us feedback
Edit the file ImageSearch.au3 in the "module" folder, change the line 39 to this one:
if $result="0" then return 0
@Thread
The new UI looks great, there is a small bug when I click "Basic" and "Advanced" to show/hide the options, it check/uncheck the last options, that also, I have no idea what is that.
My Diablo runs at resolution 1366x768, so I can't test it right now, gonna try to capture the screenshots asap so I can test it.
@alkaloid: Try adding "modules\" to line 36 in to the ImageSearch.au3 file in the modules directory. It should look like this:
It's a know issue where different versions of AutoIt see the path a bit differently (we encountered it during the development).Code:$result = DllCall("modules\ImageSearchDLL.dll","str","ImageSearch","int",$x1,"int",$y1,"int",$right,"int",$bottom,"str",$findImage)
The change maozao suggested might cause the image search not to work.
@maozao: There's a tool called CoordinatesTool.au3 in the main folder. It should make the image captures and coordinates findings much easier. Please copy the res_1920x1200 directory (which is mostly empty), rename it to res_1366x768 and add everything there. You can use the images and coordinates from the res_1920x1080 as reference. Copy the .ini files and delete the numbers (that will cause all searches to search the whole screen). Once you find the coordinates that suit your resolution, you can add them there.
About the GUI thing: It's not a bug, it's a feature.
I'll try to set up a bug reporting tool so you can submit bugs in a way that we can manage.
Please let me or Tony know if you find anything broken (note that my message box can hold up to five messages only, so you might no be able to contact me).
Not yet implemented:
Fight file choosing does nothing.
Runtime cap is ignored.
Diablo won't be closed even if you check the "close Diablo" checkbox.
Picking up common items might skip grey items.
Hello there.
My program hangs at starting screen, ive had the same error as the one two post above me but i editet the line so i dont get that error anymore.
Now it just dont click the start button.
i am running 1920x1080
What can i do to make it work proberly?
Thanks in advance!!![]()
Can you check the contents of bender_gb.log and let us know what's there?
btw what i did edit was i changed line 39 to if $result="0" then return 0
yup it says nothing more than
[14:08:06] -I- =============== Session Started ===============
[14:08:41] -I- starting game
[14:09:01] -I- start game not found
[14:09:01] -I- error handler massage: StartGame.bmp
[14:09:01] -I- in handle error capturing box: StartGame.bmp bmp found at11
[14:09:03] -I- ================ Session Ended ================
[14:09:03] -I- ================ Session Ended ================
-edit
here is a screenie
http://i60.tinypic.com/2evtb0k.jpg
Last edited by thompou; 08-25-2014 at 08:26 AM.
When an error occurs, a screenshot is taken and saved in the screenshot directory. Can you check if you have one?
Actually, I was checking the SearchImage.DLL to use in my project, it returns a string if failed or sucess, so if it returns "0" it failed, if it found the image it will return like "1|43|72|123|122" that is:
1 - Found the image
2 - X position
3 - Y position
4 - Width
5 - Height
But not sure if it handle that already in the .au3 file, I didn't read the code yet.
Yes, I will try this out soon, the coordinates doesn't need to be exactly right? It's just a "base rect" to make the search faster? Because maybe I wont need to change the coordinates, because my monitor is 1920x1080, but my Diablo III runs at 1366x768 and I can't use the 1920 resolution, maybe because it's a "extended screen" and it's considering the max resolution of my notebook and not the screen I really use.
Anyway, it's a bug, I guess you didn't get what I mean, when you press "Basic" and "Advanced" it woks showing/hiding the options, BUT the 2 last options in the right side change its "Checked" property, it check/uncheck them while you press "Basic" and "Advanced", you can give a try, just keep showing/hiding the options and look the two options at the right side, it check/uncheck while showing/hiding
Edit: I just forced my D3 to run at resolution 1920x1080, but it's finding the button in the wrong position, can you post your D3Prefs for me please? Maybe I forgot to change some config on mine, just in case, it's on %userprofile%\Documents\Diablo III
Edit 2: I tried to force it at 1920 resolution and looks like it was correctly, but it's not finding the "Resume buttom", that's the image in the "captures" folder:
![]()
Last edited by maozao; 08-25-2014 at 01:27 PM.
It's dealt by the .au3 wrapper, and the bot has the wrapper wrapped even more.
The resolution is defined by your system's resolution (which reminds me I forgot to add a resolution dropdown to the GUI).
Tony is the one who set that part up, so he knows it better than I do.
In any case, whenever something fails, it appears in the log.
I looked at this screen capture and the resume image I have in my 1920x1080 dir, and they seem to be a bit different. If that's the case, maybe capturing a new image might solve the problem.
You can also lower the log verbosity from 2 to 1. That will print a lot of new info to the log (errors that are currently not printed).
Hello again, when i do so, i suddenly get error in line 45
here is a screen
imgur: the simple image sharer
Try to change the line 43 to this:
$array = StringSplit($result,"|")
That's how the .DLL should be handled, so should work with this change.
@YMI
Yeah, I will do some tests soon and see if I can get it working, it's weird since it should be the same image in X resolution doesn't matter which computer, maybe it's based in the Diablo 3 graphic config too? I'm using all configs at "High"