Egoistically / ALAuto

Azur Lane bot based on azurlane-auto. Discord: https://discord.gg/vCFxDen.
Do What The F*ck You Want To Public License
106 stars 43 forks source link

Will this event be added? #45

Closed MrJefferson-ChooChoo closed 4 years ago

MrJefferson-ChooChoo commented 4 years ago

Will this event be made available for the bot?

When i put E-A1 in the config file it doesn't work.

Egoistically commented 4 years ago

YoStar likes making totally unnecessary changes. This time the event button is called "Operation" instead of "Event", so the asset needs to be updated. Everything else should be fine though.

Hazekaya commented 4 years ago

Where would i make that change? Also thanks for replying so fast on christmas.

Egoistically commented 4 years ago

I will push them in a few minutes, if you don't mind waiting. And it's fine, I'm at home anyway.

Hazekaya commented 4 years ago

That's awesome, sure i don't mind.

Egoistically commented 4 years ago

https://github.com/Egoistically/ALAuto/commit/9945fc4a7a21b61119eca7703cbf488cfd8e98e0.

Hazekaya commented 4 years ago

Awesome man thanks,

And a merry christmas.

MetalDevOps commented 4 years ago

9945fc4.

did not recognize the A2 map, the A1 recognized, anyway I do not intend to play in A2, just warning.

Egoistically commented 4 years ago

Awesome man thanks,

And a merry christmas.

Hope it works, Merry Christmas!

did not recognize the A2 map, the A1 recognized, anyway I do not intend to play in A2, just warning.

Was told by @hjk22 event map assets weren't getting properly detected, tried to solve it by reducing similarity threshold but apparently not enough? Cannot do much about it since I don't have any way to get the them yet (still clearing second map).

MetalDevOps commented 4 years ago

Awesome man thanks, And a merry christmas.

Hope it works, Merry Christmas!

did not recognize the A2 map, the A1 recognized, anyway I do not intend to play in A2, just warning.

Was told by @hjk22 event map assets weren't getting properly detected, tried to solve it by reducing similarity threshold but apparently not enough? Cannot do much about it since I don't have any way to get the them yet (still clearing second map).

Don't worry, I don't think anyone will farm on these maps, I just hope it works on B3 or D3

Hazekaya commented 4 years ago

Yeah it's just clicking the same target it can't reach over and over.

Egoistically commented 4 years ago

What do you mean by "can't reach"?

Hazekaya commented 4 years ago

You know the tiles outside of the fleet's reach? it's clicking on a enemy ship that's on a tile it can't reach.

Egoistically commented 4 years ago

Ah but of course that happens, bot does not support limited movement. This is intended for farming after you unlock clearing mode.

Hazekaya commented 4 years ago

Mhhh, but i already cleared one and made it safe and the movement restriction is still there.

Egoistically commented 4 years ago

I was so tired I didn't understand what you were saying, clearing mode unlocks after making that map's threat level go down to safe. Sorry for the confusion.

MetalDevOps commented 4 years ago

was not recognizing the A3 map with the asset you added, I managed to fix it here and it worked with that asset.

https://f.cyberdrop.xyz/map_E-A3-gT1YtFJp.rar

MetalDevOps commented 4 years ago

fix C3 too

https://f.cyberdrop.xyz/map_E-C3-NFTdM5i6.rar

MetalDevOps commented 4 years ago

C2 fix

https://f.cyberdrop.xyz/map_E-C2-nR3Fj2YV.rar

Egoistically commented 4 years ago

@whoamikyo https://github.com/Egoistically/ALAuto/commit/d9f70dd47c2db532b3e1f08e0869988231ba21ba please tell me if it works fine.

MetalDevOps commented 4 years ago

@whoamikyo d9f70dd please tell me if it works fine.

will try now, I was farming in C2 and always after 2 runs gave this error here, cant find the map.

you fix it too?

Egoistically commented 4 years ago

Was that before the update? And can you send the full log? I can't see what caused the crash there since it's cut.

