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

Pages: [1] 2 3 ... 8
Nice work!

Graphics / [MacOS X | SFML 1.5] Failed to create image.
« on: July 12, 2009, 05:28:25 pm »
There is 20 topics in the forum that explain why this error occur.

It's just because your graphics card can't handle an image of this size.

General / Just a question about the progress
« on: July 09, 2009, 02:16:00 am »
Just for informations: I modified a LITTLE bit my desing to make templateManager to be a singleton and manager ressources a little better and now all work fine :). (with or without the GetDefaultFont()).

General / Just a question about the progress
« on: July 09, 2009, 01:29:58 am »
The error doesn't occur if we do:


instead of


I don't know why, i don't know if it can help to understand anything.. I'm happy with that.

Graphics / SetFramerateLimit problem
« on: July 08, 2009, 07:42:43 pm »
Quote from: "Dominator"
Windows XP SP 3.

Edit: Installed the latest driver now, but nothing changed.

Edit2: On a different computer with XP SP 3 and a Radeon X1950 it runs with 64 fps.

Where do the 32/64 frames come from, when I set it to exactly 60?

It will be MAXED to ~60fps. It can be lesser.

General / Just a question about the progress
« on: July 08, 2009, 05:50:15 pm »
Quote from: "Laurent"
An easy fix for you:

1/ If the crash is happening at global startup, instanciate your singleton on demand rather than at global startup
Code: [Select]
class TemplateManager

    static TemplateManager& instance()
        static TemplateManager manager;
        return manager;

2/ If the crash is happening at global exit, create a function to free resources so that you can control the moment it is done. In fact you always want to control when your resources are cleaned up, trust me ;)
On big projects with tons of modules handling resources and dependencies everywhere, your (lack of) design would never work.

I will see what i can do with that.

PS: The program dont crash. It just leave an opengl exception at the end.

General / Just a question about the progress
« on: July 08, 2009, 03:42:29 pm »
The class (sorry).

The problem is that when the program clause and sfml free texture it raise an error on that font.

General / Just a question about the progress
« on: July 08, 2009, 03:36:54 pm »
Quote from: "Nexus"
You shouldn't rely on the initialization order of static or extern variables in different modules because it is undefined.

Are you sure that nothing is accessed before it has been initialized? Check that with your debugger.

100% sure. Juste including the file in my project with NO CALL AT all on this raise the opengl error.

Quote from: "Hiura"
And what about destruction ? Sometimes you cannot allow the destruction at an unknown time. You may say there is always a solution but it need more work to do it well.

Another thing about global : using them show that your architecture is badly design.

Conclusion : forget global.

lolll easy conclusion.. How will you implement a global templating without global variable? Huh? Somethime global are needed or useful. My template manager need to be accessed by all elements to provide them their initial value.

General / Just a question about the progress
« on: July 08, 2009, 02:41:06 pm »
I "LOAD" them in the main :P. The structure are just initialised before the main cause they are in a static class.

General / Just a question about the progress
« on: July 08, 2009, 02:03:44 pm »
It's an example. The problem is that i made a little gui with a template loader and i use a static templateManager that i fill with the config in a xml file.
The templateManager contain structure and are used in all element to initialise their parameter with the content of the structure. So it cause me an error!

So if sfml doesn't support the use of static member it's a little sad.... (maybe more than little)....

I don't know how i will fix it..

General / Just a question about the progress
« on: July 08, 2009, 02:08:14 am »
In sfml 2.0:

Code: [Select]

// Headers
#include <SFML/Graphics.hpp>

struct structure
    structure() :

    sf::Font font;

static structure s_structure;

int main()
    // Create the main window
    sf::Window App(sf::VideoMode(800, 600, 32), "SFML Events");

    // Get a reference to the input manager associated to our window, and store it for later use
    const sf::Input& Input = App.GetInput();

    // Start main loop
    while (App.IsOpened())
        // Process events
        sf::Event Event;
        while (App.GetEvent(Event))
            // Close window : exit
            if (Event.Type == sf::Event::Closed)

            // Escape key : exit
            if ((Event.Type == sf::Event::KeyPressed) && (Event.Key.Code == sf::Key::Escape))

        // Display window on screen
    return EXIT_SUCCESS;

It leave an openGL error with and without the section between the equals.

I've also tried with image but it seem to be ok ^^.

Window / Recieving more than one Key at the same time?
« on: July 05, 2009, 05:37:30 pm »
Why don't you use TextEntered event??

Network / No connection:( (done)
« on: June 02, 2009, 02:55:52 pm »
Quote from: "csiz"
I do have a router though but the other computer is closed

Most of the router have a firewall. (Near all of them).
So you should check for that first.

General discussions / Release interval
« on: May 25, 2009, 02:04:02 pm »
Quote from: "ptrxyz"
I guess downloading the SVN and compiling it is more or less the same...

Just update your version via the svn.. i take couple of mins...
Neway fast releast = less test = more bugs...

Network / Is it possible more conections on a socket?
« on: May 20, 2009, 02:44:41 pm »
You don't need to connect to a client after they did a connection on your server... You should read the tutorial again.

Pages: [1] 2 3 ... 8