Having the list of steps is a good start to understand what you are doing. It looks like this activity has a lot more steps than the change for ragnaroks jetcan mining.
Ultimately, the bot can affect the game only by sending input to the game client. So we need to also translate these steps to inputs.
Maybe an example helps. So let’s take a closer look at this one:
What keys do you press on the keyboard here? Do you use the mouse? If yes, at which location?
Having images for the steps would help understand what the steps mean.
I already know these, no image required here:
undock (already in bot)
deactivate top row fifth module
when ore hold full, dock to station and start again (already in bot)
I had a look at that page. I found multiple images there, here is the one I found topmost:
If I counted correctly I saw seven images in that album. So that is less than the number of steps we have above.
What is the right image for each step? Can you make a list where we have the image and the text appearing together for each step?
(Alternatively, instead of an image you could also point out an existing implementation for a step if you find one.)
Basically it would be good to have an image for each step for which we do not have an implementation yet.
the images are numbered base of the steps, i dont have images for all steps, thats why you counted fewer.
Below you will find an extencive step by step of how i do it with mouse moves, clicks and keyboard buttons that i press.
Hope it hels this time
right mouse click on fleet chat the character name that has the purple icon next to the name
then point mouse at “Fleet”
point mouse at “warp to member within”
point mouse to “warp to 0”, left mouse click.
then when warp is done
point mouse on overview panel (i have set one that show only cans) on the first available can
right click on can
move mouse to “Lock target”
left click “Lock target”
enable module with keyboard button F5
wait for can to be within 2000m
deactivate module with F5 again
move mouse to overview panel on the first can (ordered by distance)
right mouse click on can
move mouse to “open cargo”
left click “open cargo”
move mouse to inventory panel (now showing contents of can)
left click and drag contents to ore hold of ship.
wait for next can (this may be a long period some times above 10 minutes)
when ore hold full dock to station
when dock in station unload ore to item hangar
Nice! To clarify the uniqueness: I am only looking for the same level of uniqueness as the purple icon. As long as this text is only found for the ones which also have the purple icon, this is enough. This hint text would be just a proxy for the icon because the text is easier to read at the moment.
Another way to view it: Can we take any character from this chat member list for which we would get the text “Pilot is in your fleet”?
Good, I think what we learned so far could be enough to start writing a program. Based on the screenshots, I have theories on where to find the corresponding structures in the parsed user interface of the game client, so I skip the stage of collecting memory samples from the game client for now.
I will probably start by copying the mining bot and then remove the parts that would interfere with the jet can collection activity. The first thing to remove that catches my attention is drones. Next is the activation of mining modules and other modules.
If i understand the code correctly in line 415 :
DescribeBranch “I see no jetcan in the overview. Warp to fleet member.”
you check to see it there are jetcans in the overview and if not warp to member?
if that is the case we need to make an adjustment, insted of searching for the jet can when the ship undocks we need to check for the member insted, because if someone left a jetcan outside of the station that is going to be a problem (many ppl do that kind of think to lure new players)
@Viir Trying the bot, i see that its missing one step for the warp to member.
between the actions “Right click on pilot in chat.” and “Click on menu entry ‘warp to member within’.” there is the step “point mouse at Fleet”, as seen in the image below, after the "Fleet is the option “Warp to member”
Hope that you are ok in this difficult time.
I tried the bot that step is ok now, but its missing the “Warp to 0” that is the final step for it to warp to member.
Also i made a mistake, the place i want to dock is not listed in “Station” but in “Structures”, if you can fix that too.
And if you could enable the function for the middle defence modules to be activated, either on undock or after the warp is complete.