MonoGame.Extended
MonoGame.Extended copied to clipboard
[TIled] Object reference not set to an instance of an object when trying to build map
When trying to make a tileset that uses a collection of images instead of 1 image, the following exception is thrown:
This error seems to pertain to the .tsx file, and only the .tmx file if the tileset is embedded into the map.
Can you post a project that reproduces this problem.
Can you post a project that reproduces this problem.
Here is a link to a snapshot of the repo: https://github.com/sudo-make/Capstone-Project
Related:
https://github.com/craftworkgames/MonoGame.Extended/issues/475 https://github.com/craftworkgames/MonoGame.Extended/issues/102
The problem is about assets; currently, there is no middleware to combine collection of images into a single image. This process is better known as "texture packing".
Why is texture packing important? Well, the technical details are that there is a performance penalty for switching textures at runtime when rendering. See https://github.com/craftworkgames/MonoGame.Extended/issues/295
Looking at this again, there should at least be a better exception message :)