Giter Club home page Giter Club logo

Comments (4)

fallahn avatar fallahn commented on June 22, 2024

Are you making sure to include ObjectGroup.hpp in which the templated function is defined?

Which compiler/environment are you using? I'm able to copy/paste your code and compile it without issue in MSVC on Windows and g++ on linux.

from tmxlite.

1-max-1 avatar 1-max-1 commented on June 22, 2024

Oops, I was making a small change to the library and had temporarily commented out where it was defined. Completely forgot about it, that was the problem.

from tmxlite.

1-max-1 avatar 1-max-1 commented on June 22, 2024

Oh and just as a little side question, where would I place my .tmx files for android? Currently I have them in the app/src/main/assets folder but tmxlite says it failed to open the map because it couldn't find it.

from tmxlite.

fallahn avatar fallahn commented on June 22, 2024

No problem, it happens to us all :)

You make a good point about opening files, however. It appears fstream doesn't actually work with the NDK (so why they include it, I don't know, especially when they don't implement std::to_string()). You'll have to convert the library to use fopen() or possibly even use SDL2's file system functions. I'll have to look into creating some sort of interface for custom file streams in the future. As a work around you could load the tmx file into a string then feed that into the map loader via Map::loadFromString() although this will likely fail if it needs to load external tileset files, for the same reason.

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.