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

Pages: [1] 2 3 ... 12
SFML projects / Mappy tilemap engine playback library port for SFML
« on: January 20, 2012, 08:32:52 pm »
You have to use pointers if types are (directly or indirectly) recursive

Oh that makes a lot more sense!! :D Thanks!

you can use smart pointers

I've researched these, but I don't quite understand them... What is the purpose of these things besides memory management?

SFML projects / Mappy tilemap engine playback library port for SFML
« on: January 20, 2012, 08:22:46 pm »
I thought if you declared something that had parameters from the class declaration you had to make it a pointer. :o

SFML projects / Mappy tilemap engine playback library port for SFML
« on: January 19, 2012, 11:18:08 pm »
Hahaha. I figured this one out. I feel stupid.

I had:

Code: [Select]
class Map
    SFMLMappy *map;

But then I forgot to say:
Code: [Select]
map = new SFMLMappy();

Hahaha. Stupid me.

SFML projects / Mappy tilemap engine playback library port for SFML
« on: January 19, 2012, 09:04:00 pm »
I downloaded the zip with the sample code and the header and cpp file and I added them to my project, etc. When I try to run the program my debugger breaks at all of the points in the SFMLMappy::LoadMap() where it tries to edit the boolean entitled map_error. Whether it's going to true or false... it throws an exception.

Unhandled exception at 0x013caeab in App.exe: 0xC0000005: Access violation writing location 0xcdcdce31.

General / Linking Error
« on: August 09, 2011, 08:04:46 am »
Wow! That was the problem. System32 was holding DLLs I used in Code::Blocks and Netbeans. Lol. Thanks so much! I've been trying to set up and get libRocket and SFML for a few days.

General / Linking Error
« on: August 08, 2011, 11:36:09 pm »
Oh excuse me. The include files are setup for MinGW:
MinGW > include > SFML

I'm pretty sure that the only DLL's I have are inside of the SFML folder and then inside of the System32.
I copied from the SFML folder to System32. (Should I have moved them instead?)

EDIT: I looked again and I do have DLLs inside of:
MinGW > lib

General / Linking Error
« on: August 08, 2011, 11:19:47 pm »
I have another SFML that I have set up for MinGW, but I'm pretty sure VS doesn't use MinGW. I also have the repository for SFML 2.0, but I haven't done anything with it.

General / Linking Error
« on: August 08, 2011, 10:44:43 pm »
I just tried the sample program you have in the tutorial. The one that runs the sf::Clock and I got the same error, but with Clock instead of Image.

General / Linking Error
« on: August 08, 2011, 10:27:02 pm »
Yes sir I can. :)

libRocket came with a VS solution, so I opened that up in VS2008.
Tried to compile it, but SFML wasn't installed yet. Stupid me.
I went to this site, downloaded the SDK for VS2008 and followed the tutorial exactly.
I linked the libraries and the include folder into the IDE options and then I put the DLL's in System32, so I don't have to worry about it. Then I went to the project options and did the linking to the specific libraries.
As I said earlier. I have tried the release versions, the -d and the -s versions.

After I got those linked I added the SFML_DYNAMIC to the preprocessor options. Then I went back and linked the libRocket libraries and includes in the IDE options and tried to compile again. I got a shit-ton of gl errors. So I searched Google for a few hours and after much struggle found the location of OpenGL32.lib and GlU32.lib and I linked them. Then I compiled again and now I am landed with this weird error.

If you need any more information please let me know. All of this pain has been stretched out over a few days and I am sick and tired of it.

EDIT: I am using the sample project that came with the libRocket library. Its a VS "Solution"... whatever that is.

General / Linking Error
« on: August 08, 2011, 10:04:14 pm »

General / Linking Error
« on: August 07, 2011, 04:41:35 pm »
The full SDK for MS Visual Studio 2008. SFML 1.6. If that's what you meant.

General / Linking Error
« on: August 07, 2011, 11:51:48 am »
I am trying to get SFML working in VS2008 Express but I keep getting linking errors.

I have tried the release version of the libraries, the debug, and the -s... whatever that is. I always get the same thing.

The procedure entry point ??0Image@sf@@QAE@XZ could not be located in the dynamic link library sfml-graphics.dll.

I found lots of these on the forum but all of the solutions that were in those posts haven't worked for me.

EDIT: I have SFML_DYNAMIC in the preprocessor options.

Graphics / Question on Gifs
« on: July 24, 2011, 08:59:53 am »
Okay. Thanks.

Graphics / Question on Gifs
« on: July 24, 2011, 08:10:03 am »
Does SFML currently support gifs?

Window / Stopping View Scrolling
« on: July 10, 2011, 08:19:03 am »
I am attempting to make the view scroll while the user has their mouse on the right or left side of the window. It is scrolling over and image and I need it to automatically stop when it reaches the edge of the image.

I have a tried few methods, but none have worked out.

[list=1]1. I have tried putting a line of black of pixels along the first and last columns. I then had the program look at the current pixels that the mouse is over and look for the black pixels, but as there has to be a margin area for the mouse to scroll with that didn't work.

2. I put another line of pixels at the edge of the scrolling margin but that didn't work out as planned either.

3. I have tried just sensing the black surrounding the image, but that isn't part of the image, so I can't sense it for a color.[/list:o]

I can think of only one more method, but I have no idea how to implement it.

-Somehow have the computer know where the view is on the image.
    The only trouble I have with this is that the Offset for scrolling is 100f * the frame rate. I assume that will make the frame rate vary from computer to computer, so I can't count using that. Correct if I'm mistaken.

Don't know if this will help but:
The window is 1280x720.
The image is 3840x720 (3x the window length).

Pages: [1] 2 3 ... 12