Добро пожаловать, Гость
Пожалуйста Вход или Регистрация.    Забыли пароль?

Looter/Booster for Orca in Hisec algorithm
(0 чел.) 
ВнизСтраница: 123
Сообщения темы: Looter/Booster for Orca in Hisec algorithm
#24758
Looter/Booster for Orca in Hisec algorithm 13 г., 1 мес. назад Репутация: 1
In hisec it is desirable for looter in Orca to sit in belt with the miner and gather ore continuosly while boosting the miner. I can get my Orca currently to 81k m3 cargo space, so it is quite a lot of time that the Orca can spend in belt boosting instead of warping back and forth and sitting in station as it does with the vanilla version.

I have looked at the looter algorithm and have devised a quick hack to get the Orca to sit in belt with the miner.

In the algorithm I made following modifications:

1st modification:
330 UndockSub is moved before 280 LooterManager. This is to get the looter to undock as soon as possible and spend time in space instead of in station, so it can boost miner most of the time.

2nd modification:
I have to get Orca to stay in belt and move away when the belt is empty.
I searched for a function that can tell looter to return to LooterManager when the belt is clear of asteroids (it already does that when the cargo is full).

The only function I found that I think can do what I want is CheckTank. The function checks if tank is present in location. What "location" means is not explained, so I presume that it means the belt.

So I made the following modification:

New functions:
400 CheckTank 0:200+ 1:410
410 Sleep(60000) 0:410 1:380

Modified function:
380 LooterTS 4:400+

The idea is that the looter when finished looting cans in belt (380), if cargo not full, checks if tank is present in belt (400), if tank is present the looter sleeps for a set amount of time (in my case 60 sec) and then returns to LooterTS (380) to loot any new cans if present. If tank is not present, the looter returns to station (200), unloads, undocks and gets back to LooterManager.

This way the looter can only miss the last container which the miner jettisons before moving on to next belt while still spending most of the time in belt.

The resulting algorithm makes the looter sit in belt as expected.

The problem is that it doesn't seem to notice when the tank leaves the belt, beacuse the looter still sits in belt when the tank has moved on. Luckily, it seems that when the miner has made a new container at the new belt the looter is made to move anyway by some obscure hidden mechanic which is hidden from the algorithm editor. Anyway, it prolly doesn't work at all as I expect because of my limited knowledge of the algorithms and no way of knowing the details.

All in all the algorithm editor is great, although it is desirable to get some new functions which are more general in nature so that the algorithm aditor has more freedom of choice.

The modified graph and the script are attached.
Прикрепленный файл
Имя файла: LooterOrcaHiSec.zip
Размер файла: 126530
shtirlits
Fresh Boarder
Постов: 7
graphgraph
Пользователь в оффлайне Кликните здесь, чтобы посмотреть профиль этого пользователя
Для добавления сообщений Вы должны зарегистрироваться или авторизоваться
 
#24760
Re: Looter/Booster for Orca in Hisec algorithm 13 г., 1 мес. назад Репутация: 1
The next step would be to make the miner unload the ore to the corp hangar of Orca to avoid canflippers. But that requires making Autohotkey modules, it think.
shtirlits
Fresh Boarder
Постов: 7
graphgraph
Пользователь в оффлайне Кликните здесь, чтобы посмотреть профиль этого пользователя
Для добавления сообщений Вы должны зарегистрироваться или авторизоваться
 
#24769
Re: Looter/Booster for Orca in Hisec algorithm 13 г., 1 мес. назад Репутация: 846
shtirlits wrote:
This way the looter can only miss the last container which the miner jettisons before moving on to next belt while still spending most of the time in belt

It is probably container which does not fit cargohold. Corresponding to your algo, bot should pickup all containers before warping to station.


The problem is that it doesn't seem to notice when the tank leaves the belt, beacuse the looter still sits in belt when the tank has moved on.
It is sitting in the belt because you dont run checktank inside of a sleep loop (410). Make like this:



Luckily, it seems that when the miner has made a new container at the new belt the looter is made to move anyway by some obscure hidden mechanic which is hidden from the algorithm editor. Anyway, it prolly doesn't work at all as I expect because of my limited knowledge of the algorithms and no way of knowing the details. Send log file. If something does not work as expected I will update description of a function in algorithm editor. It is possible that I added changes to inmprove some function and forgot to edit descriptions. But log file will contain correct description of each function results.

All in all the algorithm editor is great, although it is desirable to get some new functions which are more general in nature so that the algorithm aditor has more freedom of choice. Request new functions. I will be glad to write something which is missing and if this will not take a lot of coding. I start to work on algorithm editor improvements when somebody finds it useful.
Slav2
Администратор
Постов: 17109
graph
Пользователь в оффлайне Кликните здесь, чтобы посмотреть профиль этого пользователя
Последнее редактирование: 08.02.2013 05:15 Редактировал 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
 
#24770
Re: Looter/Booster for Orca in Hisec algorithm 13 г., 1 мес. назад Репутация: 846
It seems that LooterTS does not loot anything if tank left belt, because protection of the looter from NPC is more important then containers. Looter may be used in zeroes if tank constantly killing NPC for example. I added parameter "continue looting if selected tank left belt". Default is false, but in case of orca looter in high sec this parameter may be true.

Test build

You may need to add another LooterTS block after CheckTank option exit 0 to finish looting all the containers in the belt and dont wait 60 seconds.
Slav2
Администратор
Постов: 17109
graph
Пользователь в оффлайне Кликните здесь, чтобы посмотреть профиль этого пользователя
Для добавления сообщений Вы должны зарегистрироваться или авторизоваться
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
 
#25887
Re: Looter/Booster for Orca in Hisec algorithm 12 г., 11 мес. назад Репутация: 0
How do you add the 400 into line 410?
cripto101
Fresh Boarder
Постов: 17
graphgraph
Пользователь в оффлайне Кликните здесь, чтобы посмотреть профиль этого пользователя
Для добавления сообщений Вы должны зарегистрироваться или авторизоваться
 
#26210
Re: Looter/Booster for Orca in Hisec algorithm 12 г., 10 мес. назад Репутация: 3
Ok orca looter working ok now

Just a couple of problems im having hoping some one else more inteilgent than myself can help

Jetcanning to space is great only problem is the miners dont go back to the station so the log out timer checks are never being used meaning at close down there all still in space not safely tooked away na station and logged out


2nd problem and msure there is an easy fix for this some time my orca travels to pick up cans then it see an npc and warps away this only happens when the tanks drone have ignord the npc in the first place which seems to happen a lot.
pipkins
Junior Boarder
Постов: 75
graphgraph
Пользователь в оффлайне Кликните здесь, чтобы посмотреть профиль этого пользователя
Для добавления сообщений Вы должны зарегистрироваться или авторизоваться
 
ВверхСтраница: 123
Модераторы: Slav2
© Macro Laboratory 2026
Все права защищены!
Design by Ivan Kozyrin