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

Pages: [1]
1
SFML projects / Conway's Game of Life Clone
« on: August 12, 2011, 11:19:03 pm »
I first tried using both 2 and 3 i believe, but it was rather dull results...
When i googled hexlife i found this and applied the same rules as he used, got much more interesting then.
http://www.well.com/~dgb/hexlife.html

2
SFML projects / Conway's Game of Life Clone
« on: August 12, 2011, 01:29:41 pm »
Nice, I recently found Game of Life for the first time and thought I would try to make it.
However i used hexagons instead (took rather long time for me to get those damn shapes working) :?
Thought i could share it here alongside yours if anyone is interested :)

https://legacy.sfmluploads.org/file/46

Not very nice code but I didn't plan on sharing this when I wrote it :P

3
General / SFML 1.6 Graphics and Window not working
« on: August 12, 2011, 12:40:37 pm »
Ok, thanks for the fast reply!
Hope i'll get it working :)

4
General / SFML 1.6 Graphics and Window not working
« on: August 12, 2011, 12:15:37 pm »
Yeah, common problem?

5
General / SFML 1.6 Graphics and Window not working
« on: August 12, 2011, 11:50:39 am »
I have had sfml working before the summer but then i took a break and haven't been using it. Now i suddenly doesn't work?!? System things seems to work but as soon as i try to initialize a window it locks up at start and i only see an empty console window:/

Code: [Select]
#include <SFML/System.hpp>
#include <SFML/Window.hpp>
#include <iostream>

int main()
{
    std::cout << "Hello";

    sf::Window App(sf::VideoMode(800, 600, 32), "SFML Window");
    sf::Sleep(1000);
    App.Close();
    return 0;
}

In this code "Hello" isn't even printed, but without the sf::Window it is...

6
Network / sf::Packet and std::string doesn't work
« on: May 24, 2011, 09:12:22 pm »
I've been playing a bit with tcp sockets and packets to maybe use it later for some simple client server game.
Most of the time it works fine but right now i can't figure out what I'm doing wrong.
When i try to insert a certain combination of variables into a package it doesn't want to compile.
My code is  something like this:
Code: [Select]
sf::Uint8 id;
std::string str;
char msgtype;

packet >> id >> msgtype >> str; //doesn't work

packet >> str; //works

packet >> id >> msgtype; //works

The error i recieve is this:
Code: [Select]
error: no match for "operator>>" in "(((int)((sf::Packet*)packet.sf::Packet::operator>>(((sf::Uint8&)(& id))))->sf::Packet::operator bool()) >> ((int)msgtype)) >> str"

7
General / Code::Blocks cant find lsfml-system
« on: January 07, 2011, 12:46:37 pm »
Yep, but i found one thing i missed :oops:
It should be "-lsfml-system" and not "lsfml-system". Now it works :D

8
General / Code::Blocks cant find lsfml-system
« on: January 07, 2011, 11:39:25 am »
When i try to compile something i get this error:
Code: [Select]
-------------- Build: Debug in STupiDcB ---------------

Linking console executable: bin\Debug\STupiDcB.exe
mingw32-g++.exe: lsfml-system: No such file or directory
Process terminated with status 1 (0 minutes, 0 seconds)
0 errors, 0 warnings

Surely, it cant find my sfml-system file (thats the .a file right?), but i cant see why and i dont know what i am supposed to do to solve it. Some help please  :(

Pages: [1]
anything