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

Pages: [1]
1
SFML wiki / Re: Game Engine tutorial
« on: July 07, 2012, 05:07:08 am »
@GatorQue

Thanks for the quick response! That was incredibly helpful and much more thorough than anything else I found, I was able to get it working, and once I actually did everything correctly, it worked impressively well. Thanks again and great work with GQP, just, perhaps consider copying that post to the project's page. It's also probably worth making it explicitly clear that dependencies are set in in the cmake options file in the following format
Quote
set(MYAPP_DEPS SFML GQE)
maybe by making them the default  in the skeleton project, or leaving a comment explicitly showing the format. I was a bit thrown off by this because I was expecting to pass a comma separated list of values, or a statement for each dependency, or something similar.

Now I've just got to modify my code to use the new Asset Manager, and start looking into what the Entity Module does  8)

2
SFML wiki / Re: Game Engine tutorial
« on: July 06, 2012, 04:01:48 pm »
@GatorQue

Does the latest version of GQP (0.11.1 currently) support the SFML 2 RC?
Also, will there be any more documentation or tutorials coming? I have been trying literally for months to use your engine, but without any knowledge of CMake, or much of anything outside of Visual Studio, I've only ever been able to get a single project to compile and link to GQE, and I can only do it in debug mode, and I had to remove large portions of the engine to do it.

Even after seeking out general tutorials for CMake, I can't seem to find the information I need to make things work. I really hoped GQP would be the answer to my problems, but despite following the limited instructions to the best of my ability, I just get a wall of CMake errors I don't understand.

There's a really odd discrepancy in how everything seems to aimed at beginners and simplifying the process, while the actual execution and documentation seems to be aimed at people who know exactly what's going on, what everything is, and how everything SHOULD look if configured correctly, and GQP is just a time-saver for them.

For instance from the GQP readme
Quote
Step 3: Open up the Options.cmake file in this new folder and adjust the
project settings to your liking. Don't forget to enable the project to be
built! This includes specifying the 3rd party/external libraries you need and
their find_package modules you require. The name of the dependencies is the
same name as the folder found in the 3rdparty folder (except all in caps).

Nowhere in the project are any examples of what these statements might look like, even in the "example project" folder, there's nothing specified. Its just assumed the user is already familiar with CMake.

Despite the trouble I've had, I have to say I really do like the engine, it's worked really well where I've gotten it to work, I just need a bit more hand-holding to get things setup.

3
System / sf::Vector3i not working in std::pair?
« on: February 19, 2012, 12:59:44 am »
Thanks! Got it working now :)

4
System / sf::Vector3i not working in std::pair?
« on: February 18, 2012, 05:33:35 am »
I'm receiving this error:
Quote
Error   1   error C2678: binary '<' : no operator found which takes a left-hand operand of type 'const sf::Vector3i' (or there is no acceptable conversion)   c:\program files (x86)\microsoft visual studio 10.0\vc\include\xfunctional   125


The only place in my game I'm using a const Vector3i (and non-coincidentally the place I was working on when this error was introduced) is in a TileManager class, subclassed from a Templated ResourceManager

Code: [Select]

//Shortcut for string & Tile reference & location
typedef std::pair<sf::Vector3i, Tile&> TileInfo;

class TileManager : public sftools::ResourceManager<Tile, TileInfo, sf::Vector3i>
{
public:
const sf::Vector3i& Load(const TileInfo& locator)
{
// Add the Texture to the manager
Add(locator.first, locator.second);
// Return the XYZ location
return locator.first;
}
};


The ResourceManger base class I'm deriving TileManager from is this one from the wiki.

If anyone knows what could be causing the error, I would appreciate any help you could give

5
General / SFML 2 quit linking? VS2010
« on: February 16, 2012, 04:42:53 pm »
Wow, ok, I feel rather stupid now.

I was following the SFML Coder tutorial, just incorrectly. All of the files being in the same folder (the one you point VS to for a library directory) isn't the problem, I just forgot to go into Linker->Input and specify the additional dependencies .

6
General / SFML 2 quit linking? VS2010
« on: February 16, 2012, 03:56:22 pm »

7
General / SFML 2 quit linking? VS2010
« on: February 16, 2012, 03:15:11 pm »
I downloaded the latest 2.0 snapshot last night, 'g091fbd9' and built it to be sure it wasn't a problem with my previous build.

8
General / SFML 2 quit linking? VS2010
« on: February 16, 2012, 02:59:24 pm »
I'm having the same problem mentioned in this thread.
http://www.sfml-dev.org/forum/viewtopic.php?t=6070&sid=a4a891e0460aa401ef1d25e9f31af37b

