"Tundra Tower Cup" Bugs and Feedback

The Last arena Tundra Tower Cup is in action!
Put any bug reports and feedback here.
Any offtopic will be removed.



Probably aware of this, but: 7.2k and a lose? thats kinda extreme

Is there a way to move each guard by something such as its name? I’ve looked for guard documentation and it’s kind of lacking.

Use different logic based on the “data.place” parameter.

Could you give me nicknames so I can research the issue?

I’ve noticed this happens to me for about everybody in the top 25 at some point, mainly “mRoos,” “DimaP123,” and “PeterPavlov.” I figured out from other people that it is because when the game is simulated with me as Ogres, I lose. I have no control of that though. Whenever I fix my code to win as Ogres, I typically get destroyed by everyone.

It might be my mistake, but the line Vector.subtract({"x": nearest.x,"y": nearest.y}, {"x": hero.x,"y": hero.y}) gives me an error “e.copy is not a function”. What’s wrong here?

You need to use Vectors instead of “duck like” dictionaries I think.

Try this Vector.subtract(Vector(nearest.x,nearest.y), Vector(hero.x,hero.y))

2 Likes

Whenever i play against a player named “Eric Workman” as red, the coordinates get inverted
console:

|Great Gish's Lana| -------
3506-2281f45c8a8409453a32.bundle.js:2 |Great Gish's Lana| xpos:30
3506-2281f45c8a8409453a32.bundle.js:2 |Great Gish's Lana| team:red
3506-2281f45c8a8409453a32.bundle.js:2 |Great Gish's Lana| time:0.2
3506-2281f45c8a8409453a32.bundle.js:2 |Great Gish's Lana| xposenemy:90
3506-2281f45c8a8409453a32.bundle.js:2 |Great Gish's Lana| -------
3506-2281f45c8a8409453a32.bundle.js:2 |Great Gish's Lana| xpos:30
3506-2281f45c8a8409453a32.bundle.js:2 |Great Gish's Lana| team:red
3506-2281f45c8a8409453a32.bundle.js:2 |Great Gish's Lana| time:0.2
3506-2281f45c8a8409453a32.bundle.js:2 |Great Gish's Lana| xposenemy:90
3506-2281f45c8a8409453a32.bundle.js:2 |Great Gish's Lana| ReferenceError: archer is not defined
3506-2281f45c8a8409453a32.bundle.js:2 |Great Gish's Lana| Hero Placeholder 1 had new Programmable problem: plan Line 24: ReferenceError: archer is not defined 0.4
3506-2281f45c8a8409453a32.bundle.js:2 |Great Gish's Lana| ReferenceError: archer is not defined
3506-2281f45c8a8409453a32.bundle.js:2 |Great Gish's Lana| Hero Placeholder 1 had new Programmable problem: plan Line 24: ReferenceError: archer is not defined 0.4
3506-2281f45c8a8409453a32.bundle.js:2 |Great Gish's Lana| -------
3506-2281f45c8a8409453a32.bundle.js:2 |Great Gish's Lana| xpos:82.87544787860395
3506-2281f45c8a8409453a32.bundle.js:2 |Great Gish's Lana| team:red
3506-2281f45c8a8409453a32.bundle.js:2 |Great Gish's Lana| time:1.5
3506-2281f45c8a8409453a32.bundle.js:2 |Great Gish's Lana| xposenemy:30
3506-2281f45c8a8409453a32.bundle.js:2 |Great Gish's Lana| -------
3506-2281f45c8a8409453a32.bundle.js:2 |Great Gish's Lana| xpos:82.8807376802169
3506-2281f45c8a8409453a32.bundle.js:2 |Great Gish's Lana| team:red
3506-2281f45c8a8409453a32.bundle.js:2 |Great Gish's Lana| time:1.6
3506-2281f45c8a8409453a32.bundle.js:2 |Great Gish's Lana| xposenemy:30
3506-2281f45c8a8409453a32.bundle.js:2 |Great Gish's Lana| -------
3506-2281f45c8a8409453a32.bundle.js:2 |Great Gish's Lana| xpos:82.8807376802169
3506-2281f45c8a8409453a32.bundle.js:2 |Great Gish's Lana| team:red
3506-2281f45c8a8409453a32.bundle.js:2 |Great Gish's Lana| time:2.8000000000000003
3506-2281f45c8a8409453a32.bundle.js:2 |Great Gish's Lana| xposenemy:30
3506-2281f45c8a8409453a32.bundle.js:2 |Great Gish's Lana| -------
3506-2281f45c8a8409453a32.bundle.js:2 |Great Gish's Lana| xpos:82.32083021843745
3506-2281f45c8a8409453a32.bundle.js:2 |Great Gish's Lana| team:red
3506-2281f45c8a8409453a32.bundle.js:2 |Great Gish's Lana| time:2.9000000000000004
3506-2281f45c8a8409453a32.bundle.js:2 |Great Gish's Lana| xposenemy:30
3506-2281f45c8a8409453a32.bundle.js:2 |Great Gish's Lana| -------
3506-2281f45c8a8409453a32.bundle.js:2 |Great Gish's Lana| xpos:101.147736163176
3506-2281f45c8a8409453a32.bundle.js:2 |Great Gish's Lana| team:red
3506-2281f45c8a8409453a32.bundle.js:2 |Great Gish's Lana| time:6
3506-2281f45c8a8409453a32.bundle.js:2 |Great Gish's Lana| xposenemy:30
3506-2281f45c8a8409453a32.bundle.js:2 |Great Gish's Lana| -------
3506-2281f45c8a8409453a32.bundle.js:2 |Great Gish's Lana| xpos:101.77768816638141
3506-2281f45c8a8409453a32.bundle.js:2 |Great Gish's Lana| team:red
3506-2281f45c8a8409453a32.bundle.js:2 |Great Gish's Lana| time:6.2
3506-2281f45c8a8409453a32.bundle.js:2 |Great Gish's Lana| xposenemy:30
3506-2281f45c8a8409453a32.bundle.js:2 |Great Gish's Lana| -------
3506-2281f45c8a8409453a32.bundle.js:2 |Great Gish's Lana| xpos:101.147736163176
3506-2281f45c8a8409453a32.bundle.js:2 |Great Gish's Lana| team:red
3506-2281f45c8a8409453a32.bundle.js:2 |Great Gish's Lana| time:6.7
3506-2281f45c8a8409453a32.bundle.js:2 |Great Gish's Lana| xposenemy:30
3506-2281f45c8a8409453a32.bundle.js:2 |Great Gish's Lana| -------
3506-2281f45c8a8409453a32.bundle.js:2 |Great Gish's Lana| xpos:101.77768816638141
3506-2281f45c8a8409453a32.bundle.js:2 |Great Gish's Lana| team:red
3506-2281f45c8a8409453a32.bundle.js:2 |Great Gish's Lana| time:7.4
3506-2281f45c8a8409453a32.bundle.js:2 |Great Gish's Lana| xposenemy:30
3506-2281f45c8a8409453a32.bundle.js:2 |Great Gish's Lana| -------
3506-2281f45c8a8409453a32.bundle.js:2 |Great Gish's Lana| xpos:101.147736163176
3506-2281f45c8a8409453a32.bundle.js:2 |Great Gish's Lana| team:red
3506-2281f45c8a8409453a32.bundle.js:2 |Great Gish's Lana| time:7.9
3506-2281f45c8a8409453a32.bundle.js:2 |Great Gish's Lana| xposenemy:30
3506-2281f45c8a8409453a32.bundle.js:2 |Great Gish's Lana| -------
3506-2281f45c8a8409453a32.bundle.js:2 |Great Gish's Lana| xpos:101.77768816638141
3506-2281f45c8a8409453a32.bundle.js:2 |Great Gish's Lana| team:red
3506-2281f45c8a8409453a32.bundle.js:2 |Great Gish's Lana| time:8.1
3506-2281f45c8a8409453a32.bundle.js:2 |Great Gish's Lana| xposenemy:30
3506-2281f45c8a8409453a32.bundle.js:2 |Great Gish's Lana| -------
3506-2281f45c8a8409453a32.bundle.js:2 |Great Gish's Lana| xpos:101.73745465871878
3506-2281f45c8a8409453a32.bundle.js:2 |Great Gish's Lana| team:red
3506-2281f45c8a8409453a32.bundle.js:2 |Great Gish's Lana| time:8.5
3506-2281f45c8a8409453a32.bundle.js:2 |Great Gish's Lana| xposenemy:30
3506-2281f45c8a8409453a32.bundle.js:2 |Great Gish's Lana| -------
3506-2281f45c8a8409453a32.bundle.js:2 |Great Gish's Lana| xpos:99.38127071126718
3506-2281f45c8a8409453a32.bundle.js:2 |Great Gish's Lana| team:red
3506-2281f45c8a8409453a32.bundle.js:2 |Great Gish's Lana| time:9.5
3506-2281f45c8a8409453a32.bundle.js:2 |Great Gish's Lana| xposenemy:30
3506-2281f45c8a8409453a32.bundle.js:2 |Great Gish's Lana| -------

