BlackSack,
The script runs perfectly fine on my own pc but doesn't run good in VM.
I've got a i7 2600k 560Ti and only 4 gigs of ram.
It ain't running smooth on the VM machine but it does on my own pc
Does it matters that i run windows (32 bit) ?
mine was working then all of a sudden randomly, be it 1 hour 2 hours or 5 mins i get this error
Line 7214 (File"Clocation of script)
Error: Subscript used with non-Array variable
I thought it was the pick up array - but nothing any ideas guys?
Is there a way to stop script scanning for legendaries after the first time? It keeps detecting my followers and ancients' aura and run around in circles trying to pick up "legendaries"
Pretty hilarious at first seeing how it was like a dog chasing its own tail but frustrating after awhile as you cut down seconds elsewhere only to have it waste it all back chasing fake legendaries.
Thanks!
does it happen repeatedly or just occasionally
Im using a Vertex 3 240GB for my virtual machines.
make sure you have newest versions of script and library files tess has not taken the focus for many versionsHey Sir Black, I need help. I happen to copy the exact same code but after killing sarkoth it tries to use the tesseractscreencapture but my problem is everytime it uses that function. My diablo 3 loses its window focus. How do I solve this? Is it because I'm running on win 32?
Please Help
@heatl0rd this is a tolerance issue it stahes anything with browny pixels in them incase its a legnedary. If you make tolerance too low you miss legendaries, too high you get magics, choose your own in StashLoot function. As for the warcry the script cancels it before looting.. at least it does on mine lol check the delays before the line where he right clicks the aura icon.
He should cancel the aura before looitng, if hes not check you timingsIs there a way to stop script scanning for legendaries after the first time? It keeps detecting my followers and ancients' aura and run around in circles trying to pick up "legendaries"
Pretty hilarious at first seeing how it was like a dog chasing its own tail but frustrating after awhile as you cut down seconds elsewhere only to have it waste it all back chasing fake legendaries.
Thanks!
This is some issue with fastfind, please get the error again without compiling to get a real line numbermine was working then all of a sudden randomly, be it 1 hour 2 hours or 5 mins i get this error
Line 7214 (File"Clocation of script)
Error: Subscript used with non-Array variable
I thought it was the pick up array - but nothing any ideas guys?
@Dieri I use VMware with 2 gigs of ram and 2 cores, put all the settings on low in the game then try if its still not fast then I dont know how you can make it faster
Hi,
thats a weird bug in the fastfind library. The problem with this crash is that it does not find the cellar but acts like it did. The FastFind function returns "true" which means - "hey i found the cellar" but does not set the resulting array correct. I dont know if that is an intended behaviour cause its not documented very well. So just replace the function EnhancedFind in your botscript with the following:
Func EnhancedFind($x1 = 0, $y1 = 0, $x2 = 577, $y2 = 220, $xpos = 367, $ypos = 135, $recov = False)
Local $aColorArray[3] = [0x7897EB, 0x404E9E, 0x536CB6]
FFAddColor($aColorArray) ; add color to find array
For $retry = 1 To 3
; take 2 snapshots and black out everything that did not change
FFSnapShot($x1 * $x_ratio, $y1 * $y_ratio, $x2 * $x_ratio, $y2 * $y_ratio, 2, $FFhWnd)
Sleep(50)
FFSnapShot($x1 * $x_ratio, $y1 * $y_ratio, $x2 * $x_ratio, $y2 * $y_ratio, 3, $FFhWnd)
FFKeepChanges(3, 2, 25)
;FFSaveBMP("CellarOpen_" & @HOUR & @MIN & @SEC, false) ->uncomment if you wanna see the cellar minimap motion map
; do special search for the color in our motionmap
Local $cellarCoords = FFBestSpot(10, 1, 4, $xpos * $x_ratio, $ypos * $y_ratio, -1, 25, False, $FFhWnd) ; search for the opening
If @error Then
Call("AddLog", "The motionmap failed on try " & $retry & " with code " & @error)
Else
ExitLoop
EndIf
Next
If Not @error And IsArray( $cellarCoords ) Then
If Not $recov Then GUICtrlSetData($lblStatus, "Status: Cellar - Found position " & $cellarCoords[0] * $x_ratio & ", " & $cellarCoords[1] * $y_ratio)
If Not $recov Then Call("AddLog", "Cellar - Found position " & $cellarCoords[0] * $x_ratio & ", " & $cellarCoords[1] * $y_ratio)
Else
If $TakeMissShots Then
CaptureToTIFF("", "", "", "shots\NoCell_" & String($run) & ".tif", 1, 0, 0, 0, 0)
EndIf
$cellarCoords[0] = 1000 * $x_ratio
$cellarCoords[1] = 500 * $y_ratio
EndIf
; reset colormap
FFResetColors()
Return $cellarCoords
EndFunc ;==>EnhancedFind
Yea this is such a strange error whats more strange is i have never got this error that ppl are reporting myself, your fix looks like it should do the job thou when it returns true with no co-ords we can blame this one on the author of fastfind
Lolat least we agree on the solution
What does the fastfind script actually do ?
Can't seem to find if its working or not dunno if it's on or not either...
Can someone explain me how i get it to work and what it actually does ?
Thanks in advance
Last edited by Dieri; 07-02-2012 at 07:33 AM.
Hi, did you managed to fix that? Because I've got the same issue
Hi,
FastFind is a C++ library that provides more sophisticated image manipulation tools then the ones that get shipped with autoit.
You wont see any motion of your cursor like in older versions without fastfind. The reason for that is that FF takes "screenshots" of a certain part of your display and then does some find algorithm to determine the best spot ( highest density ) for given colors.
There are currently two uses of FF in this bot.
The first:
It scans the minimap for the cellar entrance to detect if its possible to enter the cellar.
The second ( only if the first one succeeded )
It takes two images in a short interval of time and compares both pictures. Every pixel that did not change gets converted to black ( 0xFFFFFF ). After that it searches on that "black" image for pixels that match the colorcode of the open cellar and gets the position of that. Then it proceeds to enter the cellar.
The last step seems to be the one that most people struggle with.
There are 3 possible reasons for that:
1. People are to dumb to follow instructions ( 80% of all people complaining )
2. The period of time between to screenshots is to small to render two different images. That's the case if the fps is to low ( to fix that increase the sleep timer between two captures ). To low means something below or around 30. In my first attempt i chose a too small delay as BlackSack noted. But people with good PCs dont to run in this issue anyways.
3. It tries to take two snapshots of the screen while the toon is moving. If that is the case it will result in arbitrary coordinates for the cellar and your toon will miss the entrance.
If you want to know if the FastFind code is used while your toon is still walking just put a MsgBox in the EnhancedFind Method. This way a little box will pop up and notify you when the script starts searching. Just check if your toon still moves while this thing pops up.
Any questions ?
Last edited by Schmoggg; 07-02-2012 at 07:53 AM.