Giter VIP home page Giter VIP logo

Comments (6)

GraylinKim avatar GraylinKim commented on July 29, 2024

@Prillan would know.

It seems that the properties have a series of dependencies which must be loaded before you can determine if the property is "active" or not. Given that understanding, it would seem as though it was assumed that all lobby properties would be eventually resolved, one way or the other.

That being said, I see that there is already a hack in place for this exact problem down below it here.

# Use this to avoid an infinite loop
last_success = 0
max = len(left_players)
while len(left_players) > 0 and not (last_success > max+1):

Perhaps a similar patch should be made for now until we better understand the lobby properties.

from sc2reader.

Prillan avatar Prillan commented on July 29, 2024

Yes, the hack is there because I was afraid that my implementation of the parsing might cause an infinite loop.

It looks like I forgot it at the place you pointed out...

I'll take a look in a few days when I have time. Thanks for finding it!

from sc2reader.

Prillan avatar Prillan commented on July 29, 2024

Ok, so I added the same hack to the general properties as well. I think it's the simplest way to do it and doesn't hurt performance too much.
If it does we'll have to fix it but I don't think it's necessary.

Btw, how do I add the commit to this issue?

from sc2reader.

GraylinKim avatar GraylinKim commented on July 29, 2024

You can tie commits to issues with commit messages. See the github announcement for details.

Relevant Excerpt:

Commits + Issues

Issues has deep integration with commit messages. Any time you reference an issue number from a commit message, we'll bring in the commits to the discussion view for you.

And of course you can close issues with commit messages.

We support a number of synonyms:

  • fixes #xxx
  • fixed #xxx
  • fix #xxx
  • closes #xxx
  • close #xxx
  • closed #xxx

from sc2reader.

GraylinKim avatar GraylinKim commented on July 29, 2024

Since you've already made the commit, you can also just reference it in the issue text with the commit id as show below:

Patched with 5eca833798913e85032f197185920611897e6b1b

renders as:

Patched with 5eca833

from sc2reader.

Prillan avatar Prillan commented on July 29, 2024

I should probably close this now :)

from sc2reader.

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.