I’m trying to follow this series of tutorials, but parts of them now seem a bit dated with the MG pipeline.exe replacing the XNA pipeline. Without the Visual Studio template, how do I go about converting the ttf I want to use to the spritefont so that I can build the xnb?
Okay I’ve figured out some things I was doing wrong. I’m now stuck with a .xnb that is linked to my VS project. I’ve set both ‘content’ and ‘copy if newer’ in the properties. When I build the project in pipeline I get this:
Build started 12/14/2014 5:48:19 PM
Skipping C:/Users/Viper45/documents/visual studio 2013/Projects/Game1/Game1/Content/images/avs.jpg
C:/Users/Viper45/documents/visual studio 2013/Projects/Game1/Game1/Content/fonts/basic.xnb
C:/Users/Viper45/documents/visual studio 2013/Projects/Game1/Game1/Content/fonts/basic.xnb: error: Importer 'FontDescriptionImporter' had unexpected failure!
Microsoft.Xna.Framework.Content.Pipeline.InvalidContentException: An error occured parsing. ---> System.Xml.XmlException: Data at the root level is invalid. Line 1, position 1.
at System.Xml.XmlTextReaderImpl.Throw(String res, String arg)
at System.Xml.XmlTextReaderImpl.ParseRootLevelWhitespace()
at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
at System.Xml.XmlReader.MoveToContent()
at Microsoft.Xna.Framework.Content.Pipeline.Serialization.Intermediate.IntermediateSerializer.Deserialize[T](XmlReader input, String referenceRelocationPath)
--- End of inner exception stack trace ---
at Microsoft.Xna.Framework.Content.Pipeline.Serialization.Intermediate.IntermediateSerializer.Deserialize[T](XmlReader input, String referenceRelocationPath)
at Microsoft.Xna.Framework.Content.Pipeline.FontDescriptionImporter.Import(String filename, ContentImporterContext context)
at Microsoft.Xna.Framework.Content.Pipeline.ContentImporter`1.Microsoft.Xna.Framework.Content.Pipeline.IContentImporter.Import(String filename, ContentImporterContext context)
at MonoGame.Framework.Content.Pipeline.Builder.PipelineManager.ProcessContent(PipelineBuildEvent pipelineEvent)
Build 1 succeeded, 1 failed.
Time elapsed 00:00:00.20.
Any thoughts on why i’m getting this, I’m lost.