GithubHelp home page GithubHelp logo

Comments (5)

Wazarr94 avatar Wazarr94 commented on August 22, 2024 1

No worries, this was bound to happen, this is pretty difficult to test myself because I don't have a room running where I can test stuff. Will look into this quickly

from haxball_bot_headless.

iwishiknewcoding avatar iwishiknewcoding commented on August 22, 2024 1

Turns out it was a false alarm, sorry. I'm running two different rooms with your codes customised in two different ways. When I was adding the CS logic based on your commit, I did it correctly in one of the rooms, but missed to call handleGK() in getGameStats() which is fired on GameTick. 🙁 Hence the GKTicks not incrementing.

Anyways, closing this issue now. Thanks

from haxball_bot_headless.

iwishiknewcoding avatar iwishiknewcoding commented on August 22, 2024

let me know if I can help somehow

from haxball_bot_headless.

Wazarr94 avatar Wazarr94 commented on August 22, 2024

How did you test this?
FYI, if you open a room on your browser and open consecutively 6-7 different tabs for each player, it will not work. Since the PlayerComposition object (bad name, want to change it one day) works with the auth property, it will mess up the computation of the GK ticks. If you clear your localStorage before opening a new tab, you'll get a new auth for each player and avoid such problem.
I've followed the procedure I just described and played 2v2, didn't have any problem with GK ticks.

from haxball_bot_headless.

iwishiknewcoding avatar iwishiknewcoding commented on August 22, 2024

I've tested this in a live room with different people, I am aware of the PlayerComposition working with the auth.
Initially, the GKTicks was fine and it was showing the correct GKs, but after a bit, it started to show wrong players 🙁 and the GKTicks stopped incrementing in some cases (actually, all the cases when I was monitoring it).
Not very helpful, I know. I will try to collect some more information.

from haxball_bot_headless.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.