GithubHelp home page GithubHelp logo

Comments (4)

Wazarr94 avatar Wazarr94 commented on July 20, 2024

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.

iwishiknewcoding avatar iwishiknewcoding commented on July 20, 2024

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.

Wazarr94 avatar Wazarr94 commented on July 20, 2024

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.

Wazarr94 avatar Wazarr94 commented on July 20, 2024

pushed fix

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.