Giter Club home page Giter Club logo

Comments (5)

timschwartz avatar timschwartz commented on July 26, 2024 1

ok, i see. That file didn't include the tilecount attribute on the tileset tag. It works correctly with another tmx file that does have the tilecount attribute.

from tmxlite.

fallahn avatar fallahn commented on July 26, 2024

The image path is correct but for some reason I can't access the tiles. Is there something I need to do manually to load the image?

The parser only creates a C++ representation of the tmx map file, it doesn't do any actual asset loading. It will provide a string containing the path to the image, but you have to load this yourself as the map loader has no idea if you're using OpenGL, DirectX, SDL, Allegro etc...

As for why you have no tiles in the tile set, I couldn't say without looking at your tmx file. It might be that the specification has been updated and you're using an as yet unimplemented feature. For example tmxlite doesn't support files compressed with zstdlib as this would require adding external dependencies, so you need to use zlib instead. (If this were the case here, however, the error should be more explicit about that).

from tmxlite.

fallahn avatar fallahn commented on July 26, 2024

Is this common in newer tileset files? If so I'd consider updating the loader to parse them

from tmxlite.

timschwartz avatar timschwartz commented on July 26, 2024

Looks like the map version number on the file that didn't work is 1.0, the one that did work is version 1.8.

from tmxlite.

fallahn avatar fallahn commented on July 26, 2024

OK, thanks for the info!

from tmxlite.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.