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

Not orthogonal and will not be shown #136

Open
DFelipehDEV opened this issue Jul 28, 2023 · 3 comments
Open

Not orthogonal and will not be shown #136

DFelipehDEV opened this issue Jul 28, 2023 · 3 comments

Comments

@DFelipehDEV
Copy link

When i try to add my map to my project, it appears in the console its not orthogonal and it will not be shown, even though it is a orthogonal. If i use the map in the SFML Example it works perfectly
imagem
imagem
imagem

@fallahn
Copy link
Owner

fallahn commented Jul 30, 2023

Use the debugger to step into the map loader when it loads the file - specifically look for this line:

https://github.com/fallahn/tmxlite/blob/master/tmxlite/src/Map.cpp#L155

to see what kind of orientation the map is loading.

Also check here:

https://github.com/fallahn/tmxlite/blob/master/SFMLExample/src/SFMLOrthogonalLayer.hpp#L67

The error could be misleading, as the index idx might be out of range or the layer might not be a tile layer, which prints an error about not being orthogonal when it should be printing an error about the current layer. (Technically that's a bug).

@DFelipehDEV
Copy link
Author

DFelipehDEV commented Jul 30, 2023

In the debugger it says the orientation is being set to orthogonal but it says after the message "Not a valid orthogonal layer, nothing will be drawn.". I actually tried to downgrade the Tiled version and it worked. I believe the problem is maybe it is not updated to the tiled changes to their .tmx structure?

@fallahn
Copy link
Owner

fallahn commented Jul 30, 2023

OK, thanks! I'll have to look into it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants