Добро пожаловать, Гость
Пожалуйста Вход или Регистрация.    Забыли пароль?
ВнизСтраница: 1...678910111213
Сообщения темы: Corp Bookmarking Miners
*
#46025
Re: Corp Bookmarking Miners 9 г., 3 мес. назад Репутация: 34
Abbadon has some good points.
1. The amount of m3 in 0.0 roids means they can all mine the same roid for hours. One lost cycle shouldn't matter. The Orca would need to go to the next roid and the miners just follow.

2. I made a post on how to do the ore calculations in the algorithm somewhere. I think if you search GetLasersData under my name it'll be right there.

I recommend following his advice on allowing windows to be moved. It gives a lot more freedom.
innominate
Gold Boarder
Постов: 642
graphgraph
Пользователь в оффлайне Кликните здесь, чтобы посмотреть профиль этого пользователя
Для добавления сообщений Вы должны зарегистрироваться или авторизоваться
 
#46027
Re: Corp Bookmarking Miners 9 г., 3 мес. назад Репутация: 10
Innominate, I just looked at your AHK script. OH HELL NO! I am not going to be ANYWHERE near that complicated. I want simple and functional. It would be nice if someone else can use it, but my main goal is to get something usable by Me, and I don't need that much.


Abbadon, I agree I am rewriting it to use an anchor point and go from there, because I do have all of my miners on slightly different set ups. Dont want to make it easy on CCP BanHammer.


Question on Class objects though. Are classes like functions in visual basic? I can write a function/class and call it when needed? And if so are they seperate .ahk files with the class name as its name? and the function inside it?
Minesalot
Expert Boarder
Постов: 236
graphgraph
Пользователь в оффлайне Кликните здесь, чтобы посмотреть профиль этого пользователя
Для добавления сообщений Вы должны зарегистрироваться или авторизоваться
 
#46036
Re: Corp Bookmarking Miners 9 г., 3 мес. назад Репутация: 34
Hehe, OOP is not for everyone.

AHK is a prototyping language. Its classes mirror how classes work in Java and .Net. It can all be in one file if you want.

Don't think of them as classes. The better perception is that they are objects with attributes (Height/Width) and actions (Functions to interact with the object) that you define so that things work together in a in a predictable way simply by thinking about what attribute and job belongs to what object. It also makes picking the code back up at a later point way easier. I have over 5k lines of code, but only a handful of class methods to remember.

autohotkey.com/board/topic/68877-practic...-needed/#entry436107

Here's what Abbadon was talking about:
Предупреждение: Помехи!
innominate
Gold Boarder
Постов: 642
graphgraph
Пользователь в оффлайне Кликните здесь, чтобы посмотреть профиль этого пользователя
Последнее редактирование: 19.05.2017 17:33 Редактировал innominate.
Для добавления сообщений Вы должны зарегистрироваться или авторизоваться
 
#46037
Re: Corp Bookmarking Miners 9 г., 3 мес. назад Репутация: 855
It took just 3 days to teach AHK and write first miner 8 years ago! AHK became quite complicated now or is it just innominate who is reading too many of manuals?
Slav2
Администратор
Постов: 17219
graph
Пользователь в оффлайне Кликните здесь, чтобы посмотреть профиль этого пользователя
Последнее редактирование: 19.05.2017 17:58 Редактировал Slav2.
Для добавления сообщений Вы должны зарегистрироваться или авторизоваться
Send logs to my mail slav2@list.ru with subject 'log files' to pass spam filter.
How to record logs in knowledge base
Contact me in telegram
 
#46043
Re: Corp Bookmarking Miners 9 г., 3 мес. назад Репутация: 34
Hehe, AHK can be as simple or complicated as you want! If all that structure is unnecessary, then why did you switch over to .NET OOP code? (I even remember finding your name on a group project converting some AHK stuff into a .NET compatible language.)

It is all about how easy you want it to be to maintain and reuse your code. In the almost 2 years I've had my code running, now up over 5k lines of code, there's been only 3 patches that required me to update my code, where all but one took less than an hour. When they changed to the new probe scanner, that took me about an hour and a half to redefine the the ProbeWindow class attributes and validate that it works. It only took that long because there is a top and bottom part, and my code works regardless of where the separator is. From scratch it just took me 15 minutes to make a fully working DirectionalScanner window class because it just uses the other classes.
innominate
Gold Boarder
Постов: 642
graphgraph
Пользователь в оффлайне Кликните здесь, чтобы посмотреть профиль этого пользователя
Последнее редактирование: 20.05.2017 03:13 Редактировал innominate.
Для добавления сообщений Вы должны зарегистрироваться или авторизоваться
 
#46081
Re: Corp Bookmarking Miners 9 г., 3 мес. назад Репутация: 10
I have edited and am using CorpBMv1 script for the mining drones, figured you already knew this.

At the moment I am using this snipit of code to limit the number of bookmars that are dropped.
Предупреждение: Помехи!


What I am watching happen is...
Ship logs in, warps to a belt, drops a BM. starts mining, jets a can, renames a can HH:MM, next time it is ready to jet, it might reuse a can or it might jet another can.

Any ideas on how we can go about just pooping out 4 cans then dropping a BM?

Edit:
Just thought about it. That is risky leaving that may cans out. With thieves and disconnects, may lose more than i think.

With my remove duplicates coding, it will be best i think to BM every can.
Minesalot
Expert Boarder
Постов: 236
graphgraph
Пользователь в оффлайне Кликните здесь, чтобы посмотреть профиль этого пользователя
Последнее редактирование: 22.05.2017 03:20 Редактировал Minesalot.
Для добавления сообщений Вы должны зарегистрироваться или авторизоваться
 
ВверхСтраница: 1...678910111213
Модераторы: Slav2
© Macro Laboratory 2026
Все права защищены!
Design by Ivan Kozyrin