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 - The Ozzie

Pages: [1]
1
SFML projects / Re: 'Tiled' Tile-map Loader
« on: October 18, 2013, 06:43:45 am »
Alright one last thing, is there anyway to return a tile number? I plan on doing collision like

if (player.intersects(dirtTile)) { //collision here }

Or how would you implement collision with your engine?

Thanks

2
SFML projects / Re: 'Tiled' Tile-map Loader
« on: October 18, 2013, 02:06:14 am »
Just go to zlib.net, scroll down a bit and get the package with the DLL. :P

My god. You fixed it! Thank you so much. I can't believe it was that simple

3
SFML projects / Re: 'Tiled' Tile-map Loader
« on: October 18, 2013, 01:14:15 am »
This is reaaally bothering me that this isn't working. Is it possible for me to message you somewhere like skype where it is instant messaging? I really appreciate your help.

4
SFML projects / Re: 'Tiled' Tile-map Loader
« on: October 17, 2013, 11:06:51 pm »
Okay, I think it's a zlib problem. Here are my configs:



Then in c/c++ General -> additional include directories:

C:\SFML-2.1\include;C:\Users\ozneh_000\Documents\TmxMapLoader\include

Linker -> general - > Additional library dependencies

C:\SFML-2.1\lib

Linker -> input -> Additional dependencies

zlibstat.lib;sfml-graphics-d.lib;sfml-window-d.lib;sfml-audio-d.lib;sfml-system-d.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)

And the errors i'm getting now are about the m_Decompress function in the MapLoader class:

Quote
Error   2   error LNK2019: unresolved external symbol _inflate referenced in function "private: bool const __thiscall tmx::MapLoader::m_Decompress(char const *,class std::vector<unsigned char,class std::allocator<unsigned char> > &,int,int)" (?m_Decompress@MapLoader@tmx@@AAE?B_NPBDAAV?$vector@EV?$allocator@E@std@@@std@@HH@Z)   C:\Users\ozneh_000\Documents\Visual Studio 2012\Projects\FFF\FFF\MapLoaderPrivate.obj   FFF
Error   3   error LNK2019: unresolved external symbol _inflateEnd referenced in function "private: bool const __thiscall tmx::MapLoader::m_Decompress(char const *,class std::vector<unsigned char,class std::allocator<unsigned char> > &,int,int)" (?m_Decompress@MapLoader@tmx@@AAE?B_NPBDAAV?$vector@EV?$allocator@E@std@@@std@@HH@Z)   C:\Users\ozneh_000\Documents\Visual Studio 2012\Projects\FFF\FFF\MapLoaderPrivate.obj   FFF
Error   4   error LNK2019: unresolved external symbol _inflateInit2_ referenced in function "private: bool const __thiscall tmx::MapLoader::m_Decompress(char const *,class std::vector<unsigned char,class std::allocator<unsigned char> > &,int,int)" (?m_Decompress@MapLoader@tmx@@AAE?B_NPBDAAV?$vector@EV?$allocator@E@std@@@std@@HH@Z)   C:\Users\ozneh_000\Documents\Visual Studio 2012\Projects\FFF\FFF\MapLoaderPrivate.obj   FFF

Thanks for all the help guys

5
SFML projects / Re: 'Tiled' Tile-map Loader
« on: October 17, 2013, 03:04:14 am »
I have those added now, but I am getting even more errors.

