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

Pages: 1 2 [3] 4 5 ... 16
31
Network / Problem with IP
« on: September 21, 2010, 08:59:15 am »
Have you a firewall ?
Can you modify the ports the modem let available ?

32
General discussions / Multiline text and newlines
« on: September 21, 2010, 08:54:28 am »
Right, but :
- When you put a newline, current_width must be reseted to word size, not 0
- When you add the word, don't forget to add the space size too (I calculate it once at the beginning)

33
Network / Problem with IP
« on: September 20, 2010, 09:30:36 am »
What is your network configuration ?
Have you 2 computers ?
Are you connected to the Internet ? How ?

34
Network / Try to use UDP.
« on: September 20, 2010, 09:27:50 am »
UDP has no connection. This is not meaning clients have no IP Adress. It's just that the protocol is not making a connection and can loose packet.

When you want to resend a packet, the UDP protocol is giving you the adresse of the client, it's easy to resend the packet to it.
But you can't keep the IPs and resend to each client, because you are not sure that the client is "on" (till there is no connection).

Use TCP if you want connections, or modify your own protocol to make a Connected UDP ;)

By the way : open an other thread if you want to discuss about other subjects. It will be easier for readers having the same problem ;)

35
Network / [Solved] HTTP File download problem
« on: September 20, 2010, 09:13:05 am »
- Create a tiny text file (25 bytes ?)
- Download it
- See the difference in a text editor

I think you maybe get the HTTP header in the beginning or something like that ;)

EDIT : The GetBody function must bewithout the header, but do this little test in order to see what you get.

36
Network / Server Client managment
« on: September 20, 2010, 09:11:12 am »
Your code is very strange : You are using some std::cin and printf, mixing C and C++.

By the way, this is not the cause of your FPS :)
- Are you writing something on the console while drawing ?
- Are you compiling in Debug ?
- Can you calculate time used in some functions ? (Maybe you can deactivate the GUI drawing to see what is happening ?)
- Can you make a code without IrrLicht in order to see how the network is important in your code ?
- Try to review your code :
     - The client is using a Selector : why ?
     - You are setting the Socket to non blocking twice
     - Be sure to stop the Thread when the game is beginning
     - You are basing the movement of cubes on the time elapsed on each client. Depending on the network and the computer used, results will be completely different !

37
Network / Sending "types" of packet via UDP
« on: September 20, 2010, 08:46:06 am »
Gasp, a lot of things. But 2.0 is almost stable, nothing very difficult to use. The only thing is that Laurent is not releasing it because he wants to finish it properly before.

38
General discussions / Multiline text and newlines
« on: September 20, 2010, 08:36:50 am »
I used this system :

- Each time you modify the std::string of the object, the object calculate its sf::String
- The calculation of the sf::String is based on its container.
- For each word of the std::string, get the size of the word, add it to the actual line size. If this is larger than the container, add a new line in the sf::string. Add the word to the sf::string.

This is fast, and the calculation is made only on modifications. By the way, you are keeping your std::string exactly like you typed it (for example you can have choosen to add a new line).

39
Network / Sending "types" of packet via UDP
« on: September 16, 2010, 09:37:17 am »
Arg !

I have to switch from SFML 2 to SFML 1.7 to test your code :/
I'll give you more infos...

40
Network / my first network program
« on: September 16, 2010, 09:23:14 am »
Quote from: "purkskis"
but i get this: ...
Please, can you explain what you got ?
I'm at the office right now, and I can't use sites like imageshack or photobucket, etc...

It will be easier to help if you can explain in plain text your problem ;)

41
Network / Server Client managment
« on: September 16, 2010, 09:16:29 am »
I really think you should use non-blocking sockets.

But if we could see the source code, it will be easier for us ;)

42
Network / Sending "types" of packet via UDP
« on: September 13, 2010, 09:13:33 am »
Give us the minimal code (see my signature) of the client and the server. I could test it here.

43
Graphics / Thread Background Display
« on: September 10, 2010, 08:43:32 am »
I was just answering to Spodi, who was asking to launch the Thread ;)

44
Network / Sending "types" of packet via UDP
« on: September 10, 2010, 08:42:01 am »
Code: [Select]
int lobby_host(sf::RenderWindow& window)
{
    ...
    bool connected = false;
    ...
    //Check for connections if not already connected
    if (connected == false)
    {
        if (server.Accept(client, &clientIP) == sf::Socket::Done)
        {
            message.SetText("Client connected:\nPress 'Enter' to start\nPress 'Esc' to cancel\n");
            std::cout << "Client connected : " << clientIP << std::endl;
        }
    }
    ...

Maybe try to change the connected boolean to true here ?  :wink:

45
Graphics / Re: Thread Background Display
« on: September 09, 2010, 09:06:01 am »
The
Code: [Select]
thread = true;
Window.Launch();
is doing it ;)

I think maybe you can use a App2.Display(), no ?

Pages: 1 2 [3] 4 5 ... 16
anything