MetalDevOps commented 4 years ago

Was that before the update? And can you send the full log? I can't see what caused the crash there since it's cut.

before update, the log was normal, basically after 2 runs the bot could no longer detect the map, I tested it several times and seemed to happen after 2 runs.

Egoistically commented 4 years ago

Ah I thought it was a crash rather than a manual exit, my bad.

MetalDevOps commented 4 years ago

12 runs on C2 and any erros with laster build, seems ok for me.

didzkows commented 4 years ago

Regarding the config, since the wiki isnt updated. If using the latest build what do we put in the Event field?

[Events] Enabled: False Event: Crosswave Levels: EX,H,N,E

MetalDevOps commented 4 years ago

Regarding the config, since the wiki isnt updated. If using the latest build what do we put in the Event field?

[Events] Enabled: False Event: Crosswave Levels: EX,H,N,E

dont change this, to farm on C2 i'm using

[Combat] Enabled: true Map: E-C2

Egoistically commented 4 years ago

Regarding the config, since the wiki isnt updated. If using the latest build what do we put in the Event field?

Updated the wiki, should be more clear now.

Masuzu commented 4 years ago

Thank you a lot for the quick updates! I was just wondering, is there a way to switch to the second fleet and use it instead of the first fleet selected by default when you enter an event map?

UserFromSpace commented 4 years ago

Hello!

Masuzu, I might have a fix for you, but it's on map-to-map basis. Primitive, but werks.

1) Add a new region in combat.py. It's at the start of the script. /_Picture switch0001.png 2) Go to `def clear_map(self): Logger.log_msg("Started map clear.") Utils.script_sleep(2.5)

    #hide strat menu
    Utils.touch_randomly(self.region["hide_strat_menu"])`

Implement the click on the region, as present in _switch0002.png and then fix the swipe. Utils.swipe(xs, ys, xf, yf, ms), where x is the abscissa, y ordinate. s is the start and f the finish. The last number represents the milliseconds.

That should be it! Good luck on your farming.

As to the new patches, might I suggest 1) Check if Fleet Lock is enabled.

Edit: I just realised my version is out of date, but the structure and logic behind it should remain the same. switch_0001 switch_0002

didzkows commented 4 years ago

was D3 supported? didn't see any mention of someone trying it. The sprite for the boss fleet may need to be added additionally i'm getting the error "cannot find specified map", after the script opens the event map with the D3 node visible

Egoistically commented 4 years ago

Not added yet, only A and C for now. I have yet to finish clearing B and D. Expect an update in a few hours (hopefully)! You can also add the assets by yourself, more info here: https://github.com/Egoistically/ALAuto/issues/44.

didzkows commented 4 years ago

Not added yet, only A and C for now. I have yet to finish clearing B and D. Expect an update in a few hours (hopefully)! You can also add the assets by yourself, more info here: #44.

Thank you, successfully updated the asset for map_E-D3 Only issue is that it will obviously only work for the current event, not sure why the script wouldn't recognize the D3 on its own Additionally the script keeps getting stuck and accidentally tapping the Fleet Lock button, and overall having trouble finding enemies, issue seems to be the fact that there are 3 siren spawns on D3, so if the script blacklists one of the few available enemy fleets then there isn't much to do. Is it possible to add certain sirens to the enemy assets folder and have them be seen as a target? and finally, the script doesn't seem to recognize the boss fleet

Egoistically commented 4 years ago

Haven't gotten to D3 yet, @hjk22 has a fix for boss detection.

hjk22 commented 4 years ago

I opened a new pull request #47 which should make farming in B3/D3 possible. I have tested it a little bit in B3 and it worked (needs more testing though). @Egoistically will review it and test it, and if there aren't any problems he will probably merge it tomorrow.

Egoistically commented 4 years ago

Regarding Sirens and fleet lock: https://github.com/Egoistically/ALAuto/commit/c39ac03c50a134310d20d80a7a57162e883d7e92.

Egoistically commented 4 years ago

Event finished.