Giter VIP home page Giter VIP logo

Comments (10)

xezno avatar xezno commented on July 30, 2024

That's strange. It works for me.

from project-dollhouse.

Afr0 avatar Afr0 commented on July 30, 2024

That's... strange. Maybe it's a threading issue.

from project-dollhouse.

xezno avatar xezno commented on July 30, 2024

Actually, this exact error happens to me from time to time; I was busy testing out @RHY3756547's buy mode creating a skill lot, but it does happen (albeit rarely) in the master branch, too.

from project-dollhouse.

riperiperi avatar riperiperi commented on July 30, 2024

Always works for me... I'm on OP hardware though.

from project-dollhouse.

xezno avatar xezno commented on July 30, 2024

I am too 😄

from project-dollhouse.

 avatar commented on July 30, 2024

It's periodic but, boy, when it does happen, it'll either stop after one restart or a few dozen.

from project-dollhouse.

 avatar commented on July 30, 2024


For the purpose of this screenshot, I had it uncommented. Which is why you see the // Die! above. X)

from project-dollhouse.

xezno avatar xezno commented on July 30, 2024

A simple fix, before the problem is fully resolved, would be to put it in a try loop which would display "FPS: ??" if it happens; but it depends on the frequency of the exception. FPS should really be an integer, so I would use:

try
{
    SBatch.DrawString(m_SprFontBig, "FPS: " + ((int) FPS).ToString(), new Vector2(0,0), Color.Red);
}
catch (Exception e)
{
  if e.ToString().ToLower().Contains("text contains characters that cannot be resolved by this spritefont")
  {
    SBatch.DrawString(m_SprFontBig, "FPS: ??", new Vector2(0,0), Color.Red);
  }
}

from project-dollhouse.

 avatar commented on July 30, 2024

Issue has been fixed in merge #167.

from project-dollhouse.

riperiperi avatar riperiperi commented on July 30, 2024

Yep, invalid characters don't render anymore. I was getting the crash with the McDonalds object when it tried to draw ™, which isn't baked into our spritefont.

from project-dollhouse.

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.