Valokoodari / btd6-ahk

An AutoHotkey (v2) script to automate collection events in Bloons TD 6.
MIT License
71 stars 32 forks source link

Using event (e.g. totem) doesn't chose correct strategy #132

Open CanOfSocks opened 2 months ago

CanOfSocks commented 2 months ago

When using the totem map selector, the script doesn't choose the correct map for tower placement. E.g. selecting Sanctuary from the totem screen appears as Infernal in the logs and attempts to place towers for infernal.

Setting the map with the name chooses the strategy correctly.

CanOfSocks commented 2 months ago

From what I can tell SelectEventMap() in select_map.ahk is not returning the correct value, however it is still able to select the correct map.

By adding extra logs to it I receive:

`[00:26:05] Script started [00:26:05] home [00:26:06] map_selection [00:26:07] A_Index: 1 [00:26:07] No map found: 1 [00:26:07] A_Index: 2 [00:26:07] No map found: 2 [00:26:07] A_Index: 3 [00:26:07] No map found: 3 [00:26:07] A_Index: 4 [00:26:07] No map found: 4 [00:26:07] A_Index: 5 [00:26:07] No map found: 5 [00:26:07] A_Index: 6 [00:26:09] Found event map: 12

[00:26:09] Selected map: Infernal [00:26:11] Selected difficulty: Easy [00:26:15] in_game [00:26:15] Checking quick settings [00:26:17] Quick settings checked [00:26:24] Script stopped`

when I believe it should be 3 for Sanctuary

Not familiar enough with ahk to diagnose further.