Welcome, Guest
Please Login or Register.    Lost Password?

Changing Mining Crystals in Belts
(0 viewing) 
Go to bottomPage: 1234
TOPIC: Changing Mining Crystals in Belts
#38740
Changing Mining Crystals in Belts 10 Years, 3 Months ago Karma: 33
Well, I started working on this before I found that MenuOpenLineClick didn't accept an INI input. Really wish that took an INI... I'd be almost done. Also it'd be nice if UnloadCargoEx let me specify which ore/cargo hold to use.

So before I go in depth as to why I stopped working on it, I have to ask who would ACTUALLY use it? In high sec you usually mine in a place with enough belts that you can just use one mining crystal and never run out. And if you were to switch mining crystals, then that would mean if you ran multiple bots in the system that they would start mining the same roids and lose a lot of efficiency. It'd be better for them to just use their own crystals the whole time. The only place that I see benefit to dynamically changing mining crystals is if you mine anomalies in 0.0. But if you have multiple bots, then they'd overlap, but with much less efficiency loss due to the size of the roids there.

Because MenuOpenLineClick not accepting an INI input, I'd have to preconfigure a matrix method of using MenuOpenLineClick to go to 16+ (Ices) paths with some sort of matrix because I only have 5 routing options per EP module (so there'd have to be some matrix flow thing happening). Each path would need to have a preconfigured line to select the correct overview tab preset and another to right click on the mining laser to select the crystal, making 32 non-dynamic lines that require a 5 point matrix to path through. Then I realized that UnloadCargoEx doesn't accept a parameter (or work with a POS) to specify whether to open the ore or cargo hold. This means that it wouldn't be able to unload mining crystals, on a ship with an ore hold, before reloading them. In other words, unused crystals would start to fill up the hold and keep the most used ones from making it onto the ship.

So here's what I originally wanted to do:
In the EP algorithm when the bot figures out there are no more roids in the area
EP's MenuOpenLineClick module switches to display all roids.
EP's ScanOverview puts roids in INI file
AHK opens cargo-hold, gets list of contents via selectAll/Copy, chooses most profitable type based on what is in ScanOverview INI and writes name of mining crystal to INI file for next step
EP's MenuOpenLineClick module right clicks on mining laser module(s) and selects type of mining crystal in INI file (could probably use EP's XML settings file to know where mining lasers are)
EP's MenuOpenLineClick module switches to display only that type of roid
EP's ScanAsteroids (updates EP with what is now showing and will use survey scanner if configured)
Flow goes back to 370: MiningLasersControl, which is where the core of the whole mining loop starts for each belt


Here's how far I got after I realized I didn't want to do the 5 point matrix routing thing:
Select MINEALL in overview tab
LP1: MenuOpenLineClick(Load Preset;X:Y;X:Y:H:W;False;0)[900;ALRD]
ALRD: MenuOpenLineClick(MINEALL;X:Y;X:Y:H:W;True;5)[900;SCOV]

Get and load roid types found into INI file
SCOV: ScanOverview(EPVars.ini;EPOverview;Distances;Types;Names)[900;GTCR]

Right click on mining laser and search for each ore name to build a list of what is there
GTCR: AutoHotkey(GetCrystals.ahk;0;False;False;)[WO;WO;IDRD;IDRD;IDRD]

Identify best crystal to load based on roids present and crystals in cargo
If there is not a crystal for any of the remaining roid types, Select normal asteroids again
IDRD: AutoHotkey(DynamicCrystals.ahk;0;False;False;)[WO;WO;LPRD;LPRD;LPRD]

Select appropriate roid type in overview tab
LPRD: MenuOpenLineClick(Load Preset;X:Y;X:Y:H:W;False;0)[900;SLRD]
Use mouse relative location
SLRD: AutoHotkey(OVSelectRoid.ahk;0;False;False;)[WO;WO;LDCR;LDCR;LDCR]

ScanAsteroids:

Load crystal(s) into lasers
LDCR: AutoHotkey(LoadCrystals.ahk;0;False;False;)[WO;WO;381;381;381]
Go back to new StopOperation that will continue mining if roids present

Select asteroids in overview tab
LP2: MenuOpenLineClick(Load Preset;X:Y;X:Y:H:W;False;0)[900;SLAS]
SLAS: MenuOpenLineClick(asteroids;X:Y;X:Y:H:W;True;5)[900;381]

Won't work because it uses orehold by default if selected in UI
UnloadCargoEx
LoadCargoEx

I think I'll work on the MTU script instead, because I know I'll actually use that. Sorry people.
innominate
Gold Boarder
Posts: 632
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#40630
Re: Changing Mining Crystals in Belts 9 Years, 8 Months ago Karma: 10
Now that we have the ability to have more than 4 tabs, would it make it easier to have say, Tab 2 Bistot, if roids apear in tab 2, load bistot crystal. Tab 5 Arkonor, if roids do not appear in tab 2, look at tab 5. if roids appear here load arkonor crystals, if roids do not appear here, look at tab 6 Mercoxit, if roids appear here load mercoxit crystals... ... ... and so on.

IT would also require base code changes as well as UI changes to have multiple tabs set up with roid choice for each tab. Yeah lots of work n stuff. Better you than me though.
Minesalot
Expert Boarder
Posts: 236
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#40638
Re: Changing Mining Crystals in Belts 9 Years, 8 Months ago Karma: 33
Minesalot wrote:
Now that we have the ability to have more than 4 tabs, would it make it easier to have say, Tab 2 Bistot, if roids apear in tab 2, load bistot crystal. Tab 5 Arkonor, if roids do not appear in tab 2, look at tab 5. if roids appear here load arkonor crystals, if roids do not appear here, look at tab 6 Mercoxit, if roids appear here load mercoxit crystals... ... ... and so on.

IT would also require base code changes as well as UI changes to have multiple tabs set up with roid choice for each tab. Yeah lots of work n stuff. Better you than me though.

Ooh, good point! I'll have to save this for when I'm done with my monstrous project.

However, this would cause belts with two miners to be less efficient when they are mining the same roid. {Which my monstrous project might be able to overcome, now that I think about it. Anyways, something for me later.}
innominate
Gold Boarder
Posts: 632
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#40677
Re: Changing Mining Crystals in Belts 9 Years, 8 Months ago Karma: 10
Personally I am not concerned about "perfect efficiency", that looks too Botty.

Also the same idea can be done with mining drones. They dont have to be perfect. So what if they "waste" a cycle here and there. Most miners like drones, and use them. Except most bots, because they are difficult.

If you have a crappy mining drone script that shares roids with lasers, I'll be happy to use it.
Minesalot
Expert Boarder
Posts: 236
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#40689
Re: Changing Mining Crystals in Belts 9 Years, 8 Months ago Karma: 6
Hahaha i was like MTU MTU MTU and then your comment at the end <3
Pronator
Expert Boarder
Posts: 400
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#40690
Re: Changing Mining Crystals in Belts 9 Years, 8 Months ago Karma: 6
Bump & karma
Pronator
Expert Boarder
Posts: 400
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 1234
Moderators: Slav2
© Macro Laboratory 2026
All rights reserved!
Design by Ivan Kozyrin