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 - Tooni

Pages: [1]
1
General / Help with fallahn's sfml-tmxloader?
« on: July 24, 2016, 01:23:35 pm »
Sorry if this isnt the right forum to post this. I wasnt sure if i should bump this thread http://en.sfml-dev.org/forums/index.php?topic=3023.0 cos it hasnt been posted in since october.

i'm using https://github.com/fallahn/sfml-tmxloader with sfml. I'm using it to load .tmx format tilemaps for a platforming game.

My tilemaps are the same size as the game window. I have a MapLoader object called 'ml'. When I load a map for the first time in the program, like ml.Load("level.tmx"), it loads correctly. And when i call either Game.draw(ml) or ml.Draw(Game, tmx::MapLayer::All), where 'Game' is the renderwindow, it draws the map to the whole window like this http://i.imgur.com/mS6lR3t.png?1 which is what I want.

but if I load another map (or reload the same map) afterwards and try to draw it in the same manner, it will load the whole map, but will only draw a 10x10 grid of the tiles from the origin, like this http://i.imgur.com/SDJ0Noo.png?1 . I can tell it's still loading the whole map because the collision detection is still working despite the tiles not being drawn. How can I make it draw the whole map again?



edit: so i'm pretty sure it is happening because SetDrawingBounds(rt.getView()) here https://github.com/fallahn/sfml-tmxloader/blob/master/src/MapLoaderPublic.cpp#L136  is not working after the first map load? I found this out by commenting the line out, which led to the 10x10 grid occuring every time.

2
i rebuilt the whole project and it started working lmao, thanks guys

3
but i built my sfml libraries with 4.9.x and it works with them?

4
seems like my compiler is doing something with mingw 4.7.1? http://i.imgur.com/WAtfzkY.png?1 i dont even have it installed. i have 4.9.2. Could this be the problem?

5
it says just to add the source files to the project, and that's how i had it working before

6
my sfml libraries are working on their own but will not work with this library as they used to
https://github.com/fallahn/sfml-tmxloader

errors are still gxx_personality_v0 things, any ideas?

7
i didnt do that unfortunately

so far i've tried 4 different versions of mingw and compiled sfml libraries , and 2 versions of codeblocks, with the same errors every time.

8
what do you mean by a clean rebuild?

9
I compiled sfml 2.3.2 libraries with cmake and cmd. It works with just sfml (i think this was the case before too but i did not test it) but will not work with the parser I was using at https://github.com/fallahn/sfml-tmxloader

http://i.imgur.com/Y7lYrTy.png?1

10
this is how I have it set up now, still with the same error :(
http://i.imgur.com/WvVb4TD.png

thanks for the help so far.

11
General / Had working SFML, messed with compiler, now doesnt work.
« on: June 21, 2016, 10:38:56 pm »
I was working with
SFML-2.3.2-windows-gcc-4.8.1-tdm-32-bit from here http://www.sfml-dev.org/download/sfml/2.3.2/
MinGW v4.8.1
Code::Blocks v13.12
this tmx parser https://github.com/fallahn/sfml-tmxloader
and http://zlib.net/

It worked great until earlier today when I tried to make a portable version of Codeblocks to put on my USB so I could use it at school. To do this I followed this guide http://forums.codeblocks.org/index.php/topic,4475.msg43203.html?PHPSESSID=s0olvc4bl2lskufc6f07c0t3p3#msg43203 But instead of using the mingw version it lists I copy-pasted my own mingw from c:/ onto my USB and set codeblocks to use that as the compiler. When I tried to use this version of codeblocks with my project it didnt work. At some point during this process I changed something that somehow wiped the 'build options' of my project.

So for my project I reinput the build options in hopefully the same way as before http://i.imgur.com/NpRtrxi.png http://i.imgur.com/k960r02.png http://i.imgur.com/hNgdusr.png and now upon compiling I get the errors you can see at the bottom of those prtscrs. I didnt change any code so I'm certain I've fucked something up with the compiler but have no idea what.  I've been trying shit for like 2 hours now to fix this and don't know what to do.

Pages: [1]
anything