Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Nival

Pages: [1]
1
General / TMX map loader
« on: February 19, 2018, 08:35:45 pm »
Hello, does any1 have levelloader class for TMX like attachment has for tinyxml?

2
General / tmxlite
« on: January 30, 2018, 05:49:08 pm »
Hi, just started to use tmxlite, loaded map using this lib and SFMLOrthogonalLayer that was in exmaple but cannot load objects layer, tried to get all layers, then take my obj layer and parse it with Objectlayers but get an error wrong ptr. So my question is how to load objects draw them and use

3
General / Re: Maploader for Tile editor
« on: January 27, 2018, 07:38:33 pm »
I recommend using tmxlite or if you must sfml-tmxloader.

Secondly you should learn some modern C++ where never use owning raw pointers and instead make use of unique (and shared) pointers and thus pretty much do away with manual memory management.

As for the crash:

        image = tilesetElement->FirstChildElement("image");
        std::string imagepath = image->Attribute("source");

It's most likely that FirstChildElement("image") returned false and then you try to access it, causing an access violation, thus crash.
Thanks, it's rly returned false i'll try to use libs that u adviced

4
General / Maploader for Tile editor
« on: January 27, 2018, 06:42:42 pm »
Hi guys, can anyone help me to load map from .tmx file, i tried to make it with tinyxml , coppied code from topics but always get error at "   image = tilesetElement->FirstChildElement("image");
                                          std::string imagepath = image->Attribute("source");"  -  read access violation.

Code in attachment

Pages: [1]
anything