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

Pages: [1] 2
1
Graphics / 4800 Sprites fast drawing
« on: July 15, 2009, 06:09:57 pm »
That would be confusing for the player even if it worked fast ... try to make that situation almost imposible

2
Graphics / SetFramerateLimit problem
« on: July 09, 2009, 04:35:22 pm »
I remember I read something about frame rates and it seems like its that situation.

The monitor goes at about 60 fps so it draws the frames at 1/60 of a second. But if you delay the frames for a little more than 1/60 s than the monitor will wait for the next round of drawing to draw that frame so there will be 2/60 distance between frames, that means 30 fps.

So the monitor tries to draw something if there is nothing it will wait another 1/60 s.

And if your delay is constantly very little more than 1/60 you will get 30 fps, if its more than 2/60 you will get 20 fps (because it jumps 2 frames for every frame drawn) and so on.

3
SFML projects / Roller coaster simulator
« on: July 06, 2009, 02:52:53 pm »
can you upload it somewhere so we can play with it? :D

ps it looks nice

4
Network / Game friendly protocols
« on: June 11, 2009, 02:25:32 pm »
Are there any standard protocols with witch you could make games with (like html, ftp), something different from tcp as i had problems when I tested that out (I had to forward ports on my router and it only works with one computer at a time).

There should be, im programs use something and there is no need to set up any ports...

Do you have any idea what I could use?

5
Network / how safe is a tcp connection
« on: June 05, 2009, 03:40:48 pm »
Hmm about the second one, I don't know if it was my fault but my program was blocking (seg fault) and when I checked the data I was receiving there was a 76 received that should have been 0 1 or 2.

I'll investigate that further...

ps read this http://en.wikipedia.org/wiki/Two_Generals%27_Problem

6
General / make sfml in linux, ubuntu
« on: June 05, 2009, 02:03:06 pm »
why is it bad? and if there are no static libs can i put the .so libs in the same folder as the binary (as in windows) or do I have to tell everyone to install sfml? (the non developers...)

7
Network / how safe is a tcp connection
« on: June 05, 2009, 01:56:56 pm »
I have a few questions:
Is the tcp connection thread safe? I may do tcp.send(packet); from more than one thread but I still want the packets to be sent whole and in order

Are the data passing through it certain? If I send 1000000 times the number 0 will it be received every time 0?

