x-actly / Eve-Online-Mining-Bot

simple python script to automate mining in eve online
12 stars 5 forks source link

add a config handler class + make cross platform #48

Closed sillychipmunk closed 6 months ago

sillychipmunk commented 6 months ago

~needs to be tested, this is developed on a mac which doesn't support win api and I cant get Tk working~ <- fixed it, installed python from official site

It seemed pyautogui had a mouse location function that is cross platform

fixes #18 fixes #47 (by the fact that an empty string split by comma will yield an empty array which does nothing) fixes #45 (not for the belt coords though)

@x-actly for the issue of disabling default hardener logic, I have removed the default "F3". We can discuss if we want it as default, but I think given the name of the repo and its intention to be used mainly in highsec the importance of drones cannot be underestimated. To activate a set of combos to execute when leaving station now, you set them as a comma separated string in hardener_keys in [SETTINGS] like this

[SETTINGS]
hardener_keys = F3, Alt-F2, Alt-F1
sillychipmunk commented 6 months ago

not bad for a tiny bot:

       4 text files.
       4 unique files.
       0 files ignored.

github.com/AlDanial/cloc v 2.00  T=0.01 s (405.1 files/s, 100882.1 lines/s)
-------------------------------------------------------------------------------
Language                     files          blank        comment           code
-------------------------------------------------------------------------------
Python                           4            219            119            658
-------------------------------------------------------------------------------
SUM:                             4            219            119            658
-------------------------------------------------------------------------------
sillychipmunk commented 6 months ago

@x-actly its looking like this now

image

sillychipmunk commented 6 months ago

image

sillychipmunk commented 6 months ago

I decided to show an estimation of time to complete that changes when you update runs, hold or yield. Should maybe show it as decreasing reset timer like before But it was not trivial 😅

x-actly commented 6 months ago

works for with new fix "get_cargo_loading_time" ;)

sillychipmunk commented 6 months ago

works for with new fix "get_cargo_loading_time" ;)

Ill say as Siri "I'm sorry, I didn't get that" 😂

x-actly commented 6 months ago

works for with new fix "get_cargo_loading_time" ;)

Ill say as Siri "I'm sorry, I didn't get that" 😂

I had a zero division issue when I tested the pull request, but you had fixed it in the meantime. All good :D image