AI League - King's Gambit Cup

@Bryukh I belive there is a error in the mirroring system. In most of my battles as humans I beat everyone. But inexplicably as blue I get destroyed. I do not use hero.color in any of my code. Could you please try to fix this?
(Edit) Also the people I am going up against and losing as blue seems to do the same thing as red so it does not look like they use hero.color either.

Spectate Links:

1 Like

I second the above. There appears to be a new mirroring problem that is seemingly only present in the spectate view (i could be mistaken, however)—for instance, I win against iggymaster99 and buddeycc in the editor (even on ogres side), but lose in spectate (occasionally). As iggymaster mentioned, I do not use hero.color. It’s an issue that’s occurred only recently—neither me or buddeycc have modified our submitted algo for several days now, and the previous submission that was winning against buddeycc in ladder matches now has losses against the exact same code.

I’m pretty sure it’s a mirroring issue regarding unit coordinates: a condition in my code that triggers when the difference between a unit’s position and an enemy’s position reaches a certain threshold triggers when it should not. It seems like the enemy’s position is mirrored correctly, however, so it might be the friendly unit’s position?

1 Like

Thank you for the bug reports. I will try my best to find time to research those bugs next week, sorry, this one overbusy with other stuff already.

2 Likes

Thanks for the info. I know we are competators and all, but do you have any ideas for ajusting code while we wait for Bryukh to try to fix this?

Also for me the mirroring issue does not only occur in the spectate view. I have observed it while battling people in humans and ogres.

:skull:

when I play against @iggymaster99 as red I beat him by around 7, However when I’m blue I lose by 9. I also don’t use hero.color. I think it might have something to do with thecoordinates and my placeCrate code.

1 Like

I also have something similar, and I don’t use hero.color. I win in a battle, but when I spectate I lose.

My issues r even worse. I lose to the most random of people when I play ogres. :sob: :face_with_diagonal_mouth:
Looking at the simulations the only way I could describe how my code acts is sluggish… Its rlly weird.

2 Likes

Ok guys. I found a couple of things that might help u guys.

  1. Math not mathing? It looks like a lot of X axis are not being mirrored properly. They seem to be mirrored somewhat but things are off just enough for it to wonk your code off. Check your movement code and summon code.

  2. Look at your conditionals and see if you use anything that has a relation to things like:unit.distanceTo(enemy), unit.x, and hero.ability("placeCrate", enemy.row, enemy.x + 5) ect… These things seemed kinda broken for me when I printed everything out.

Hope this helps yall out.

1 Like

Thanks. I will say though that even using the hero.ability("placeCrate", enemy.row, enemy.x + 5) doesn’t completely fix it either. I have been using -1 for a while now. But I think you’re right about the unit.x, and unit.distanceTo(enemy). Every time I tried to make a condition using those or something with more math to find distance of my units to the enemy, something always went wrong.

1 Like

Also, I sent one earlier

And see it again here. I don’t know why this is happening. Can anyone else find and battle these people to see if it is weird for them too.

1 Like

Huh. Your code just stops working? My code is fine against them.

2 Likes

Ya. It is the weirdest thing. Only those two instances.

1 Like

All this coloring problems are wierd, I don’t seem to have any, only against a few top guys I lose on blue, but because of their infrequency on my end don’t seem to be connected to my code, which doesn’t have hero.color either.

1 Like

Right now, I’m not even working on my code because idk what to do. Is my code good or am I just facing other peoples bad code.

1 Like

Just saying, if anyone has crate issues while mirroring just place crate on the unit and it still stops them while not having mirroring issues

1 Like

Its not just the crate. Its other stuff too.

2 Likes