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.


Topics - 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
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]