tmxlite icon indicating copy to clipboard operation
tmxlite copied to clipboard

ERROR: Failed opening data/assets/demo.tmx

Open vinay opened this issue 6 years ago • 2 comments

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.

vinay avatar Jan 31 '19 00:01 vinay

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

fallahn avatar Jan 31 '19 10:01 fallahn

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.

vinay avatar Feb 07 '19 14:02 vinay