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

Pages: [1]
1
I greatly understand why you link to tutorials and everything. I also am saying though that you don't have to get angry or annoyed at a question. That doesn't give a very nice community feel. I asked a question and instead you link me to something that I have already looked at. I don't post on a forum if I haven't already looked at things. I simply made a mistake that as a new sfml user didn't understand but clearly binary1248 did but instead of giving me an answer just sends me to look at what I already did. You shouldn't get annoyed for a person asking a question.

Thanks for your help, I'll make sure I just aimlessly click through the wiki and documentation so I don't bother anyone with questions.

2
Sorry my lack of expertise has annoyed you. I was just trying to get an understanding of what the problem was. I figured it out though.

On an other note, to get it to run I had to copy sfml-graphics-d-2.dll to my output folder. Should I have to do that?

3
Yeah I tried cleaning and rebuilding it and it still gave me those errors.

4
I already followed the tutorial and have looked at everything. It still does not explain to me anything as to why that error has happened.

5
General / Linking errors in newly built sfml project for visual studio 2013
« on: December 06, 2013, 07:00:39 am »
Hi so I just built SFML in cmake for visual studio 2013x64. Now When I try to build and everything I get this error.

Code: [Select]
1>------ Build started: Project: sfml_test, Configuration: Debug x64 ------
1>  Microsoft (R) C/C++ Optimizing Compiler Version 18.00.21005.1 for x64
1>  Copyright (C) Microsoft Corporation.  All rights reserved.
1> 
1>  cl /c /IC:\Users\Max\Sandbox\sfml_two\include /Zi /W3 /WX- /sdl /Od /D _MBCS /Gm /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Fo"x64\Debug\\" /Fd"x64\Debug\vc120.pdb" /Gd /TP /errorReport:prompt main.cpp
1> 
1>  Skipping... (no relevant changes detected)
1>  main.cpp
1>  Microsoft (R) Incremental Linker Version 12.00.21005.1
1>  Copyright (C) Microsoft Corporation.  All rights reserved.
1> 
1>  "/OUT:c:\users\max\documents\visual studio 2013\Projects\sfml_test\x64\Debug\sfml_test.exe" /INCREMENTAL "/LIBPATH:C:\Users\Max\Sandbox\sfml-build-two\lib\Debug" "sfml-graphics-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 /MANIFEST "/MANIFESTUAC:level='asInvoker' uiAccess='false'" /manifest:embed /DEBUG "/PDB:c:\users\max\documents\visual studio 2013\Projects\sfml_test\x64\Debug\sfml_test.pdb" /TLBID:1 /DYNAMICBASE /NXCOMPAT "/IMPLIB:c:\users\max\documents\visual studio 2013\Projects\sfml_test\x64\Debug\sfml_test.lib" /MACHINE:X64 x64\Debug\main.obj
1>main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __cdecl sf::String::String(char const *,class std::locale const &)" (__imp_??0String@sf@@QEAA@PEBDAEBVlocale@std@@@Z) referenced in function main
1>main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __cdecl sf::String::~String(void)" (__imp_??1String@sf@@QEAA@XZ) referenced in function main
1>main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __cdecl sf::VideoMode::VideoMode(unsigned int,unsigned int,unsigned int)" (__imp_??0VideoMode@sf@@QEAA@III@Z) referenced in function main
1>main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __cdecl sf::Window::close(void)" (__imp_?close@Window@sf@@QEAAXXZ) referenced in function main
1>main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: bool __cdecl sf::Window::isOpen(void)const " (__imp_?isOpen@Window@sf@@QEBA_NXZ) referenced in function main
1>main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: bool __cdecl sf::Window::pollEvent(class sf::Event &)" (__imp_?pollEvent@Window@sf@@QEAA_NAEAVEvent@2@@Z) referenced in function main
1>main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __cdecl sf::Window::display(void)" (__imp_?display@Window@sf@@QEAAXXZ) referenced in function main
1>c:\users\max\documents\visual studio 2013\Projects\sfml_test\x64\Debug\sfml_test.exe : fatal error LNK1120: 7 unresolved externals
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

I have never seen something like this so I'm a bit confused as to what it is. Any help would be great.

6
SFML projects / Re: 'Tiled' Tile-map Loader
« on: February 24, 2013, 05:12:59 pm »
This may be a stupid question but SetDrawingBounds does that limit the tilemap to only be drawn on those specific sections of the tilemap itself or with regards to how it is drawn on the screen?

7
SFML projects / Re: 'Tiled' Tile-map Loader
« on: February 23, 2013, 04:05:23 am »
How would you use the 2.0 version with an sf::View. Is that the best way to do it for something involving a 2d platforming game with a player moving?

8
Graphics / Trying to load tilemap in .tmx format
« on: February 22, 2013, 09:00:11 pm »
Hi all,

So I am trying to load my tilemap from tiled using the loader created here for SFML 2.0 found in this topic http://en.sfml-dev.org/forums/index.php?topic=3023.msg62106#msg62106.

My problem is that it appears to work but when I run it I get this in my window:


. It gives me that blue at the top which makes me think it is loading but I'm not sure at all.
 
here is my main.cpp
#include<SFML/Graphics.hpp>
#include "ResourcePath.hpp"
#include<iostream>
#include<fstream>

#include<string>
#include<vector>
#include<sstream>
#include "TmxLoader.h"

#define ScreenWidth 800
#define ScreenHeight 600

#define BLOCKSIZE 40
int main()
{
    sf::RenderWindow Window(sf::VideoMode(ScreenWidth, ScreenHeight, 32), "SFML Made Easy");
    bool play = true;
    sf::Event event;
   
    //LoadMap("/Users/maxmarze/Dropbox/sfml/Udemy/Udemy/Map1.txt");
    sf::View myView;
    myView.setSize(sf::Vector2f(1000, 1000));
    myView.setCenter(400, 300);
   
    tmx::TileMap myMap;
   
    myMap.LoadFromFile("level One_one.tmx", "/Users/maxmarze/Dropbox/sfml/Udemy/Udemy/tile_maps/");
    myMap.SetDrawingBounds(myView.getViewport());
   
    while(play == true)
    {
        while(Window.pollEvent(event))
        {
            if(event.type == sf::Event::Closed)
            {
                play = false;
            }
        }
       
        Window.clear();
      //  DrawMap(Window);
        myMap.Draw(Window);
        Window.display();
       
       
    }
   
    Window.close();
    return 0;
}

And the loader code is just in the above link. My tile map is 800*800 pixels so I don't understand why it would not be loading on the full screen. Anyone have any idea?

Pages: [1]
anything