8
General / make sfml in linux, ubuntu
« on: June 05, 2009, 01:26:26 pm »
When make ing sfml from the src, because I want those static libraries, I got this output in the console (wich I don't really understand)

Code: [Select]
csiz@csiz-desktop:~/Desktop/C++/SFML-1.5/src/SFML$ make sfml-window
make[1]: Entering directory `/media/Everything/Info/C++/SFML-1.5/src/SFML/Window'
g++ -o Linux/VideoModeSupport.o -c Linux/VideoModeSupport.cpp -W -Wall -pedantic -I../../../include -I../../ -O2 -DNDEBUG
Linux/VideoModeSupport.cpp:31:35: error: X11/extensions/Xrandr.h: No such file or directory
Linux/VideoModeSupport.cpp: In static member function ‘static void sf::priv::VideoModeSupport::GetSupportedVideoModes(std::vector<sf::VideoMode, std::allocator<sf::VideoMode> >&)’:
Linux/VideoModeSupport.cpp:58: error: ‘XRRScreenConfiguration’ was not declared in this scope
Linux/VideoModeSupport.cpp:58: error: ‘Config’ was not declared in this scope
Linux/VideoModeSupport.cpp:58: error: ‘XRRGetScreenInfo’ was not declared in this scope
Linux/VideoModeSupport.cpp:63: error: ‘XRRScreenSize’ was not declared in this scope
Linux/VideoModeSupport.cpp:63: error: ‘Sizes’ was not declared in this scope
Linux/VideoModeSupport.cpp:63: error: ‘XRRConfigSizes’ was not declared in this scope
Linux/VideoModeSupport.cpp:88: error: ‘XRRFreeScreenConfigInfo’ was not declared in this scope
Linux/VideoModeSupport.cpp: In static member function ‘static sf::VideoMode sf::priv::VideoModeSupport::GetDesktopVideoMode()’:
Linux/VideoModeSupport.cpp:121: error: ‘XRRScreenConfiguration’ was not declared in this scope
Linux/VideoModeSupport.cpp:121: error: ‘Config’ was not declared in this scope
Linux/VideoModeSupport.cpp:121: error: ‘XRRGetScreenInfo’ was not declared in this scope
Linux/VideoModeSupport.cpp:125: error: ‘Rotation’ was not declared in this scope
Linux/VideoModeSupport.cpp:125: error: expected `;' before ‘CurrentRotation’
Linux/VideoModeSupport.cpp:126: error: ‘CurrentRotation’ was not declared in this scope
Linux/VideoModeSupport.cpp:126: error: ‘XRRConfigCurrentConfiguration’ was not declared in this scope
Linux/VideoModeSupport.cpp:130: error: ‘XRRScreenSize’ was not declared in this scope
Linux/VideoModeSupport.cpp:130: error: ‘Sizes’ was not declared in this scope
Linux/VideoModeSupport.cpp:130: error: ‘XRRConfigSizes’ was not declared in this scope
Linux/VideoModeSupport.cpp:135: error: ‘XRRFreeScreenConfigInfo’ was not declared in this scope
make[1]: *** [Linux/VideoModeSupport.o] Error 1
make[1]: Leaving directory `/media/Everything/Info/C++/SFML-1.5/src/SFML/Window'
make: *** [sfml-window] Error 2


ps could you include static libs in the download?:D

9
Network / No connection:( (done)
« on: June 02, 2009, 08:11:59 pm »
uahuuuuuu
There is a God :D

if anyone of you will ever have this problem I did:
reserved a local ip for the mac address of the computer so it always has the same ip
at virtual server i set the ports 1024-65534 to be forwarded to the local address of the computer
and some dmz thing with the local address of the computer but I think the above helped more than this

10
Network / No connection:( (done)
« on: June 02, 2009, 07:21:32 pm »
i hate this :cry:

I messed with configuration set allow to everything, rebooted the router a few times and still nothing

11
Network / No connection:( (done)
« on: June 02, 2009, 02:34:07 pm »
closed like shout down, not asking for internet from the router(though I don't think that should affect it)

Yes I tried with both from my local network and outside, with both the ips: the one from whatismyip and from internet/network properties

12
Network / No connection:( (done)
« on: June 01, 2009, 09:14:41 pm »
I've been working on something that uses tcp and for 3 days I couldn't couldn't connect to someone to test the program... I can connect to myself :lol: but thats kind of useless...

And now i tried the sample program and even that doesn't work:(

Do you have any idea what is blocking my connection? I have no firewall, no antivirus no other program that should be blocking the connection, I do have a router though but the other computer is closed

13
Network / Is it possible more conections on a socket?
« on: May 20, 2009, 02:47:41 pm »
it is not a server it is some p2p and that connection is needed as I don't want to separate those who I connect with from those that connect to me. The behavior of the connection is identical afterwards.

14
Network / Is it possible more conections on a socket?
« on: May 19, 2009, 10:25:22 pm »
is it possible for me to have more socketTcp on the same socket.
if i do for example a listener socket on port 2000, when a connection is made i start a thread class with the parameter socket and that thread sends/receives data by it self. than in the same program i try to connect to different people sending a connection request than making that thread again.

Do the threads interact in any way?

15
Graphics / Tile Engine
« on: April 30, 2009, 09:39:24 pm »
what is batch rendering? I couldn't find on google :(

edit:I logged in to see if anyone replied and oaa new message in this thread...and its my own message :lol:

Pages: [1] 2