Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I get the following error when loading the map (which contains GroupLayer). Any help is greatly appreciated! #67

Closed
RitwickVerma opened this issue May 28, 2020 · 4 comments
Labels

Comments

@RitwickVerma
Copy link

As stated, I get the error when I load the map saying
ObjectGroup.cpp:45: virtual void tmx::ObjectGroup::parse(const pugi::xml_node&, tmx::Map*): Assertion 'map' failed.

Here is the structure of my layers:
Screenshot_tmx_error1

I get different error when I remove object layers from the group
Screenshot_tmx_error
(First make exec error is when I delete the object layers from the groups (the ones called "thing"). Second error is the one I get If I keep all the object layers in their respective groups)

Also, I get no errors if I remove the groups altogether. Which makes me believe there is some peoblem in importing groups

fallahn added a commit that referenced this issue May 28, 2020
@fallahn fallahn added the bug label May 28, 2020
@fallahn
Copy link
Owner

fallahn commented May 28, 2020

Hi! This is indeed a bug. I've pushed a potential fix to master, if you'd like to try it out. Thanks!

@RitwickVerma
Copy link
Author

Wow didn't expect such a quick response!

So I tried it out again and theres what I get
Screenshot_tmx_error2

None of the layers in the groups are parsed. The outer object layers ("spawn_points" and "collision") are parsed perfectly though.

fallahn added a commit that referenced this issue May 28, 2020
@fallahn
Copy link
Owner

fallahn commented May 28, 2020

No problem! It irks me when I don't have things right ;) I've pushed another commit, hopefully this one will nail it.

@RitwickVerma
Copy link
Author

Awesome! Everything works perfectly now. Thanks a lot :)

@fallahn fallahn closed this as completed May 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants