Giter Club home page Giter Club logo

Comments (5)

fallahn avatar fallahn commented on September 24, 2024

Hi, yes there appear to be a few typos on the wiki example. tmx::Layer::Object should be tmx::Layer::Type::Object - as Type is an enum class not a regular enum. The same goes for the second error.

‘class tmx::Map’ has no member named ‘getTileSets’; did you mean ‘getTilesets’?

Well your compiler is telling you the error here - it's supposed to have a lower case 's' ;) This should be fixed now.

The SFML example was missing the tmx namespace before the logger lines. This should also be fixed now.

I'm assuming you're on linux - if you use a specific build directory then yeah, the assets directory will have a different path relative to your build output. You can fix it with your method, or I like to create a symlink to the assets directory in bigger projects. HTH!

from tmxlite.

nsklaus avatar nsklaus commented on September 24, 2024

Hi, thanks for the reply.
yes i'm on linux (ubuntu).
as for the directory structure, i've just did a git clone of your repository,
so my directory structure should be the same as yours and everyone else, unless i'm mistaken.
i'm speaking for the sfmlExample. for the wiki example it's not in the repo, so i made the test in an unrelated directory elsewhere outsite the cloned repo.
i hadn't noticed the difference of upper/lower case "s".
and i will add 'Type' inbetween 'Layer' and 'Object' then i will test it again.

from tmxlite.

sherjilozair avatar sherjilozair commented on September 24, 2024

I'm still getting error on the SFML example:

In file included from /Users/sherjilozair/tmxlite/SFMLExample/src/main.cpp:33:
/Users/sherjilozair/tmxlite/SFMLExample/src/SFMLOrthogonalLayer.hpp:132:26: error: no member named 'Logger' in namespace 'tmx'
                    tmx::Logger::log("This example does not support Collection of Images tilesets", tmx::Logger::Type::Info);
                    ~~~~~^
/Users/sherjilozair/tmxlite/SFMLExample/src/SFMLOrthogonalLayer.hpp:132:106: error: no member named 'Logger' in namespace 'tmx'
                    tmx::Logger::log("This example does not support Collection of Images tilesets", tmx::Logger::Type::Info);
                                                                                                    ~~~~~^
/Users/sherjilozair/tmxlite/SFMLExample/src/SFMLOrthogonalLayer.hpp:133:26: error: no member named 'Logger' in namespace 'tmx'
                    tmx::Logger::log("Chunks using " + ts->getName() + " will not be created", tmx::Logger::Type::Info);
                    ~~~~~^
/Users/sherjilozair/tmxlite/SFMLExample/src/SFMLOrthogonalLayer.hpp:133:101: error: no member named 'Logger' in namespace 'tmx'
                    tmx::Logger::log("Chunks using " + ts->getName() + " will not be created", tmx::Logger::Type::Info);
                                                                                               ~~~~~^
/Users/sherjilozair/tmxlite/SFMLExample/src/SFMLOrthogonalLayer.hpp:176:33: warning: suggest braces around initialization of subobject [-Wmissing-braces]
                                sf::Vertex(tileOffset, vertColour, tileIndex),
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                                {

tmxlite version: master
SFML version: 2.4.2

from tmxlite.

fallahn avatar fallahn commented on September 24, 2024

Oops, was missing an include file - needs

#include <tmxlite/detail/Log.hpp>

at the top!

from tmxlite.

jbicalhk avatar jbicalhk commented on September 24, 2024

Hi, I have a problem with my code, the game opens the SFML window but it says that the layers are not valid orthogonal and will not be drawn

Not a valid orthogonal layer, nothing will be drawn.

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.