I tried to implement this resource managers from the wiki, and ever since it stopped linking.
http://www.sfml-dev.org/wiki/en/sources/resource_manager_hiura

my exact build output is:
Code: [Select]
1>------ Build started: Project: Meatlocker, Configuration: Debug Win32 ------
1>Build started 2/16/2012 8:56:11 AM.
1>InitializeBuildStatus:
1>  Touching "Debug\Meatlocker.unsuccessfulbuild".
1>ClCompile:
1>  All outputs are up-to-date.
1>CommandMenu.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall sf::RectangleShape::~RectangleShape(void)" (__imp_??1RectangleShape@sf@@UAE@XZ) referenced in function __unwindfunclet$??0CommandMenu@@QAE@H@Z$0
1>CommandMenu.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall sf::Shape::SetOutlineThickness(float)" (__imp_?SetOutlineThickness@Shape@sf@@QAEXM@Z) referenced in function "public: __thiscall CommandMenu::CommandMenu(int)" (??0CommandMenu@@QAE@H@Z)
1>CommandMenu.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall sf::Shape::SetOutlineColor(class sf::Color const &)" (__imp_?SetOutlineColor@Shape@sf@@QAEXABVColor@2@@Z) referenced in function "public: __thiscall CommandMenu::CommandMenu(int)" (??0CommandMenu@@QAE@H@Z)
1>CommandMenu.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall sf::Shape::SetFillColor(class sf::Color const &)" (__imp_?SetFillColor@Shape@sf@@QAEXABVColor@2@@Z) referenced in function "public: __thiscall CommandMenu::CommandMenu(int)" (??0CommandMenu@@QAE@H@Z)
1>CommandMenu.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall sf::Color::Color(unsigned char,unsigned char,unsigned char,unsigned char)" (__imp_??0Color@sf@@QAE@EEEE@Z) referenced in function "public: __thiscall CommandMenu::CommandMenu(int)" (??0CommandMenu@@QAE@H@Z)
1>Engine.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall sf::Color::Color(unsigned char,unsigned char,unsigned char,unsigned char)" (__imp_??0Color@sf@@QAE@EEEE@Z)
1>CommandMenu.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall sf::RectangleShape::SetSize(class sf::Vector2<float> const &)" (__imp_?SetSize@RectangleShape@sf@@QAEXABV?$Vector2@M@2@@Z) referenced in function "public: __thiscall CommandMenu::CommandMenu(int)" (??0CommandMenu@@QAE@H@Z)
1>CommandMenu.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall sf::RectangleShape::RectangleShape(class sf::Vector2<float> const &)" (__imp_??0RectangleShape@sf@@QAE@ABV?$Vector2@M@1@@Z) referenced in function "public: __thiscall CommandMenu::CommandMenu(int)" (??0CommandMenu@@QAE@H@Z)
1>Engine.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall sf::View::View(void)" (__imp_??0View@sf@@QAE@XZ) referenced in function "public: __thiscall Engine::Engine(int,int,int)" (??0Engine@@QAE@HHH@Z)
1>Engine.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class sf::View const & __thiscall sf::RenderTarget::GetDefaultView(void)const " (__imp_?GetDefaultView@RenderTarget@sf@@QBEABVView@2@XZ) referenced in function "private: bool __thiscall Engine::Init(void)" (?Init@Engine@@AAE_NXZ)
1>Engine.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall sf::RenderWindow::RenderWindow(class sf::VideoMode,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,unsigned int,struct sf::ContextSettings const &)" (__imp_??0RenderWindow@sf@@QAE@VVideoMode@1@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@IABUContextSettings@1@@Z) referenced in function "private: bool __thiscall Engine::Init(void)" (?Init@Engine@@AAE_NXZ)
1>Engine.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static class sf::VideoMode __cdecl sf::VideoMode::GetDesktopMode(void)" (__imp_?GetDesktopMode@VideoMode@sf@@SA?AV12@XZ) referenced in function "private: bool __thiscall Engine::Init(void)" (?Init@Engine@@AAE_NXZ)
1>Engine.obj : error LNK2001: unresolved external symbol "private: virtual void __thiscall sf::RenderWindow::OnCreate(void)" (?OnCreate@RenderWindow@sf@@EAEXXZ)
1>Engine.obj : error LNK2001: unresolved external symbol "private: virtual void __thiscall sf::RenderWindow::OnResize(void)" (?OnResize@RenderWindow@sf@@EAEXXZ)
1>Engine.obj : error LNK2001: unresolved external symbol "public: virtual unsigned int __thiscall sf::RenderWindow::GetWidth(void)const " (?GetWidth@RenderWindow@sf@@UBEIXZ)
1>Engine.obj : error LNK2001: unresolved external symbol "public: virtual unsigned int __thiscall sf::RenderWindow::GetHeight(void)const " (?GetHeight@RenderWindow@sf@@UBEIXZ)
1>Engine.obj : error LNK2001: unresolved external symbol "private: virtual bool __thiscall sf::RenderWindow::Activate(bool)" (?Activate@RenderWindow@sf@@EAE_N_N@Z)
1>Engine.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall sf::RenderWindow::~RenderWindow(void)" (__imp_??1RenderWindow@sf@@UAE@XZ) referenced in function "public: virtual void * __thiscall sf::RenderWindow::`scalar deleting destructor'(unsigned int)" (??_GRenderWindow@sf@@UAEPAXI@Z)
1>Engine.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall sf::RenderTexture::~RenderTexture(void)" (__imp_??1RenderTexture@sf@@UAE@XZ) referenced in function "private: void __thiscall Engine::RenderFrame(void)" (?RenderFrame@Engine@@AAEXXZ)
1>Engine.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall sf::Window::Display(void)" (__imp_?Display@Window@sf@@QAEXXZ) referenced in function "private: void __thiscall Engine::RenderFrame(void)" (?RenderFrame@Engine@@AAEXXZ)
1>Engine.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall sf::RenderTarget::Draw(class sf::Drawable const &,class sf::RenderStates const &)" (__imp_?Draw@RenderTarget@sf@@QAEXABVDrawable@2@ABVRenderStates@2@@Z) referenced in function "private: void __thiscall Engine::RenderFrame(void)" (?RenderFrame@Engine@@AAEXXZ)
1>Tile.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall sf::RenderTarget::Draw(class sf::Drawable const &,class sf::RenderStates const &)" (__imp_?Draw@RenderTarget@sf@@QAEXABVDrawable@2@ABVRenderStates@2@@Z)
1>Engine.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static class sf::RenderStates const sf::RenderStates::Default" (__imp_?Default@RenderStates@sf@@2V12@B)
1>Tile.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static class sf::RenderStates const sf::RenderStates::Default" (__imp_?Default@RenderStates@sf@@2V12@B)
1>Engine.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall sf::RenderTexture::RenderTexture(void)" (__imp_??0RenderTexture@sf@@QAE@XZ) referenced in function "private: void __thiscall Engine::RenderFrame(void)" (?RenderFrame@Engine@@AAEXXZ)
1>Engine.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall sf::RenderTarget::SetView(class sf::View const &)" (__imp_?SetView@RenderTarget@sf@@QAEXABVView@2@@Z) referenced in function "private: void __thiscall Engine::RenderFrame(void)" (?RenderFrame@Engine@@AAEXXZ)
1>Engine.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall sf::RenderTarget::Clear(class sf::Color const &)" (__imp_?Clear@RenderTarget@sf@@QAEXABVColor@2@@Z) referenced in function "private: void __thiscall Engine::RenderFrame(void)" (?RenderFrame@Engine@@AAEXXZ)
1>Engine.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall sf::Window::Close(void)" (__imp_?Close@Window@sf@@QAEXXZ) referenced in function "private: void __thiscall Engine::ProcessInput(void)" (?ProcessInput@Engine@@AAEXXZ)
1>Engine.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: bool __thiscall sf::Window::PollEvent(class sf::Event &)" (__imp_?PollEvent@Window@sf@@QAE_NAAVEvent@2@@Z) referenced in function "private: void __thiscall Engine::ProcessInput(void)" (?ProcessInput@Engine@@AAEXXZ)
1>Engine.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: bool __thiscall sf::Window::IsOpen(void)const " (__imp_?IsOpen@Window@sf@@QBE_NXZ) referenced in function "private: void __thiscall Engine::MainLoop(void)" (?MainLoop@Engine@@AAEXXZ)
1>Engine.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall sf::Image::~Image(void)" (__imp_??1Image@sf@@QAE@XZ) referenced in function "public: void __thiscall Engine::LoadTileset(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >)" (?LoadTileset@Engine@@QAEXV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
1>WorldArea.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall sf::Image::~Image(void)" (__imp_??1Image@sf@@QAE@XZ)
1>Engine.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall sf::Texture::~Texture(void)" (__imp_??1Texture@sf@@QAE@XZ) referenced in function "public: void __thiscall Engine::LoadTileset(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >)" (?LoadTileset@Engine@@QAEXV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
1>Engine.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: bool __thiscall sf::Texture::Create(unsigned int,unsigned int)" (__imp_?Create@Texture@sf@@QAE_NII@Z) referenced in function "public: void __thiscall Engine::LoadTileset(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >)" (?LoadTileset@Engine@@QAEXV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
1>Engine.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall sf::Texture::Texture(void)" (__imp_??0Texture@sf@@QAE@XZ) referenced in function "public: void __thiscall Engine::LoadTileset(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >)" (?LoadTileset@Engine@@QAEXV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
1>Engine.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: bool __thiscall sf::Image::LoadFromFile(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (__imp_?LoadFromFile@Image@sf@@QAE_NABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) referenced in function "public: void __thiscall Engine::LoadTileset(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >)" (?LoadTileset@Engine@@QAEXV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
1>Engine.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall sf::Image::Image(void)" (__imp_??0Image@sf@@QAE@XZ) referenced in function "public: void __thiscall Engine::LoadTileset(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >)" (?LoadTileset@Engine@@QAEXV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
1>WorldArea.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall sf::Image::Image(void)" (__imp_??0Image@sf@@QAE@XZ)
1>Engine.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall sf::View::Move(float,float)" (__imp_?Move@View@sf@@QAEXMM@Z) referenced in function "private: void __thiscall Engine::MoveDefaultView(float,float)" (?MoveDefaultView@Engine@@AAEXMM@Z)
1>Engine.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall sf::View::Zoom(float)" (__imp_?Zoom@View@sf@@QAEXM@Z) referenced in function "private: void __thiscall Engine::ZoomDefaultView(float)" (?ZoomDefaultView@Engine@@AAEXM@Z)
1>WorldArea.obj : error LNK2019: unresolved external symbol "public: void __thiscall WorldArea::SetDimensions(int,int)" (?SetDimensions@WorldArea@@QAEXHH@Z) referenced in function "public: void __thiscall WorldArea::LoadWorldArea(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >)" (?LoadWorldArea@WorldArea@@QAEXV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
1>Tile.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall sf::Sprite::~Sprite(void)" (__imp_??1Sprite@sf@@UAE@XZ) referenced in function __unwindfunclet$??0Tile@@QAE@AAVTexture@sf@@@Z$0
1>Tile.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall sf::Sprite::SetTexture(class sf::Texture const &,bool)" (__imp_?SetTexture@Sprite@sf@@QAEXABVTexture@2@_N@Z) referenced in function "public: __thiscall Tile::Tile(class sf::Texture &)" (??0Tile@@QAE@AAVTexture@sf@@@Z)
1>Tile.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall sf::Sprite::Sprite(void)" (__imp_??0Sprite@sf@@QAE@XZ) referenced in function "public: __thiscall Tile::Tile(class sf::Texture &)" (??0Tile@@QAE@AAVTexture@sf@@@Z)
1>Tile.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall sf::Transformable::SetPosition(float,float)" (__imp_?SetPosition@Transformable@sf@@QAEXMM@Z) referenced in function "public: void __thiscall Tile::Draw(class sf::RenderTexture *)" (?Draw@Tile@@QAEXPAVRenderTexture@sf@@@Z)
1>C:\Users\Eric\Documents\Dropbox\Programming\C++\Source\Meatlocker\Debug\Meatlocker.exe : fatal error LNK1120: 40 unresolved externals
1>
1>Build FAILED.
1>
1>Time Elapsed 00:00:03.01
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========


If anyone has any suggestions, or knows what's causing this, your help would be very much appreciated.

Thanks!

9
Graphics / SFML 2.0 sf::View::Move not accepting parameters
« on: February 13, 2012, 07:26:57 pm »
Ah, ok, thanks for the fast reply! It's working great now. By the way, I wanted to say thanks for all your hard work on SFML, it's a great library, keep up the good work :D

10
Graphics / SFML 2.0 sf::View::Move not accepting parameters
« on: February 13, 2012, 07:02:11 pm »
Hello all!

I just downloaded and built the latest version of SFML 2.0 this morning (Version - 196-ge3d75f6) on 32bit Windows XP, and now sf::View::Move is not accepting an sf::Vector2f. Below is the offending code, where window is a sf::RenderWindow, and viewMoveSpeed and tileSize are ints:

Code: [Select]

sf::Vector2f offset(0, (viewMoveSpeed * tileSize));
window->GetDefaultView().Move(offset);


Am I missing something here, or could this be a recently introduced bug?

Thanks for you time!  :D

Pages: [1]
anything