I m a beginner in Gaming Programming.. I have to create a game server using c#. The main role of the Game server will be match maker..
But i cant understand how to start as i m beginner in Gaming program. Can anybody help me with a sample program... It will help me a lot..
Thaking advance
Rokan
How to Create Game Server
Page 1 of 17 Replies - 13465 Views - Last Post: 25 February 2009 - 07:46 PM
Replies To: How to Create Game Server
#2
Re: How to Create Game Server
Posted 22 February 2009 - 04:25 AM
Well, Dream.In.Code has a policy which we'd like to see some effort on your behalf before providing code. But I will still try and help you.
1.Have you ever programmed before?
a.If yes continue.
b.If no but for school, continue.
c.If no then this may be to advanced for you.
2. Have you made the client yet?
3. What OS are you using?
4. If Windows is the answer to the last question, have you had any previous experience with Winsock programming?
Answer the questions and I will help further.
1.Have you ever programmed before?
a.If yes continue.
b.If no but for school, continue.
c.If no then this may be to advanced for you.
2. Have you made the client yet?
3. What OS are you using?
4. If Windows is the answer to the last question, have you had any previous experience with Winsock programming?
Answer the questions and I will help further.
#3
Re: How to Create Game Server
Posted 22 February 2009 - 11:57 PM
chuck981996, on 22 Feb, 2009 - 03:25 AM, said:
Well, Dream.In.Code has a policy which we'd like to see some effort on your behalf before providing code. But I will still try and help you.
1.Have you ever programmed before?
a.If yes continue.
b.If no but for school, continue.
c.If no then this may be to advanced for you.
2. Have you made the client yet?
3. What OS are you using?
4. If Windows is the answer to the last question, have you had any previous experience with Winsock programming?
Answer the questions and I will help further.
1.Have you ever programmed before?
a.If yes continue.
b.If no but for school, continue.
c.If no then this may be to advanced for you.
2. Have you made the client yet?
3. What OS are you using?
4. If Windows is the answer to the last question, have you had any previous experience with Winsock programming?
Answer the questions and I will help further.
Answer of the questions are as follows
1. Actually i m a Web Developer...
2. No yet now i dont make any client application
3. I m using Windows
4. No i dont have any knowledge about WinSock
Sir i need the help deadly...
Looking Forward
Rokan
#4
Re: How to Create Game Server
Posted 23 February 2009 - 03:27 AM
I suggest you first read up on these tutorials:
Programming TCP Sockets in C++ for begginer
Beginning Winsock programming - Simple TCP Server
I suggest the way you make your program is by having the server scanning for clients. A client then sends it's IP address to the server and the server sends back the IP of another client (And vice versa). Then the two clients with each others IP's can connect to each other.
That is a simple match-making server with little work for the server to avoid draining internet.
Note 1: The client can send more than just IP.
Note 2: Choose an unused port like 11982, something random to avoid traffic (Within Reason).
Programming TCP Sockets in C++ for begginer
Beginning Winsock programming - Simple TCP Server
I suggest the way you make your program is by having the server scanning for clients. A client then sends it's IP address to the server and the server sends back the IP of another client (And vice versa). Then the two clients with each others IP's can connect to each other.
That is a simple match-making server with little work for the server to avoid draining internet.
Note 1: The client can send more than just IP.
Note 2: Choose an unused port like 11982, something random to avoid traffic (Within Reason).
#5
Re: How to Create Game Server
Posted 24 February 2009 - 07:44 AM
Is there any open platform libraries for socks like how OpenGL is open platform for graphics?
#6
Re: How to Create Game Server
Posted 24 February 2009 - 09:18 PM
#7
Re: How to Create Game Server
Posted 25 February 2009 - 03:59 AM
What kind of game is it?
#8
Re: How to Create Game Server
Posted 25 February 2009 - 07:46 PM
Quote
I have to create a game server using c#. The main role of the Game server will be match maker.
Why must the server be written in C#??
If you need some server-side app to manage matchmaking, I actually recommend PHP, as you are a web-dev. For one of my own projects, I have something similar to a match-server written entirely on PHP that is executed at the command-line, so it just runs in the background and listens for new match messages or match-list requests on a certain port via the sockets extension. In this manner, you eliminate the need for a heavy language in favor of a simple script in a language I would imagine you're fairly familiar with.
Of course, if the server need to do more than make matches or throw stats into a database or some such, then a heavier language is undoubtedly ideal.
Page 1 of 1
|
|

New Topic/Question
Reply




MultiQuote







|