Quote
Error   36   error LNK1120: 26 unresolved externals   C:\Users\ozneh_000\Documents\Visual Studio 2012\Projects\FFF\Debug\FFF.exe   FFF
Error   28   error LNK2001: unresolved external symbol "public: __thiscall pugi::xml_document::~xml_document(void)" (??1xml_document@pugi@@QAE@XZ)   C:\Users\ozneh_000\Documents\Visual Studio 2012\Projects\FFF\FFF\MapLoaderPublic.obj   FFF
Error   26   error LNK2001: unresolved external symbol "public: __thiscall pugi::xml_document::xml_document(void)" (??0xml_document@pugi@@QAE@XZ)   C:\Users\ozneh_000\Documents\Visual Studio 2012\Projects\FFF\FFF\MapLoaderPublic.obj   FFF
Error   10   error LNK2001: unresolved external symbol "public: __thiscall pugi::xml_node::operator void (__cdecl*)(class pugi::xml_node * * *)(void)const " (??Bxml_node@pugi@@QBEP6AXPAPAPAV01@@ZXZ)   C:\Users\ozneh_000\Documents\Visual Studio 2012\Projects\FFF\FFF\MapLoaderPublic.obj   FFF
Error   22   error LNK2001: unresolved external symbol "public: __thiscall pugi::xml_parse_result::operator bool(void)const " (??Bxml_parse_result@pugi@@QBE_NXZ)   C:\Users\ozneh_000\Documents\Visual Studio 2012\Projects\FFF\FFF\MapLoaderPublic.obj   FFF
Error   12   error LNK2001: unresolved external symbol "public: bool __thiscall pugi::xml_node::operator!(void)const " (??7xml_node@pugi@@QBE_NXZ)   C:\Users\ozneh_000\Documents\Visual Studio 2012\Projects\FFF\FFF\MapLoaderPublic.obj   FFF
Error   24   error LNK2001: unresolved external symbol "public: char const * __thiscall pugi::xml_parse_result::description(void)const " (?description@xml_parse_result@pugi@@QBEPBDXZ)   C:\Users\ozneh_000\Documents\Visual Studio 2012\Projects\FFF\FFF\MapLoaderPublic.obj   FFF
Error   17   error LNK2001: unresolved external symbol "public: class pugi::xml_node __thiscall pugi::xml_node::child(char const *)const " (?child@xml_node@pugi@@QBE?AV12@PBD@Z)   C:\Users\ozneh_000\Documents\Visual Studio 2012\Projects\FFF\FFF\MapLoaderPublic.obj   FFF
Error   14   error LNK2001: unresolved external symbol "public: class pugi::xml_node __thiscall pugi::xml_node::first_child(void)const " (?first_child@xml_node@pugi@@QBE?AV12@XZ)   C:\Users\ozneh_000\Documents\Visual Studio 2012\Projects\FFF\FFF\MapLoaderPublic.obj   FFF
Error   30   error LNK2001: unresolved external symbol "public: struct pugi::xml_parse_result __thiscall pugi::xml_document::load_file(char const *,unsigned int,enum pugi::xml_encoding)" (?load_file@xml_document@pugi@@QAE?AUxml_parse_result@2@PBDIW4xml_encoding@2@@Z)   C:\Users\ozneh_000\Documents\Visual Studio 2012\Projects\FFF\FFF\MapLoaderPublic.obj   FFF
Error   1   error LNK2019: unresolved external symbol "public: __thiscall pugi::xml_attribute::operator void (__cdecl*)(class pugi::xml_attribute * * *)(void)const " (??Bxml_attribute@pugi@@QBEP6AXPAPAPAV01@@ZXZ) referenced in function "private: bool const __thiscall tmx::MapLoader::m_ParseImageLayer(class pugi::xml_node const &)" (?m_ParseImageLayer@MapLoader@tmx@@AAE?B_NABVxml_node@pugi@@@Z)   C:\Users\ozneh_000\Documents\Visual Studio 2012\Projects\FFF\FFF\MapLoaderPrivate.obj   FFF
Error   27   error LNK2019: unresolved external symbol "public: __thiscall pugi::xml_document::~xml_document(void)" (??1xml_document@pugi@@QAE@XZ) referenced in function "private: bool const __thiscall tmx::MapLoader::m_ParseTileSets(class pugi::xml_node const &)" (?m_ParseTileSets@MapLoader@tmx@@AAE?B_NABVxml_node@pugi@@@Z)   C:\Users\ozneh_000\Documents\Visual Studio 2012\Projects\FFF\FFF\MapLoaderPrivate.obj   FFF
Error   25   error LNK2019: unresolved external symbol "public: __thiscall pugi::xml_document::xml_document(void)" (??0xml_document@pugi@@QAE@XZ) referenced in function "private: bool const __thiscall tmx::MapLoader::m_ParseTileSets(class pugi::xml_node const &)" (?m_ParseTileSets@MapLoader@tmx@@AAE?B_NABVxml_node@pugi@@@Z)   C:\Users\ozneh_000\Documents\Visual Studio 2012\Projects\FFF\FFF\MapLoaderPrivate.obj   FFF
Error   9   error LNK2019: unresolved external symbol "public: __thiscall pugi::xml_node::operator void (__cdecl*)(class pugi::xml_node * * *)(void)const " (??Bxml_node@pugi@@QBEP6AXPAPAPAV01@@ZXZ) referenced in function "private: bool const __thiscall tmx::MapLoader::m_ParseImageLayer(class pugi::xml_node const &)" (?m_ParseImageLayer@MapLoader@tmx@@AAE?B_NABVxml_node@pugi@@@Z)   C:\Users\ozneh_000\Documents\Visual Studio 2012\Projects\FFF\FFF\MapLoaderPrivate.obj   FFF
Error   8   error LNK2019: unresolved external symbol "public: __thiscall pugi::xml_node::xml_node(void)" (??0xml_node@pugi@@QAE@XZ) referenced in function "private: bool const __thiscall tmx::MapLoader::m_ParseImageLayer(class pugi::xml_node const &)" (?m_ParseImageLayer@MapLoader@tmx@@AAE?B_NABVxml_node@pugi@@@Z)   C:\Users\ozneh_000\Documents\Visual Studio 2012\Projects\FFF\FFF\MapLoaderPrivate.obj   FFF
Error   21   error LNK2019: unresolved external symbol "public: __thiscall pugi::xml_parse_result::operator bool(void)const " (??Bxml_parse_result@pugi@@QBE_NXZ) referenced in function "private: bool const __thiscall tmx::MapLoader::m_ParseTileSets(class pugi::xml_node const &)" (?m_ParseTileSets@MapLoader@tmx@@AAE?B_NABVxml_node@pugi@@@Z)   C:\Users\ozneh_000\Documents\Visual Studio 2012\Projects\FFF\FFF\MapLoaderPrivate.obj   FFF
Error   7   error LNK2019: unresolved external symbol "public: bool __thiscall pugi::xml_attribute::as_bool(bool)const " (?as_bool@xml_attribute@pugi@@QBE_N_N@Z) referenced in function "private: bool const __thiscall tmx::MapLoader::m_ParseLayer(class pugi::xml_node const &)" (?m_ParseLayer@MapLoader@tmx@@AAE?B_NABVxml_node@pugi@@@Z)   C:\Users\ozneh_000\Documents\Visual Studio 2012\Projects\FFF\FFF\MapLoaderPrivate.obj   FFF
Error   2   error LNK2019: unresolved external symbol "public: bool __thiscall pugi::xml_attribute::operator!(void)const " (??7xml_attribute@pugi@@QBE_NXZ) referenced in function "private: bool const __thiscall tmx::MapLoader::m_ParseImageLayer(class pugi::xml_node const &)" (?m_ParseImageLayer@MapLoader@tmx@@AAE?B_NABVxml_node@pugi@@@Z)   C:\Users\ozneh_000\Documents\Visual Studio 2012\Projects\FFF\FFF\MapLoaderPrivate.obj   FFF
Error   11   error LNK2019: unresolved external symbol "public: bool __thiscall pugi::xml_node::operator!(void)const " (??7xml_node@pugi@@QBE_NXZ) referenced in function "private: bool const __thiscall tmx::MapLoader::m_ParseImageLayer(class pugi::xml_node const &)" (?m_ParseImageLayer@MapLoader@tmx@@AAE?B_NABVxml_node@pugi@@@Z)   C:\Users\ozneh_000\Documents\Visual Studio 2012\Projects\FFF\FFF\MapLoaderPrivate.obj   FFF
Error   3   error LNK2019: unresolved external symbol "public: char const * __thiscall pugi::xml_attribute::as_string(char const *)const " (?as_string@xml_attribute@pugi@@QBEPBDPBD@Z) referenced in function "private: bool const __thiscall tmx::MapLoader::m_ParseImageLayer(class pugi::xml_node const &)" (?m_ParseImageLayer@MapLoader@tmx@@AAE?B_NABVxml_node@pugi@@@Z)   C:\Users\ozneh_000\Documents\Visual Studio 2012\Projects\FFF\FFF\MapLoaderPrivate.obj   FFF
Error   34   error LNK2019: unresolved external symbol "public: char const * __thiscall pugi::xml_node::name(void)const " (?name@xml_node@pugi@@QBEPBDXZ) referenced in function "public: bool const __thiscall tmx::MapLoader::Load(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?Load@MapLoader@tmx@@QAE?B_NABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)   C:\Users\ozneh_000\Documents\Visual Studio 2012\Projects\FFF\FFF\MapLoaderPublic.obj   FFF
Error   23   error LNK2019: unresolved external symbol "public: char const * __thiscall pugi::xml_parse_result::description(void)const " (?description@xml_parse_result@pugi@@QBEPBDXZ) referenced in function "private: bool const __thiscall tmx::MapLoader::m_ParseTileSets(class pugi::xml_node const &)" (?m_ParseTileSets@MapLoader@tmx@@AAE?B_NABVxml_node@pugi@@@Z)   C:\Users\ozneh_000\Documents\Visual Studio 2012\Projects\FFF\FFF\MapLoaderPrivate.obj   FFF
Error   20   error LNK2019: unresolved external symbol "public: char const * __thiscall pugi::xml_text::as_string(char const *)const " (?as_string@xml_text@pugi@@QBEPBDPBD@Z) referenced in function "private: bool const __thiscall tmx::MapLoader::m_ParseLayer(class pugi::xml_node const &)" (?m_ParseLayer@MapLoader@tmx@@AAE?B_NABVxml_node@pugi@@@Z)   C:\Users\ozneh_000\Documents\Visual Studio 2012\Projects\FFF\FFF\MapLoaderPrivate.obj   FFF
Error   18   error LNK2019: unresolved external symbol "public: class pugi::xml_attribute __thiscall pugi::xml_node::attribute(char const *)const " (?attribute@xml_node@pugi@@QBE?AVxml_attribute@2@PBD@Z) referenced in function "private: bool const __thiscall tmx::MapLoader::m_ParseImageLayer(class pugi::xml_node const &)" (?m_ParseImageLayer@MapLoader@tmx@@AAE?B_NABVxml_node@pugi@@@Z)   C:\Users\ozneh_000\Documents\Visual Studio 2012\Projects\FFF\FFF\MapLoaderPrivate.obj   FFF
Error   16   error LNK2019: unresolved external symbol "public: class pugi::xml_node __thiscall pugi::xml_node::child(char const *)const " (?child@xml_node@pugi@@QBE?AV12@PBD@Z) referenced in function "private: bool const __thiscall tmx::MapLoader::m_ParseImageLayer(class pugi::xml_node const &)" (?m_ParseImageLayer@MapLoader@tmx@@AAE?B_NABVxml_node@pugi@@@Z)   C:\Users\ozneh_000\Documents\Visual Studio 2012\Projects\FFF\FFF\MapLoaderPrivate.obj   FFF
Error   13   error LNK2019: unresolved external symbol "public: class pugi::xml_node __thiscall pugi::xml_node::first_child(void)const " (?first_child@xml_node@pugi@@QBE?AV12@XZ) referenced in function "private: bool const __thiscall tmx::MapLoader::m_ParseObjectgroup(class pugi::xml_node const &)" (?m_ParseObjectgroup@MapLoader@tmx@@AAE?B_NABVxml_node@pugi@@@Z)   C:\Users\ozneh_000\Documents\Visual Studio 2012\Projects\FFF\FFF\MapLoaderPrivate.obj   FFF
Error   19   error LNK2019: unresolved external symbol "public: class pugi::xml_node __thiscall pugi::xml_node::next_sibling(char const *)const " (?next_sibling@xml_node@pugi@@QBE?AV12@PBD@Z) referenced in function "private: bool const __thiscall tmx::MapLoader::m_ParseLayer(class pugi::xml_node const &)" (?m_ParseLayer@MapLoader@tmx@@AAE?B_NABVxml_node@pugi@@@Z)   C:\Users\ozneh_000\Documents\Visual Studio 2012\Projects\FFF\FFF\MapLoaderPrivate.obj   FFF
Error   35   error LNK2019: unresolved external symbol "public: class pugi::xml_node __thiscall pugi::xml_node::next_sibling(void)const " (?next_sibling@xml_node@pugi@@QBE?AV12@XZ) referenced in function "public: bool const __thiscall tmx::MapLoader::Load(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?Load@MapLoader@tmx@@QAE?B_NABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)   C:\Users\ozneh_000\Documents\Visual Studio 2012\Projects\FFF\FFF\MapLoaderPublic.obj   FFF
Error   15   error LNK2019: unresolved external symbol "public: class pugi::xml_text __thiscall pugi::xml_node::text(void)const " (?text@xml_node@pugi@@QBE?AVxml_text@2@XZ) referenced in function "private: bool const __thiscall tmx::MapLoader::m_ParseLayer(class pugi::xml_node const &)" (?m_ParseLayer@MapLoader@tmx@@AAE?B_NABVxml_node@pugi@@@Z)   C:\Users\ozneh_000\Documents\Visual Studio 2012\Projects\FFF\FFF\MapLoaderPrivate.obj   FFF
Error   6   error LNK2019: unresolved external symbol "public: float __thiscall pugi::xml_attribute::as_float(float)const " (?as_float@xml_attribute@pugi@@QBEMM@Z) referenced in function "private: bool const __thiscall tmx::MapLoader::m_ParseImageLayer(class pugi::xml_node const &)" (?m_ParseImageLayer@MapLoader@tmx@@AAE?B_NABVxml_node@pugi@@@Z)   C:\Users\ozneh_000\Documents\Visual Studio 2012\Projects\FFF\FFF\MapLoaderPrivate.obj   FFF
Error   4   error LNK2019: unresolved external symbol "public: int __thiscall pugi::xml_attribute::as_int(int)const " (?as_int@xml_attribute@pugi@@QBEHH@Z) referenced in function "private: bool const __thiscall tmx::MapLoader::m_ParseLayer(class pugi::xml_node const &)" (?m_ParseLayer@MapLoader@tmx@@AAE?B_NABVxml_node@pugi@@@Z)   C:\Users\ozneh_000\Documents\Visual Studio 2012\Projects\FFF\FFF\MapLoaderPrivate.obj   FFF
Error   29   error LNK2019: unresolved external symbol "public: struct pugi::xml_parse_result __thiscall pugi::xml_document::load_file(char const *,unsigned int,enum pugi::xml_encoding)" (?load_file@xml_document@pugi@@QAE?AUxml_parse_result@2@PBDIW4xml_encoding@2@@Z) referenced in function "private: bool const __thiscall tmx::MapLoader::m_ParseTileSets(class pugi::xml_node const &)" (?m_ParseTileSets@MapLoader@tmx@@AAE?B_NABVxml_node@pugi@@@Z)   C:\Users\ozneh_000\Documents\Visual Studio 2012\Projects\FFF\FFF\MapLoaderPrivate.obj   FFF
Error   5   error LNK2019: unresolved external symbol "public: unsigned int __thiscall pugi::xml_attribute::as_uint(unsigned int)const " (?as_uint@xml_attribute@pugi@@QBEII@Z) referenced in function "private: bool const __thiscall tmx::MapLoader::m_ProcessTiles(class pugi::xml_node const &)" (?m_ProcessTiles@MapLoader@tmx@@AAE?B_NABVxml_node@pugi@@@Z)   C:\Users\ozneh_000\Documents\Visual Studio 2012\Projects\FFF\FFF\MapLoaderPrivate.obj   FFF
Error   31   error LNK2019: unresolved external symbol _inflate referenced in function "private: bool const __thiscall tmx::MapLoader::m_Decompress(char const *,class std::vector<unsigned char,class std::allocator<unsigned char> > &,int,int)" (?m_Decompress@MapLoader@tmx@@AAE?B_NPBDAAV?$vector@EV?$allocator@E@std@@@std@@HH@Z)   C:\Users\ozneh_000\Documents\Visual Studio 2012\Projects\FFF\FFF\MapLoaderPrivate.obj   FFF
Error   32   error LNK2019: unresolved external symbol _inflateEnd referenced in function "private: bool const __thiscall tmx::MapLoader::m_Decompress(char const *,class std::vector<unsigned char,class std::allocator<unsigned char> > &,int,int)" (?m_Decompress@MapLoader@tmx@@AAE?B_NPBDAAV?$vector@EV?$allocator@E@std@@@std@@HH@Z)   C:\Users\ozneh_000\Documents\Visual Studio 2012\Projects\FFF\FFF\MapLoaderPrivate.obj   FFF
Error   33   error LNK2019: unresolved external symbol _inflateInit2_ referenced in function "private: bool const __thiscall tmx::MapLoader::m_Decompress(char const *,class std::vector<unsigned char,class std::allocator<unsigned char> > &,int,int)" (?m_Decompress@MapLoader@tmx@@AAE?B_NPBDAAV?$vector@EV?$allocator@E@std@@@std@@HH@Z)   C:\Users\ozneh_000\Documents\Visual Studio 2012\Projects\FFF\FFF\MapLoaderPrivate.obj   FFF

