-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bot crashes with same reason #38
Comments
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? |
i never had it while playing, but as players report it suddenly crashes. when i look i always see that error |
could you share the full error message? need it to know what to fix |
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 |
thank you so much for the help, will give a feedback after it |
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 |
i have 2 seperated rooms and sometimes one of them crashes with this error. i looked for possible reasons but i cant stop, do you have any idea
The text was updated successfully, but these errors were encountered: