SFML community forums

Help => Network => Topic started by: fixus971 on April 23, 2011, 02:37:48 pm

Title: How to dev an online server for a simple game
Post by: fixus971 on April 23, 2011, 02:37:48 pm
I'm finding info about how to develop the online part of server for a simple 4players 2D  strategic game.

I find for hours but drop all times on sites and tread for a big games.

I just done 1/2game with client and server on my local net but
now I want to understand if is possible to put the server side of game on an online shared server.

I want to know if I can use SFML libs on a game server. And Graph-Lib?

This is a strategic game with a very small use of TCP pakets but I think that here we have a bad ADSL line to do that in home.

Where can I found info about small online server for my small game?

Thanks for any suggestions. -Fixus
Title: How to dev an online server for a simple game
Post by: PhiLLe on April 30, 2011, 04:57:54 pm
Quote
I just done 1/2game with client and server on my local net but
now I want to understand if is possible to put the server side of game on an online shared server.


If you have done a client/server game it should be simple to do that. There really is nothing changing but that it is running over the internet and you can't use your local IPs to acces the server.

Quote
I want to know if I can use SFML libs on a game server. And Graph-Lib?


Yes, of course you can! For your server you normally don't need any graphics.

Quote
This is a strategic game with a very small use of TCP pakets but I think that here we have a bad ADSL line to do that in home.


Just check how much bandwidth your game needs in your local network and then check how fast your line is. For a game with many players you will need a computer with a fast acces to the internet though.

Quote
Where can I found info about small online server for my small game?


There are many tutorials about that I think. The SFML example/tutorials for networking will help you to understand how SFML handles it.
http://gamedev.net/ is always a good resource.

I hope that helps you :)
Title: How to dev an online server for a simple game
Post by: fixus971 on May 01, 2011, 02:02:47 am
Thanks for your reply.
My experience in online gaming is 0.001 but I have some hope.
For now thanks.