Sorry, I know that's a lot.

6
SFML projects / Re: 'Tiled' Tile-map Loader
« on: October 16, 2013, 01:22:17 am »
Hate to bring up an old thread, but I keep getting this error and I can't find the source of it. I have everything linked properly and I've tried adding all of the files to the project. I'm using fallahn's code btw. And it seems that someone else had this problem but their fix didn't fix mine.

Error   2       error LNK2019: unresolved external symbol "public: virtual __thiscall tmx::MapLoader::~MapLoader(void)" (??1MapLoader@tmx@@UAE@XZ) referenced in function _main C:\Users\ozneh_000\Documents\Visual Studio 2012\Projects\FFF\FFF\main.obj       FFF
Error   3       error LNK2019: unresolved external symbol "public: bool const __thiscall tmx::MapLoader::Load(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?Load@MapLoader@tmx@@QAE?B_NABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) referenced in function _main   C:\Users\ozneh_000\Documents\Visual Studio 2012\Projects\FFF\FFF\main.obj       FFF
Error   4       error LNK2019: unresolved external symbol "public: void __thiscall tmx::MapLoader::Draw(class sf::RenderTarget &,enum tmx::MapLayer::DrawType)" (?Draw@MapLoader@tmx@@QAEXAAVRenderTarget@sf@@W4DrawType@MapLayer@2@@Z) referenced in function _main    C:\Users\ozneh_000\Documents\Visual Studio 2012\Projects\FFF\FFF\main.obj       FFF
Error   5       error LNK1120: 4 unresolved externals   C:\Users\ozneh_000\Documents\Visual Studio 2012\Projects\FFF\Debug\FFF.exe      1       1       FFF
 


Pages: [1]
anything