I used _ScreenCapture_Capture(), from ImageSearch.au3, to capture the image, and then GUICtrlSetImage() to display it. The following snippet, from ShowCredits(), will check in two places for the inventory credit number (if the crew skills window is open, the inventory window will be in a different place), and then take a screenshot of the credits area, saving it locally, and then display the image on the UI. WinActivate() simply makes sure the game client has focus before the checks:
If you come up with an improved crash detection method, be sure to post it so we can integrate the solution for everyone. Ideas and contributions are always encouraged and welcomed.Code:Local $shipcheck = 0, $timeit = 0, $x, $y, $a, $b, $credits = 0, $invcheck1 = 0, $invcheck2 = 0, $invtimer = 0 WinActivate("Star Wars™: The Old Republic™","") EventDelay(2000) dmsg("Checking credits from inventory...") Send("i") While $invcheck1 = 0 And $invcheck2 = 0 And $invtimer < 2 ; make sure the inventory screen is present, check twice EventDelay(100) $invcheck1 = _Imagesearcharea("pictures/inventory.png",1,45,220,140,245,$x,$y,$img_tolerance) EventDelay(500) $invcheck2 = _Imagesearcharea("pictures/inventory.png",1,600,220,695,245,$x,$y,$img_tolerance) ; inventory location when crew skills window is up EventDelay(500) $invtimer += 1 Wend If $invcheck1 = 1 Then _ScreenCapture_Capture(@MyDocumentsDir & "\Credit_Image.jpg", 360, 597, 434, 608) ; area one ElseIf $invcheck2 = 1 Then _ScreenCapture_Capture(@MyDocumentsDir & "\Credit_Image.jpg", 913, 597, 987, 608) ; area two Else dmsg("Inventory window not found, skipping credit check...") EventDelay(2000) Send("i") Return EndIf EventDelay(2000) GUICtrlSetImage($CreditTotal, @MyDocumentsDir & "\Credit_Image.jpg") EventDelay(500) Send("i") EventDelay(50) dmsg("Credit check complete...")![]()
Last edited by TMichael; 10-05-2012 at 12:58 PM.
mk then...any idea why? or if there are further updates for it
Got the same syndrome, need a cure!!!!!
Michael, is it going to be hard and take a lot of time to put the starter fixes in the old starter where its separate, just to see if the client really crashes all autoit stuff or it's something else?
Also is it possible that the bot crashes because it can't do something while attempting to restart the client?
Truestorybro, can you tell me what's your CPU usage with 2 VMs + 1 client on the host? my CPU is easily going above 80% and above 90% while games are loading, it's currently overclocked at 4,1GHz, and NorthBridge is at 2400MHz, and are you using the same 8.0.4 VM ? Before I was able to run 3 VMs at around 80-90% load... now i have that with 2 VMs and 1 client...
I haven't seen a "normal crash" succesful recovery in a very long time, right now I tried with Alt+f4 the game window was there, there were 2x Close the Program windows, instead of clicking them it just kept looking for mission start image or something like that, I don't know if this would really happen with a "normal crash" but still... anyway after I clicked the close program windows, now it checked if any of them are there and then it loaded....
Last edited by Darkbounded; 10-05-2012 at 03:26 PM.
Per the integration, yeah, through and through. The bot, and specifically the starter, are working really well since the last revision, but I have seen both types of crashes. Interestingly, on my wife's rig, which has lower specs and less memory than mine, the bot ran all night without one client crash.Michael, is it going to be hard and take a lot of time to put the starter fixes in the old starter where its separate, just to see if the client really crashes all autoit stuff or it's something else?
This is one possibility I'm digging into.Also is it possible that the bot crashes because it can't do something while attempting to restart the client?
I'm only running 1 client natively and 1 on VM atm on my AMD. The biggest issue for me (i think) is that if i use a second VM on the AMD i start to get som fails after a while as the third VM is on a normal mechanical HDD. The native client and other VM is on SSD. But on wednesday i bought a i7-3770 (upgrade from i5-3570) on this computer and im running 2 VMs now with about 40% load so i can easilly fire up a third VM for sure.
How do you save your password into the config? for some reason mine keeps reverting back to YourPass
Nevermind..
Set the password, then open the bot.. simple enough.. sorry.
Last edited by eibtech; 10-05-2012 at 10:42 PM. Reason: duh
I just have to say that this build alone is just amazing. Well done!
I have it set to restart the game client after every 10 missions since crashing would vary between 13 & 23 wins. Doing so I hope will resolve the crashing. Testing overnight, will update when I wake up.
So about the crash-to-desktop-syndrome, one of my VMs crashed tonight while I was sleeping and the other didn't, the difference between them tonight was that I left my cursor inside the VM that didn't crash and it is still running at 130+ missions on Drexel... not much but its something :d
And its still running..
Last edited by Darkbounded; 10-06-2012 at 05:08 AM.
Since the latest update, I can't get any missions to run.. The cursor just moves around in a triangle.. Doesn't even start missions..
Any ideas, folks? I've messed with some settings, but to no avail..
Needless to say I love the additions, I have a suggestion for the crew skills and this will probably be something everyone would like.Luckys Spacebot v5.35 x86 (R257)
System details: X64 CPU, WIN_7(X64) Service Pack 1
RAM total:7 GB,free:4 GB, used:38 %
Desktop dimensions: 1920x1080(32bpp, 60Hz)
Desktop theme: Aero using NormalSize, NormalColor, 96dpi
SWTOR Client is running with 1024x766
SWTOR Window:0,0 Win size:1040x804
Color scheme: Aero
On Target Time=50
Missile Delay=333
Timer Skew =50
IMG Tolerance=106
HD Status=1
Timing override=4
Mission bonus=1
PSX OTT enabled=4
PSX DBG enabled=4
Last mission=Aeten Defense
Win / Loss 177 / 0
[ ] Companion 1 <drop box for left, middle, right (default middle)> <drop box for level range (including grade 6) and (Always Highest(default))> <drop box for specific type (Do Not Specify - Default)>
[ ] Companion 2 <drop box for left, middle, right (default middle)> <drop box for level range (including grade 6) and (Always Highest(default))> <drop box for specific type (Do Not Specify - Default)>
[ ] Companion 3 <drop box for left, middle, right (default middle)> <drop box for level range (including grade 6) and (Always Highest(default))> <drop box for specific type (Do Not Specify - Default)>
[ ] Companion 4 <drop box for left, middle, right (default middle)> <drop box for level range (including grade 6) and (Always Highest(default))> <drop box for specific type (Do Not Specify - Default)>
[ ] Companion 5 <drop box for left, middle, right (default middle)> <drop box for level range (including grade 6) and (Always Highest(default))> <drop box for specific type (Do Not Specify - Default)>
This will allow for us to farm multiple gathering skills and specify the level range. Before the level range was Grade 1 - 5 and Always Highest, but what if I only want to farm Grade 6, this should be an option. I.E: Companion 1 farming Arch Grade 6, Companion 2 Arch Grade 5, Companion 3 UT Grade 6, Companion 4 UT Grade 6, etc..
Last edited by eibtech; 10-06-2012 at 07:37 PM. Reason: added options
@eibtech: Thanks, the support is appreciated.I have at least one more bug to squash (after a session ends, the bot will sometimes skip back to session one, ignoring later sessions), and then on to Crew Skills.
Per Crew Skills, I like your suggestion. Into the box that goes, to be codified if possible in the very near future.
Any chance you are working on a work around for the current problems with the bonus in Aeten? It was working until the last major patch and has not been able to complete the bonus since then. Would be nice if the developers could work on this. 50% more credits is significant.