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

Pages: [1] 2
1
General discussions / Switching to CMake
« on: June 24, 2010, 02:21:38 am »
Hi,

I have sadly seen many libraries for game development that were not updated for Visual C++ 2010 and that the automatic converter did not work on. However, with CMake, I have been able to update these older libraries for my compiler with no problems at all!
SFML, unfortunately, has the inability to work with Visual C++ 2010 Properly even though the converter does work on it.  I genuinely believe CMake support could fix this problem. I hope to see it in the next edition of SFML.

2
Feature requests / CMake
« on: June 23, 2010, 11:49:07 pm »
I would find it easier to use and build SFML if it had CMake Support for different IDE's/Compilers, considering I already had a bad experience with my Compiler and SFML (which CMake could have solved more quickly than what I did in the end), I would find it very helpful to have in the future.

3
General / Weird thing with Visual Studio
« on: June 22, 2010, 06:13:37 pm »
I followed the video, refreshed the linker and moved the new .dll's in but could not fix the problem. I also rebuilt the game.

4
General / Weird thing with Visual Studio
« on: June 16, 2010, 03:12:30 am »
I did link to the Debug versions for the Debug but did not (re)build the library for VC++2010. I used the Build folder to convert it, but am not sure what to replace or even if I really updated it. I also took note of the fact that every time I run the Debug Config the project rebuilds itself even if I just built it in the same config.

5
General / Weird thing with Visual Studio
« on: June 15, 2010, 03:16:38 am »
W00-H00! I got it to compile in both configurations! But it won't run. Debug says:
Quote
This Application has failed to start because the Application configuration is incorrect. Review the manifest file for possible errors. Reinstalling the Application may fix the problem (yea right :roll:).For more details, please see the application event log
That's with Debug on. Off, the thing just crashes.
Here's release:
Quote
Unhandled exception at 0x766c1ca4 in Simple Rogue.exe: 0xC0000005: Access violation reading location 0x00000002.
Break              Continue               Ignore

I am forced to break, and here's the odd line of code in some .c file causing problems:
Code: [Select]
 if (__native_startup_state == __initializing)
            {
                _initterm( __xc_a, __xc_z );//this one
                __native_startup_state = __initialized;
            }

I know this is sort of off-topic, but I need it to run my game! If anyone knows anything about this stuff, i would greatly appreciate it... (and probably stop complaining about Visual Studio on this Forum) :(

6
General / Weird thing with Visual Studio
« on: June 14, 2010, 10:46:49 pm »
I got this error when I was compiling SFML with Visual Studio, as both Debug and release, with the proper linking done and SFML_DYNAMIC added. I am using the Graphics and System Packages, but neither use nor link to the Window Package. here it is:
Code: [Select]
1>------ Build started: Project: Simple Rogue, Configuration: Release Win32 ------
1>  Floor.cpp
1>  Levels.cpp
1>C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\SFML/Window/Window.hpp(321): error C2248: 'sf::NonCopyable::NonCopyable' : cannot access private member declared in class 'sf::NonCopyable'
1>          C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\SFML/System/NonCopyable.hpp(57) : see declaration of 'sf::NonCopyable::NonCopyable'
1>          C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\SFML/System/NonCopyable.hpp(41) : see declaration of 'sf::NonCopyable'
1>          This diagnostic occurred in the compiler generated function 'sf::Window::Window(const sf::Window &)'
1>  Monster.cpp
1>  Player.cpp
1>  Simple Rogue.cpp
1>  Wall.cpp
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Thanks in advance.

7
General / Text Box Input
« on: June 14, 2010, 02:01:50 am »
Hi, I want to know if there is a way to get text input in a manner similar to std::cin on a SFML window, in that there is a white box and as the player enters letters of a string, it shows them as they type, and when the player hits enter or another key it is saved as a string (either std, c-style or sf) for use later. I know how to do this with integration, but I would like to do it with raw SFML. Thanks!

8
Graphics / Trying to write a program where you move a square...
« on: June 10, 2010, 11:01:46 pm »
Anyone? I still can't fix it. :oops:

9
General / Checking if something is near you with SFML
« on: June 06, 2010, 10:23:47 pm »
I am writing a Rougelike Game in C++ with SFML and want to know how to make it so that the game checks what object is up to 20 pixels above/below or 13 pixels left/right of you. Any code or advice would be greatly appreciated.

10
Graphics / Trying to write a program where you move a square...
« on: June 04, 2010, 01:25:46 am »
It gives an error when I run w/ debugging:
Quote
This Application has failed to start because the application configuration is incorrect. Review the manifest file for possible errors. Reinstalling the application may fix this problem. For more details, please see the application event log.

Where is the event log?

11
Graphics / Trying to write a program where you move a square...
« on: June 03, 2010, 11:19:24 pm »
Well, I got it to compile now  :) . But now, it crashes when I try to run it. I put the .dll's in the folder (system, graphics and window) and it  still crashed. So I replaced the linking with the -d versions of the .dll's and also replaced the .dll's. It now won't even start. How do I fix this? :oops:

