Comments (7)
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.
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.
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.
could you share the full error message? need it to know what to fix
from haxball_bot_headless.
after i added gk stats, my rooms crashes regularly with this error
from haxball_bot_headless.
thank you so much for the help, will give a feedback after it
from haxball_bot_headless.
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
from haxball_bot_headless.
Related Issues (20)
- 0 HOT 1
- 0 HOT 1
- 0 HOT 1
- 0 HOT 1
- 0 HOT 1
- 0 HOT 1
- 0 HOT 2
- 0 HOT 1
- 0 HOT 1
- match report not recording subs
- Json file in localhost HOT 2
- Avatar that changes when you sign HOT 2
- vps on the readme HOT 1
- Announcements and Color chat. HOT 1
- location... HOT 1
- Masterpassword not working and local storage transfer. HOT 5
- command to download file
- Haxball Bot
- URGENT QUEUE MODE BY ODEM NO CHOICE
- How can I override the room's location ?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from haxball_bot_headless.