Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

ERROR: Failed opening data/assets/demo.tmx #45

Closed
vinay opened this issue Jan 31, 2019 · 2 comments
Closed

ERROR: Failed opening data/assets/demo.tmx #45

vinay opened this issue Jan 31, 2019 · 2 comments

Comments

@vinay
Copy link

vinay commented Jan 31, 2019

Im trying to use this library in xcode, and its failing while trying to load the sample provided. Im able to load other assets from the data folder referenced in the error message.

Any help would be great.

@fallahn
Copy link
Owner

fallahn commented Jan 31, 2019

Not entirely sure why - the path should be assets/demo.tmx not data/assets/demo.tmx so you may have a mistake there (see this line). XCode also expects the assets directory to be in the Debug or Release output directories so you can either copy it there or create a symlink to the repository directory:

ln -s ~/repos/tmxlite/SFMLExample/assets/ ~/my/build/directory/Debug

see attached for example
untitled-1

@vinay
Copy link
Author

vinay commented Feb 7, 2019

i guess it has something to do with Xcode manages file paths. I tried a much simpler example to just load a FILE from a path, and it fails too. Tried giving it both the relative and absolute paths and it still doesnt work.

I got the tileset to load on windows by the way.

Repository owner locked and limited conversation to collaborators Sep 13, 2023
@fallahn fallahn converted this issue into discussion #147 Sep 13, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Projects
None yet
Development

No branches or pull requests

2 participants