Viir
(Michael Rätzel)
March 9, 2020, 9:52pm
2
Welcome, and thank you very much for sharing these improvements!
Because the bot was programmed based on the description at First timer, mining bot question!
That information about mining barges was not available then.
TheRealManiac:
The Mining Barge is very slow and is the hole time approach behind the enemy, i change it in that way, that the target lock range, increased to 25000 meters.
if the enemy not in that range, i change it to “EndDecissionPath Wait” in the else branch from “acquireLockedTargetForCombat” an wait that the NPC came to my range.
Here is a version adapted to your observations:
committed 09:14PM - 09 Mar 20 UTC
From https://forum.botengine.org/t/mining-bot-question-and-hints/3140:
The Mini… ng Barge is very slow and is the hole time approach behind the enemy, i change it in that way, that the target lock range, increased to 25000 meters.
if the enemy not in that range, i change it to “EndDecissionPath Wait” in the else branch from “acquireLockedTargetForCombat” an wait that the NPC came to my range.
TheRealManiac:
heading to an astroid, the bot is the hole time “Approach” clicking, in my eyes is better to record the approach click, and send the bot in a wait loop.
No problem, that wait loop is implemented here:
committed 09:27PM - 09 Mar 20 UTC
From https://forum.botengine.org/t/mining-bot-question-and-hints/3140:
> headin… g to an astroid, the bot is the hole time “Approach” clicking, in my eyes is better to record the approach click, and send the bot in a wait loop.
We can do this using the KeyDown and KeyUp options. Here is the complete bot with the ship stop command:
committed 09:46PM - 09 Mar 20 UTC
From https://forum.botengine.org/t/mining-bot-question-and-hints/3140:
> the s… hip reached the target range, it will be usefull to stop the ship
This is the part building the action:
stopShipAction : TreeLeafAct
stopShipAction =
{ firstAction = VolatileHostInterface.KeyDown VolatileHostInterface.VK_CONTROL
, followingSteps =
[ ( "SPACE down", always (Just (VolatileHostInterface.KeyDown (VolatileHostInterface.VirtualKeyCodeFromInt 0x20))) )
, ( "SPACE up", always (Just (VolatileHostInterface.KeyUp (VolatileHostInterface.VirtualKeyCodeFromInt 0x20))) )
, ( "CTRL up", always (Just (VolatileHostInterface.KeyUp VolatileHostInterface.VK_CONTROL)) )
]
}
McMahon recently made an observation leading to a similar change. This also displays the distance of the chosen overview entry:
committed 08:10PM - 04 Mar 20 UTC
McMahon got the `Asteroid is not in range` status message.