12
Graphics / Trying to write a program where you move a square...
« on: June 03, 2010, 12:40:56 am »
I am trying to write a simple program where you move a square around the screen. However, i got the following error when I tried to build it:
Code: [Select]
1>------ Build started: Project: Move the Square!!!, Configuration: Debug Win32 ------
1>  Move the Square!!!.cpp
1>MSVCRTD.lib(cinitexe.obj) : warning LNK4098: defaultlib 'msvcrt.lib' conflicts with use of other libs; use /NODEFAULTLIB:library
1>Move the Square!!!.obj : error LNK2001: unresolved external symbol "public: static class sf::Color const sf::Color::Red" (?Red@Color@sf@@2V12@B)
1>C:\Users\Gio\Desktop\Documents\C++ Programs\2D & 3D Games\Move the Square!!!\Debug\Move the Square!!!.exe : fatal error LNK1120: 1 unresolved externals
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

How can i fix this? I will give the code if needed.

13
General / Collision Detection
« on: June 02, 2010, 12:17:46 am »
Im trying to write a Roguelike Game for my first SFML project and want to know if it is possible to use collision detection. If so, how? If not, are there any 2D physics engine/libraries that this can be integrated with? thanks!

14
Window / Window Tutorial Troubles
« on: May 26, 2010, 02:15:39 am »
It compiled fine. I tried replacing the code with the OpenGL tutorial code, however, (to save adding dependencies) but got another problem, even with the 3 dependencies added.
Build Message:
Code: [Select]
1>------ Build started: Project: SFML Test2, Configuration: Debug Win32 ------
1>  SFML Test2.cpp
1>MSVCRTD.lib(cinitexe.obj) : warning LNK4098: defaultlib 'msvcrt.lib' conflicts with use of other libs; use /NODEFAULTLIB:library
1>SFML Test2.obj : error LNK2019: unresolved external symbol __imp__glEnd@0 referenced in function _main
1>SFML Test2.obj : error LNK2019: unresolved external symbol __imp__glVertex3f@12 referenced in function _main
1>SFML Test2.obj : error LNK2019: unresolved external symbol __imp__glBegin@4 referenced in function _main
1>SFML Test2.obj : error LNK2019: unresolved external symbol __imp__glRotatef@16 referenced in function _main
1>SFML Test2.obj : error LNK2019: unresolved external symbol __imp__glTranslatef@12 referenced in function _main
1>SFML Test2.obj : error LNK2019: unresolved external symbol __imp__glClear@4 referenced in function _main
1>SFML Test2.obj : error LNK2019: unresolved external symbol __imp__glViewport@16 referenced in function _main
1>SFML Test2.obj : error LNK2019: unresolved external symbol _gluPerspective@32 referenced in function _main
1>SFML Test2.obj : error LNK2019: unresolved external symbol __imp__glLoadIdentity@0 referenced in function _main
1>SFML Test2.obj : error LNK2019: unresolved external symbol __imp__glMatrixMode@4 referenced in function _main
1>SFML Test2.obj : error LNK2019: unresolved external symbol __imp__glDepthMask@4 referenced in function _main
1>SFML Test2.obj : error LNK2019: unresolved external symbol __imp__glEnable@4 referenced in function _main
1>SFML Test2.obj : error LNK2019: unresolved external symbol __imp__glClearColor@16 referenced in function _main
1>SFML Test2.obj : error LNK2019: unresolved external symbol __imp__glClearDepth@8 referenced in function _main
1>C:\Users\Gio\Desktop\Documents\C++ Programs\Tests\SFML Test2\Debug\SFML Test2.exe : fatal error LNK1120: 14 unresolved externals
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

I am sorry for the inconvenience. :?

15
General / Using SFML with Windows API
« on: May 26, 2010, 01:53:23 am »
I aim to create a 2D game with SFML, but I want to write some elements, mainly buttons, in the Windows API GUI design framework. Will the 2 work together? If so, how? Do I insert the SFML content in an API-made Window or vice versa, or something else entirely? Any info would be greatly appreciated.

Pages: [1] 2