hectorgimenez / koolo

Diablo II Resurrected bot written in Go
MIT License
72 stars 48 forks source link

Terror Zone Countess - skips all levels and leaves game once reaching level 5 #191

Open divineblade7 opened 4 months ago

divineblade7 commented 4 months ago

Version: v0.4.0 beta 6 commit https://github.com/hectorgimenez/koolo/commit/70161eb2512333ca51e8be48578454f3a5a938dc

The bot skips past all mobs on the way to countess and leaves game as soon as level 5 is entered. Does not kill countess.

Initial glance shows its hardcoded in countess script to move from level to level without any other logic. so it wont clear those levels on the way to countess. The only level it is applying clearArea to that i see is area=20 Forgotten Tower. Log shows its skipping area 21-25 Tower Cellar Level 1-5

the clear area is only checking a small area it seems for level 5 and not seeing that area isnt complete, and countess isnt dead.


time=03:29:18 level=DEBUG msg="Clearing TZ area" area=20
time=03:29:24 level=DEBUG msg="Loading screen detected, waiting until loading screen is gone"
time=03:29:24 level=DEBUG msg="Load completed, continuing execution"
time=03:29:25 level=DEBUG msg="All the rooms for this level have been cleared, finishing run."
time=03:29:25 level=DEBUG msg="TZ area skipped" area=21
time=03:29:26 level=DEBUG msg="Loading screen detected, waiting until loading screen is gone"
time=03:29:26 level=DEBUG msg="Load completed, continuing execution"
time=03:29:26 level=DEBUG msg="TZ area skipped" area=22
time=03:29:37 level=DEBUG msg="TZ area skipped" area=23
time=03:29:40 level=DEBUG msg="TZ area skipped" area=24
time=03:29:44 level=DEBUG msg="Loading screen detected, waiting until loading screen is gone"
time=03:29:44 level=DEBUG msg="Load completed, continuing execution"
time=03:29:45 level=DEBUG msg="TZ area skipped" area=25
time=03:29:53 level=DEBUG msg="No items detected, waiting a bit and will try again" waitMs=983
time=03:29:54 level=INFO msg="Run  finished, length: 48.31s" ```
divineblade7 commented 4 months ago

Wanted to give update. If i disable terror zone run, and jsut enable countess, the run will complete as normal (rush straight to level 5) during a terror zone countess. Would be great if possible to have the option to clear area on each floor, and/or focus on elites on each floor as well to maximize the run. Thanks!

divineblade7 commented 3 months ago

Update: tested again during forgotten tower TZ. it still goes straight to level 5 still and then leaves game. does not clear every level, does not kill countess.

commit: e0840d6eb2ec1cc4dbb2711717422fd223d1febe

time=17:11:56 level=DEBUG msg="Clearing TZ area" area="Forgotten Tower"
time=17:12:00 level=DEBUG msg="Loading screen detected, waiting until loading screen is gone"
time=17:12:01 level=DEBUG msg="Load completed, continuing execution"
time=17:12:01 level=DEBUG msg="All the rooms for this level have been cleared, finishing run."
time=17:12:01 level=DEBUG msg="TZ area skipped" area="Tower Cellar Level 1"
time=17:12:02 level=DEBUG msg="Loading screen detected, waiting until loading screen is gone"
time=17:12:02 level=DEBUG msg="Load completed, continuing execution"
time=17:12:03 level=DEBUG msg="TZ area skipped" area="Tower Cellar Level 2"
time=17:12:06 level=DEBUG msg="TZ area skipped" area="Tower Cellar Level 3"
time=17:12:11 level=DEBUG msg="TZ area skipped" area="Tower Cellar Level 4"
time=17:12:17 level=DEBUG msg="TZ area skipped" area="Tower Cellar Level 5"
time=17:12:21 level=DEBUG msg="No items detected, waiting a bit and will try again" waitMs=988
time=17:12:22 level=INFO msg="Run TerrorZone Run: Forgotten Tower, Tower Cellar Level 1, Tower Cellar Level 2, Tower Cellar Level 3, Tower Cellar Level 4, Tower Cellar Level 5 finished, length: 38.26s"
time=17:12:28 level=INFO msg=Stopping... configuration=Doom
time=17:12:28 level=INFO msg="Finished stopping" configuration=Doom
time=17:12:31 level=ERROR msg="Error creating new game: error creating game! Timeout"
hectorgimenez commented 3 months ago

Let me take a look on this

divineblade7 commented 3 months ago

Thanks!

I looked at the routine it’s pulling and it’s hardcoded in countess routine to skip all the way to act 5. Haven’t had a chance to make any edits on this yet. But the idea was the allow option to config this to clear each level, or at the very least attack elites, whether to or not. As far as the leaving at level 5 i need to look into that as well. Thank you sir.