Comments (8)
That is definitely not good. Could you send the whole stacktrace please?
from tiledcs.
here ya go 👍
TiledCS.TiledException
HResult=0x80131500
Message=An error occurred while trying to parse the Tiled map file
Source=TiledCS
StackTrace:
at TiledCS.TiledMap.ParseXml(String xml)
at Static.Utilities.InGame.Initialize() in C:\Users\me\Desktop\Static\Game\Static\Static\Utilities\Menu.cs:line 49
at Static.Utilities.Menu..ctor() in C:\Users\me\Desktop\Static\Game\Static\Static\Utilities\Menu.cs:line 19
at Static.Utilities.InGame..ctor()
at Static.Static.Initialize() in C:\Users\me\Desktop\Static\Game\Static\Static\Static.cs:line 48
at Microsoft.Xna.Framework.Game.DoInitialize()
at Microsoft.Xna.Framework.Game.Run(GameRunBehavior runBehavior)
at Static.Program.Main() in C:\Users\me\Desktop\Static\Game\Static\Static\Program.cs:line 11
This exception was originally thrown at this call stack:
[External Code]
Inner Exception 1:
NullReferenceException: Object reference not set to an instance of an object.
from tiledcs.
Thanks! Does the inner exception have a stacktrace by any chance? Because unfortunately this says fuck to me haha
from tiledcs.
I am getting the same error when I have an object layer in the tilemap.
from tiledcs.
Hey @pacoo2454
Thanks for the heads up about the object layer. I didn't had one in my test map anymore so I just added one and it went kaboom for me too. So I patched it up and a new version should be on its way in a couple of minutes. :)
EDIT:
That said, aside of the nullref exception I got with an object layer, everything else works fine for me. So if anyone still encounters an error, please provide me with as much info you can give. Like the full exception or a tmx file if possible.
With kind regards,
TheBoneJarmer
from tiledcs.
I've updated to 3.3.1 things seem to be working flawlessly ( so far ) 👍
from tiledcs.
No problem. That also fixed it for me too! Thanks for the quick update.
from tiledcs.
Awesome! Glad it works for the both of you. :D
from tiledcs.
Related Issues (20)
- Let's help other people figure out how to use your library with Monogame. HOT 3
- Add support for embedded tilesets HOT 1
- Thought/Feature Request - Create method to draw Tile Map with user passed in function HOT 3
- Missing opacity from TiledLayer HOT 2
- Incorrect index formula in readme HOT 2
- Cannot get tileoffset of a tileset HOT 2
- replace TiledProperty.type with enum HOT 3
- use dictionaries instead of arrays for properties HOT 1
- Issues retrieving parallax x/y factors from a TiledLayer HOT 12
- Issues with objects that belong to tiles HOT 3
- Feature Request: Template Support HOT 2
- Flipped objects throw an OverflowException on ParseXml HOT 4
- Updated MonoGame example HOT 2
- Add support for TileSet.Spacing and TileSet.Margin HOT 1
- Unprotected main branch
- add support for tiled tile class property
- TiledMap.GetSourceRect does not consider tileset spacing
- No TiledLayer property corresponds to Image layers' Repeat X/Y values
- Add support for custom classes in custom properties
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tiledcs.