XBox Crashes loading font

GambitSunob's picture

Hi,

     I tried using the Nuclex fonts on my 360 and when I debug it and put it on the 360, it crashes. C# EE gives an error and the 360 has a black screen. I have to push the button on the 360 to turn it off and then back on to do anything.

this.font = content.Load<BitmapFont>("Content/MyFont"); <-- That's the line that it crashes from. It works perfectly fine on the PC with the exact same game and code. I created a fresh Xbox game and put the font in and it did the same thing.

Any ideas? 

Cygon's picture

Being worked on!

The 1.1.0 release still has the texture format problems in there that Pete already provided a fix for here.

I'm working on solving these issues with a complete redesign that will perform just as well on the XBox 360 as it does on the PC, but maybe I should just do an intermediate 1.1.1 release that incorporates Pete's fixes. It will waste a bit of performance on the XBox 360, thought :)

I'm putting the intermediate release together when I'm at my PC at home this evening. I'd be happy if you could report back whether it works!

GambitSunob's picture

XBox Crashing

I read that post about the texture loading but that didn't seem to be the case for me.

When I push it over to the XBox and it runs I get a black screen on the TV and Visual C# EE just gives me a Windows error of this application has failed or w/e and asks me to end the task or cancel.

So I never get any actual errors. The 360 stops doing stuff and C# EE keeps debugging until I shut down the 360.

I'd be more than happy to try your intermediate 1.1.1 release though. Maybe that is the problem and it just isn't giving me the error.

Thanks for the fast reply! 

Cygon's picture

Still happening in the new release?

Having implemented several new features, including support for '\n', I decided that this is no longer a bugfix release and labeled it 1.2.0 :)

I still don't have any confirmation on whether the new release is actually working on the XBox 360. If you come around to testing it, I'd be happy to hear whether it works now!

pdhipps's picture

crashing

When deploying the code to the Xbox 360, it's still crashing at:

this.font = this.content.Load<BitmapFont>("Content/myFOnt");

with

An unhandled exception of type 'Microsoft.Xna.Framework.Content.ContentLoadException' occurred in Microsoft.Xna.Framework.dll

Additional information: Error loading "Content\myFont". File not found.

Works fine with x86 compile.

Cygon's picture

You probably forgot the content pipeline assembly

This is an exception from the XNA framework that is thrown before even a single line of code from Nuclex.Fonts gets executed.

Please double-check that the content pipeline assembly (Nuclex.Fonts.Content.Pipeline.TrueTypeImporter.dll) has been added to your XBox 360 project as well. It might also go wrong if you added the .ttfimport file before setting up the content pipeline assembly.

If the importer is actually run, a file named myFOnt.xnb should be sitting in your bin/XBox 360/debug/Content/ directory!

pdhipps's picture

Didn't copy over the

Didn't copy over the ttfimport file when moving fromx86 to Xbox360 project.  My apologies.

 

Just tested it on deploying to an xbox 360, works great.  Thanks for your work on this! 

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Lines and paragraphs break automatically.
  • Allowed HTML tags: <br> <a> <em> <strong> <u> <i> <b> <cite> <blockcode> <code> <ul> <ol> <li> <dl> <dt> <dd> <p> <pre> <span>
  • You can highlight code with any of the following tags: <blockcode>

More information about formatting options