Comments (4)
Sorry, have never seen this issue on a server with dozens of game a day. Could you send the bugged replay here? You'll need to compress it in a zip file to send it.
If people also encounter this problem, let me know.
Also, I've just seen that days and minutes have missing 0's, will fix this
from haxball_bot_headless.
The content of the bugged replay is just text saying undefined
. I think I found a solution though, haven't had the room running for long enough after the fix to be 100% sure if the bugged replays are not sent again, but it's already been ~20 recordings that are fine. Here's what I did:
Change this:
if (fetchRecordingVariable) {
setTimeout(() => { fetchRecording(game); }, 1000);
}
To this:
if (saveRecordingVariable) {
setTimeout((gameParam) => { saveRecording(gameParam); }, 1000, game);
}
Quick note though, I've had the setTimeout set to 1 second, because with 0.5s sometimes the recording would get sent before the match report itself, and that was not looking good. Could that be the issue of the recording file content sometimes being undefined
?
from haxball_bot_headless.
Glad to see you found and fixed the problem. Once again, I will post your solution, I was thinking about doing that as well. FYI I'm doing the CS stat implementation, I'll post this fix with the GK update.
from haxball_bot_headless.
pushed fix
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.