ProjectBots / StreamRaidersBot

A bot for automated farming in Stream Raiders
GNU General Public License v3.0
50 stars 14 forks source link

SR Bot keeps trying to unlock... something? #46

Closed AshleyPinner closed 3 years ago

AshleyPinner commented 3 years ago

So for context, I have every double non-legendary unit unlocked. My legendary units are not yet high enough to be close to lv30. Yet every time my flagbearer gets 300+ scrolls I keep getting this error:

critical error happened for main at "main unlock" -> skipped this round

The debug out file has this:

[warn] [9:49:43] [srerr] unlockUnit
userId=[snip!], isCaptain=0, gameDataVersion=c229bd048ad3, command=unlockUnit, clientVersion=0.168.1, clientPlatform=WebGL, unitType=flagbearer
{"info":{"version":"0.168.1","dataPath":"https:\/\/streamcap-prod1.s3.amazonaws.com\/data\/data.c229bd048ad3.json","dataVersion":"c229bd048ad3","serverTime":"2021-09-11 08:50:19","clientVersion":"0.42.12"},"status":"error","data":null,"errorMessage":"Unable to unlock unit."}

[fatal] [9:50:3] [runerr] critical error happened for main at "main unlock" -> skipped this round
java.lang.ClassCastException

Any ideas why it's trying to unlock.. nothing?

ProjectBots commented 3 years ago

can you unlock a flagbearer dupe?

AshleyPinner commented 3 years ago

No, I have both flagbearers unlocked. There are no units unlockable.

ProjectBots commented 3 years ago

try debug-release

AshleyPinner commented 3 years ago

Not sure what was changed in that, but it no longer errors? The out00.txt log (that I ensured was empty before running the debug release linked) has this in it:

[Debug] added scope general
[Debug] added scope run
[Debug] added scope runerr
[Debug] added scope lowerr
[Debug] added scope loop
[Debug] added scope srerr

[info] [16:6:12] [general] started

[info] [16:6:16] [run] main started round

[info] [16:6:16] [run] main chests

[info] [16:6:23] [run] main captains

[info] [16:6:24] [loop] [main] Run captains 1

[info] [16:6:24] [run] main raids

[info] [16:6:26] [loop] [main] Run raids 1

[info] [16:6:28] [loop] [main] Run raids 2

[info] [16:6:29] [run] main collectEvent

[info] [16:6:29] [run] main claimQuests

[info] [16:6:30] [run] main reloadStore

[info] [16:6:31] [run] main store

[info] [16:6:31] [run] main unlock

[info] [16:6:31] [run] main upgradeUnits

[info] [16:6:32] [run] main finished round

[info] [16:11:29] [run] main started round

[info] [16:11:29] [run] main chests

[info] [16:11:30] [run] main captains

[info] [16:11:31] [loop] [main] Run captains 1

[info] [16:11:31] [run] main raids

[info] [16:11:33] [loop] [main] Run raids 1

[info] [16:11:33] [loop] [main] Pathfinding search 500

[info] [16:11:33] [loop] [main] Pathfinding search 1000

[info] [16:11:34] [loop] [main] Pathfinding search 1500

[info] [16:11:34] [loop] [main] Pathfinding search 2000

[info] [16:11:34] [loop] [main] Pathfinding search 2500

[info] [16:11:34] [loop] [main] Pathfinding search 3000

[info] [16:11:34] [loop] [main] Pathfinding search 3500

[info] [16:11:34] [loop] [main] Pathfinding search 4000

[info] [16:11:34] [loop] [main] Pathfinding search 4500

[info] [16:11:34] [loop] [main] Pathfinding search 5000

[info] [16:11:34] [loop] [main] Pathfinding search 5500

[info] [16:11:34] [loop] [main] Pathfinding search 6000

[info] [16:11:34] [loop] [main] Pathfinding search 6500

[info] [16:11:34] [loop] [main] Pathfinding search 7000

[info] [16:11:34] [loop] [main] Pathfinding search 7500

[info] [16:11:34] [loop] [main] Pathfinding search 8000

[info] [16:11:35] [loop] [main] Run raids 2

[info] [16:11:37] [loop] [main] Run raids 3

[warn] [16:11:37] [srerr] addToRaid
userId=[snip!], isCaptain=0, gameDataVersion=c229bd048ad3, command=addToRaid, clientVersion=0.168.1, clientPlatform=WebGL, raidId=8713480, placementData=%7B%22raidPlacementsId%22%3A%22%22%2C%22userId%22%3A%[snip!]%22%2C%22CharacterType%22%3A%22flagbearer30%22%2C%22X%22%3A-4.0%2C%22Y%22%3A5.6000000000000005%2C%22skin%22%3A%22%22%2C%22unitId%22%3A%227624459%22%2C%22specializationUid%22%3A%22cursedflagbearer%22%2C%22team%22%3A%22Ally%22%2C%22onPlanIcon%22%3Atrue%2C%22isSpell%22%3Afalse%2C%22stackRaidPlacementsId%22%3A%220%22%7D
{"info":{"version":"0.168.1","dataPath":"https:\/\/streamcap-prod1.s3.amazonaws.com\/data\/data.c229bd048ad3.json","dataVersion":"c229bd048ad3","serverTime":"2021-09-11 15:11:39","clientVersion":"0.42.12"},"status":"error","data":null,"errorMessage":"OVER_UNIT"}

[info] [16:11:37] [loop] [main] Run raids 4

[info] [16:11:39] [loop] [main] Run raids 5

[info] [16:11:39] [run] main collectEvent

[info] [16:11:40] [run] main claimQuests

[info] [16:11:40] [run] main reloadStore

[info] [16:11:42] [run] main store

[info] [16:11:42] [run] main unlock

[info] [16:11:42] [run] main upgradeUnits

[info] [16:11:43] [run] main finished round

No more error output about trying to unlock a flagbearer?

ProjectBots commented 3 years ago

👍