So, I was working on getting a project using Tiled up and running. Everything seems to be working fine, but I am unable to build my project. The following exception is thrown:
System.NullReferenceException: Object reference not set to an instance of an object. at MonoGame.Extended.Content.Pipeline.Tiled.TiledMapTilesetImporter.DeserializeTiledMapTilesetContent(String filePath, ContentImporterContext context) at MonoGame.Extended.Content.Pipeline.Tiled.TiledMapTilesetImporter.Import(String filePath, ContentImporterContext context) at Microsoft.Xna.Framework.Content.Pipeline.ContentImporter`1.Microsoft.Xna.Framework.Content.Pipeline.IContentImporter.Import(String filename, ContentImporterContext context) in C:\BuildAgents\MonoGameWin1\work\f7381a85a626990\MonoGame.Framework.Content.Pipeline\ContentImporter.cs:line 45 at MonoGame.Framework.Content.Pipeline.Builder.PipelineManager.ProcessContent(PipelineBuildEvent pipelineEvent) in C:\BuildAgents\MonoGameWin1\work\f7381a85a626990\MonoGame.Framework.Content.Pipeline\Builder\PipelineManager.cs:line 669
If I remove
<tileset firstgid="1" source="Mushy_flooring.tsx"/> from my map’s .tmx file, it builds fine. But of course, the map now does not display anything.
I’ve tried numerous ways to solve this issue, including; making the tileset embedded in the map, re-locating the .png assets, and trying to create a fresh new project.
btw, this is on Ubuntu Linux using Visual Studio Code.
I would really appreciate any help again guys.