GithubHelp home page GithubHelp logo

Comments (7)

Wazarr94 avatar Wazarr94 commented on August 22, 2024 1

thanks, needed the function that called the getXPlayer function

I won't push the fix on the project directly, it might only be an issue with your modified script, but I can post here a quick fix to avoid a room crash for you. If more people report on a similar mistake, will definitely add it to the repo.

Change this, around lines 2780:

var stats = new HaxStatistics(player.name);
var pComp = getPlayerComp(player);
if (localStorage.getItem(authArray[player.id][0])) {
    stats = JSON.parse(localStorage.getItem(authArray[player.id][0]));
}
// rest of code

to this

var stats = new HaxStatistics(player.name);
var pComp = getPlayerComp(player);
if (pComp == null) return;
if (localStorage.getItem(authArray[player.id][0])) {
    stats = JSON.parse(localStorage.getItem(authArray[player.id][0]));
}
// rest of code

from haxball_bot_headless.

Wazarr94 avatar Wazarr94 commented on August 22, 2024

could you share the whole error message? I'm a bit confused to where it could come from. Could you also explain what happened in the room just as you got the error?

from haxball_bot_headless.

tanercanbilgin avatar tanercanbilgin commented on August 22, 2024

i never had it while playing, but as players report it suddenly crashes. when i look i always see that error

from haxball_bot_headless.

Wazarr94 avatar Wazarr94 commented on August 22, 2024

could you share the full error message? need it to know what to fix

from haxball_bot_headless.

tanercanbilgin avatar tanercanbilgin commented on August 22, 2024

pcomp auth

after i added gk stats, my rooms crashes regularly with this error

from haxball_bot_headless.

tanercanbilgin avatar tanercanbilgin commented on August 22, 2024

thank you so much for the help, will give a feedback after it

from haxball_bot_headless.

tanercanbilgin avatar tanercanbilgin commented on August 22, 2024

i found why is it happening, if you kick a gk while playing. bot doesnt let us pick and if we put it manual it crashes at the end

@Wazarr94

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.