Test code:

def guardAct(data):
    guard = data.guard
    place = data.place
    while True:
        print("-------")
        print("xpos:"+guard.x)
        print("team:"+guard.color)
        print("time:"+hero.time)
        print("xposenemy:"+hero.findEnemyGuards()[0].x)
        enemy = guard.findNearestMonster()
        if enemy:
            guard.attack(enemy)
print("xposenemy:"+hero.findEnemyGuards()[0].x)
print("what")
hero.on('spawn-guard', guardAct);
hero.build('cannon', "A");
hero.build('frost', 'B');
hero.build('frost', 'C');
hero.build('mage', "F");
hero.build('archer', "G");

Now as you can see inbetween the coordinate switch there was an error (I’m 99% sure its not from my code since my code doesn’t even reach line 24, which should mean it was from my opponent’s code, which somehow caused the coordinate to switch and his guard not moving, if i play as ogres all things goes normal
And i think “Eric Workman” isn’t the only instance this is happening on, probably it happens whenever the code that triggers that specific error message is executed, which somehow just inverted the coordinates

Interesting. Thank you for the report. I’m going to dig deeper tomorrow on this problem

Yes, it’s an error in their code, however. I doubt it affects coordinates. My suggestion it’s something else.

Nope, you are right. The error in the opponent code causes this issue.
Curiouser and curiouser

Hmm, interesting. I had such problem too, although I could fix it.

1 Like

ah yes, the joy of debugging

That’s great, however for this one i don’t think it can really be fixed from one side, since the opponent can cause this error which you don’t really have control over since it’s their code that’s causing the problem.



Can anyone check about this bug?
I was Number ten on the rankings then I “lost” to someone I won and dropped to number 13.

Found and fixed. it happened when your opponent had an error in an event handler.

ELO system depends on the opponent ranks.

@Bryukh Ok, thanks! :smile:

Have you applied the changes? because the exact same thing still happened, or is it something to do with the browser’s cache like last time?