On-Grid Booster Project Vs 3.5 (0 viewing)
 | | |
|
TOPIC: On-Grid Booster Project Vs 3.5
|
|
Re: On-Grid Booster Project 9 Years, 4 Months ago
|
Karma: 10
|
|
I have done enough for a while.
If someone else wants to make the booster algorithm. I'll adjust this to work with it.
Look at the original post for what the booster should do.
|
|
|
|
|
|
|
Re: On-Grid Booster Project 9 Years, 4 Months ago
|
Karma: 16
|
|
If you're getting burned out, I'd definitely recommend taking a break. Innominate can tell you, he saw me nearly lose my sh*t entirely when I got overworked and frustrated with something I was working on. I took a week off, and came back renewed and feeling much better about it. You've done a lot of great work, I wouldn't toss it in the pile just yet. Later this week, I should have some free cycles if you'd like for me to look at your code?
|
|
|
|
|
|
|
Re: On-Grid Booster Project 9 Years, 4 Months ago
|
Karma: 34
|
|
(On phone, sorry.)
Dude, you have no idea how close you are! You just need to take a page from Slav's book.
Booster uses slightly modified version of your miner algorithm.
When booster is about to warp (after BMBelt.ahk), log off, or crashes set shared ini to 0.
For synchronized BMs:
When booster arrives at site, it right clicks on each BM to find Approach so it knows where it is.
Writes BM# to shared ini.
Booster mines with drones as normal until algorithm goes path of
Let INI value (set by booster) determine what miners do.
INI=0, Miner algorithm needs to sit at or return to base.
INI=[BM#], Miner warps to synched BM#
For non-synched BMs
User must save name of booster so miners can right click and Warp To it.
INI=1, Miner warps to synched BM#
Miner algorithm:
Change 401 to be something like WarpToBooster.ahk. That script would check shared ini and either initiate warp to booster (BM# or warp to member) or go back to 120 if ini is 0. Then for mining piece, Before StopOperation it checks shared ini. If ini is 0, it skips over StopOperation to go to 270. Have 270 always go to 240, which Means MiningModeEx and CalcBeltToWarp isn't used.
Booster algorithm:
Have it set shared ini to 0 before BookMarkBelt.
After AvoidShips, have it get BM# and write it to shared ini. (Or just write 1 if doing warp to fleet member)
Before all CloseEveWindow and EP modules that warp, write 0 to shared ini.
In EP GUI, set mining laser module to activate fleet boost module.
I think that should work?
|
|
|
|
Last Edit: 2017/06/12 13:05 By innominate.
|
|
|
Re: On-Grid Booster Project 9 Years, 4 Months ago
|
Karma: 10
|
|
Well, I did just finish coding full on grid booster and miners Vs 3.0
Got in the mood to just bang it out. Now I need to test it.
|
|
|
|
|
|
|
Re: On-Grid Booster Project 9 Years, 4 Months ago
|
Karma: 10
|
Here is the Looter algorithm.
It warps to the first belt BM, finds asteroids and drops a BM.
If it warps in and does not find asteroids, it warps back to POS and just chills there constantly looking at the top BM.
Where would I change it to go to BM 2, then 3. Or do I need to write another ahk to do that?
Warning: Spoiler!
| Code: |
;Looter my Macrolab v 1.6
;CorpBMV3_Minesalot v 3.0 Booster
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)[OG2+;050;OG2+;OG2+;OG2+]
030: FleetMode(true)[OG2+;040+;OG2+;OG2+;OG2+]
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)[OG2+;100+]
100: TravelToNextSystem()[900+;100;100;160;OG2+]
110: SetNextSystem(0)[OG2+;100+]
120: Barrier(1)[130;120;140]
130: PlanetManager()[900+;130;140]
140: Barrier(2)[260;140;260]
150: SetNextSystem()[OG2+;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+;OG2+;250;250]
250: EmergencyWarpOut(false)[290+]
260: AFKLogOffTimers()[900+;310+;030;260;120]
270: CheckTraveling()[280;150+]
280: LooterManager()[900+;270+;260;330;330]
284: AutoHotkey(On-GridFiles\OGDockDrones.ahk;30;False;False;)[285;285;285;285;285]
285: LooterManager()[900+;200+;200+;OG0;OG0]
290: FleetMode()[900+;300+;290;300+;290+]
300: GroupMode(true;false;true;false)[350+;300]
310: CheckLocalWait()[900+;360+;260;260]
320: AutoHotkey(On-GridFiles\OGBMWarpToBoosts.ahk;0;False;False;On-GridFiles\OGEPVars.ini|Miner|EPResult)[322;322;320;325;322]
321: Sleep(30000)[321;320]
322: WarpingToLocation()[900+;240;322;325+;370+]
325: CheckLocal(;)[900+;326;WO]
326: AutoHotkey(On-GridFiles\OGBoosterMarkBelt.ahk;0;False;False;On-GridFiles\OGEPVars.ini|Booster|EPResult)[389;326;327;326;326]
327: AutoHotkey(On-GridFiles\OGBoosterModule.ahk;0;False;False;On-GridFiles\OGEPVars.ini|Booster|EPResult)[327;327;OG0;327;327]
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+;322+]
380: LooterTS()[900+;FM2;325;WO;OG0]
389: AutoHotkey(On-GridFiles\OGBoosterScrubBM.ahk;0;False;False;On-GridFiles\OGEPVars.ini|Booster|EPResult)[389;389;390;389;389]
390: CheckLocalWait()[900+;320+;200+;200+]
610: Unstuck()[003+;610;003+;322]
620: UndockSub()[900+;620;630+]
630: CustomDelay(;;;;)[900+;660+;630]
660: CheckLocalWait()[900+;320;200+;200+]
670: ReturnHome()[690+;110+]
690: BookmarkSetup()[900+;200+]
900: StationSpaceCheck()[902;902;902+;OG0;902]
902: ErrorHandler()[OG2;003+;003+]
CL: Goto()[003+]
EC: Goto()[003+]
FM2: AutoHotkey(On-GridFiles\OGDroneControl.ahk;30;False;False;On-GridFiles\OGEPVars.ini|Drones|EPResult)[FM2;OG0;FM2;380;FM2]
LO: Goto()[OG2]
WO: AutoHotkey(On-GridFiles\OGDockDrones.ahk;15;False;False;)[WO2;WO2;WO2;WO2;WO2]
WO2: AutoHotkey(On-GridFiles\OGOnGridNo.ahk;5;False;False;)[WO3;WO3;WO3;WO3;WO3]
WO3: EmergencyWarpOut()[200+]
OG0: AutoHotkey(On-GridFiles\OGBoosterMonitor.ahk;0;False;False;On-GridFiles\OGEPVars.ini|Booster|EPResult)[OG1;WO;389;FM2;380]
OG1: CheckLocal(;)[900+;OG0;WO]
OG2: AutoHotkey(On-GridFiles\OGOnGridNo.ahk;0;False;False;)[002;002;002;002;002]
|
|
|
|
|
Last Edit: 2017/06/12 21:58 By Minesalot.
|
|
|
Re: On-Grid Booster Project 9 Years, 4 Months ago
|
Karma: 34
|
Assuming you mean Looter deletes BM.
I think it is LooterTS that determines whether there are no more cans in the area (and deletes old BM)... So, if there are no cans left have it route to a script that checks for the number of BMs. If more than just the station BM route to warpingToLocation(1), else warpingToStation. That would do it. 
|
|
|
|
Last Edit: 2017/06/13 12:15 By innominate.
|
|
|
 | | |
|
|