Corp Bookmarking Miners (0 viewing)
| | |
TOPIC: Corp Bookmarking Miners
|
Re: Corp Bookmarking Miners 7 Years, 9 Months ago
|
Karma: 10
|
Problem solved.
With the miners running BM's every 25-30 minutes
Start the looter 30 minutes after they start
Looter flys an orca with acendancy implants for a whopping 3.5 au warp speed
Targeting mods for almost instant locks
He is able to loot everything in plenty of time. even with fouled BM's
|
|
|
|
|
Re: Corp Bookmarking Miners 7 Years, 9 Months ago
|
Karma: 16
|
Ha! Awesome I love simple solutions! That said, offer of help stands if you ever find a problem you think scripting could fix
|
|
|
|
|
Re: Corp Bookmarking Miners 7 Years, 8 Months ago
|
Karma: 10
|
Something is borked. The last couple days I get home and I see way too many bookmarks, and they are more than 2 hours old, so I manually operate the looter to mop up.
I am going to need to either add a function to miner to self delete old BM's or modify a looter to remove all BM's in same belt.
Edit:
Further testing I see that they are marking empty belts too much. Every time they visit a belt and there are no roids, the belt gets marked with the belt script, towards the end of the day that can be quite a few. So I think there needs to be a timer just for belt marking, or add a .ini read/write for was a can jetted in this belt? Then mark the belt.
CorpBookmarkBelt.ahk Edit: Changed the upper section only to verify a can is in space and marked by the CorpBookmarkCan.ahk script
Warning: Spoiler!
;CorpBM Miner 1.0 by Innominate
;Edited by Minesalot to not mark empty belts with no cans.
SetWorkingDir %A_ScriptDir%\CorpBMImages ; Ensures a consistent starting directory.
/*
Hotkeys Used:
Cntrl + Shift + B (Bookmark)
*/
;; If you want to test this out without it being in the Eve Pilot algorithm, remove the semicolon on the line below and use the key to the left of 1 to start it (Runs Once)
;`::
IniRead, LastBMTime, EPVars.ini, Bookmarks, TimeOfLastBM, null
if(LastBMTime = "null"){
LastBMTime := A_NowUTC
IniWrite, %A_NowUTC%, EPVars.ini, Bookmarks, TimeOfLastBM
ExitApp
}
minSinceLastBM := A_NowUTC
minSinceLastBM -= %LastBMTime%, Minutes
;If it has been more than 2 hours since last BM all cans have popped.
if(minSinceLastBM > 120){
IniWrite, False, EPVars.ini, Bookmarks, CanInSpace
}
IniRead, IsCanInSpace, EPVars.ini, Bookmarks, CanInSpace, null
if(IsCanInSpace = "null"){
IsCanInSpace := False
IniWrite, False, EPVars.ini, Bookmarks, CanInSpace
ExitApp
}
;If there is no can in space, move along nothing to see here folks.
if(IsCanInSpace = "False"){
ExitApp
}
;No need to mark belts more than every 10 minutes.
if(minSinceLastBM < 10){
ExitApp
}
CorpBookmarkCan.ahk Edit: Changed the upper section
Warning: Spoiler!
;CorpBM Miner 1.0 by Innominate
;Edited by Minesalot to not mark empty belts with no cans.
SetWorkingDir %A_ScriptDir%\CorpBMImages ; Ensures a consistent starting directory.
/*
Hotkeys Used:
Cntrl + Shift + B (Bookmark)
*/
;; If you want to test this out without it being in the Eve Pilot algorithm, remove the semicolon on the line below and use the key to the left of 1 to start it (Runs Once)
;`::
IniRead, LastBMTime, EPVars.ini, Bookmarks, TimeOfLastBM, null
if(LastBMTime = "null"){
LastBMTime := A_NowUTC
IniWrite, %A_NowUTC%, EPVars.ini, Bookmarks, TimeOfLastBM
ExitApp
}
minSinceLastBM := A_NowUTC
minSinceLastBM -= %LastBMTime%, Minutes
;If it has been more than 2 hours since last BM all cans have popped.
if(minSinceLastBM > 120){
IniWrite, False, EPVars.ini, Bookmarks, CanInSpace
}
if(minSinceLastBM < 25){
ExitApp
}
And the lower part added
Warning: Spoiler!
IniWrite, %A_NowUTC%, EPVars.ini, Bookmarks, TimeOfLastBM
IniWrite, True, EPVars.ini, Bookmarks, CanInSpace
ExitApp
With these changes it seems to be working a little better for me. I am going to try a couple days with the timer turned down to 12 minutes, so it will mark every other can drop, that way the looter is at least picking up 2 cans at each location. Fewer cans in space hopefully pirates leave me alone. I have seen as many as 8 cans at a location before. Very tempting target.
|
|
|
Last Edit: 2017/05/02 19:18 By Minesalot.
|
|
Re: Corp Bookmarking Miners 7 Years, 8 Months ago
|
Karma: 10
|
How feasible would it be to have the looter do a scrub for the Bookmark graphic before warping to the next Corp bookmark. Would it be more generally usable by more people than to scrub all of the Corp bookmarks for approach and remove?
Look for this image:
In this area:
I do foresee 1 small problem. Multiple bookmarks that overlap like this, the human eye can tell there are two there, but can the image scanner? Scrolling in and out does separate them enough to be recognized.
|
|
|
Last Edit: 2017/05/03 17:50 By Minesalot.
|
|
Re: Corp Bookmarking Miners 7 Years, 8 Months ago
|
Karma: 33
|
I would recommend you adding logic that clicks on each BM. If it has Approach, delete it.
|
|
|
|
|
Re: Corp Bookmarking Miners 7 Years, 8 Months ago
|
Karma: 10
|
Got a functional script running. BTW Pulovers Macro Creator program is awesome!
Edited: Vs 1.1
Warning: Spoiler!
Code: |
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
;By Minesalot to remove duplicate BM's
;Inspired by Slav, Innominate and AbbadonDespoiler
;Intended to be used with Slav's stock Looter script modified and Innominates Corporate BM script
;vs1.1 - Had to add some sleeps to get it to slow down and imagesearch better. Changed a few variables
SetWorkingDir %A_ScriptDir%\CorpBMImages ; Ensures a consistent starting directory
ApproachLoc := "ApproachLocation.png"
RemoveLoc := "RemoveLocation.png"
BMName := "Ready.png" ; get a screen shot of part of your BM name and save as "Ready.png" in Corp Images
varY := 220
IfWinNotActive, EVE - , , WinActivate, EVE - ,
Sleep, 258
CoordMode, Pixel, Window
count:=0
while (count = 0){
sleep, 341
Random, RandomX, 480, 530
Random, RandomY, 680, 730
MouseMove, %RandomX%, %RandomY%, 10 ;Click in some random spot around capicitor to clear and open menues
Click
sleep, 352
ImageSearch, FoundX, FoundY, 70, varY, 380, 730, *30 %BMName%
If(FoundX != ""){
MouseMove, FoundX + 7, FoundY + 7, 10
Click Right
;Msgbox, % "-- " BMName " found at " FoundX "/" FoundY
sleep, 75
ImageSearch, tempX, tempY, FoundX, FoundY, FoundX + 200, FoundY + 200, *30 %ApproachLoc%
If(tempX != ""){
;Msgbox, "Found Approach Location"
sleep, 75
ImageSearch, temp2X, temp2Y, tempX, tempY, tempX + 200, tempY + 200, *30 %RemoveLoc%
If(temp2X != ""){
MouseMove, temp2X + 7, temp2Y + 7, 10
;Msgbox, "Found Remove Location"
sleep, 75
Click
}
} Else { ;Did not find "Approach" so skip this line
varY := FoundY + 20
}
} Else{ ;tick counter to get out of loop
count++
}
}
|
It is working as I like.
Checks top BM for "Approach Location" and removes it if found.
Rechecks top BM for "Approach Location" and removes it too, until "Approach Location" is not found.
Drops down to the next line and rinses & repeats until no more BM's match.
I am surprised I was able to do this in such little amount of code, I thought it would be longer and more complicated. If you can see a better or more efficient way of doing this, I am all ears... or eyes.
A big question is, where should I edit the Looter script to run this after looting and before choosing next destination?
I put it right here at 319 so it should check local, then rinse the bm's before picking new location
Edited: Using Looter script edited using Abbadons suggestion and moved Approach check to 649
Warning: Spoiler!
Code: |
;Looter my Macrolab v 1.6
;CorpBMV1_Minesalot v 1.1
000: Goto()[040+]
001: StopClient(;true;false)[001]
002: CloseEveWindow()[001;001]
003: GroupMode(true;true;false;false)[005;005]
005: CloseEveWindow()[001+;006]
006: CustomDelay(;;;;)[003+;007+;006]
007: FleetMode(true)[002+;050;002+;002+;002+]
030: FleetMode(true)[002+;040+;002+;002+;002+]
040: StartEveAndLogin(true)[001+;060;060;040]
050: StartEveAndLogin(true)[001+;060;080;050]
060: CheckTraveling()[160+;070+]
070: ReturnHome()[090+;110+]
080: CheckTraveling()[160;090]
090: SetNextSystem(+0)[002+;100+]
100: TravelToNextSystem()[900+;100;100;160;002+]
110: SetNextSystem(0)[002+;100+]
120: Barrier(1)[130;120;140]
130: PlanetManager()[900+;130;140]
140: Barrier(2)[260;140;260]
150: SetNextSystem()[002+;100+]
160: BookmarkSetup()[900+;200+]
200: WarpingToStation(true)[900+;240+;200;230;210]
210: Unstuck()[900+;210;003+;200]
220: GroupMode(true;true;false;false)[260+;220]
230: DockingToStation(;;)[900+;200;230;220+;220+]
240: UnloadCargoEx(;true;true;)[900+;200+;002+;250;250]
250: EmergencyWarpOut(false)[290+]
260: AFKLogOffTimers()[900+;310+;030;260;120]
270: CheckTraveling()[280;150+]
280: LooterManager()[900+;270+;260;620+;330+]
285: LooterManager()[900+;200+;200+;649+;390+]
290: FleetMode()[900+;300+;290;300+;290+]
300: GroupMode(true;false;true;false)[350+;300]
310: CheckLocalWait()[900+;360+;260;260]
320: WarpingToLocation()[900+;240;320;325+;370+]
325: CheckLocal(;)[900+;380+;200+]
330: UndockSub()[900+;330;340+]
340: CustomDelay(;;;;)[900+;390+;340]
350: CheckLocalWait()[900+;280+;260;350]
360: CustomDelay(;;;;)[900+;240+;360]
370: Unstuck()[003+;370;003+;320+]
380: LooterTS()[900+;285+;325;200+;285+]
390: CheckLocalWait()[900+;320+;200+;200+]
610: Unstuck()[003+;610;003+;650+]
620: UndockSub()[900+;620;630+]
630: CustomDelay(;;;;)[900+;660+;630]
640: LooterTS()[900+;670+;640;670+;285+]
649: AutoHotkey(BMApproachCheck.ahk;25;False;False;)[650;650;650;650;650]
650: WarpingToCorpBMark()[900+;680+;650;640+;610+]
660: CheckLocalWait()[900+;649+;200+;200+]
670: ReturnHome()[690+;110+]
680: TravelingSub()[900+;680;649+]
690: BookmarkSetup()[900+;200+]
900: ErrorHandler()[002+;003+;003+]
CL: Goto()[003+]
EC: Goto()[003+]
FM: FightModule()[002+;002+;002+;002+;002+]
LO: Goto()[002+]
WO: EmergencyWarpOut()[200+]
|
|
|
|
Last Edit: 2017/05/16 17:25 By Minesalot.
|
|
|
| | |
|
|
© Macro Laboratory 2025
All rights reserved!
|