944,147 Members | Top Members by Rank

Ad:
Feb 22nd, 2007
0

Turning C++ game into a Multiplayer game, Client/Server

Expand Post »
Hie all

I am trying to make my game playabel over a network, Client/Server. I have managed to design the game, i have also managed to create a chat program whereby all clients connect to the server and messeges sent are all received and updated by the server to all clients.

I am trying to make the game work the same way as the chat client/server, whereby the game is at the server side and the clients can guess the letters for words, the server then updates all clients and the clients will be able to see what the server sees.

I made the chat server/client using the raknet library, the game is functioning perfectly although not fully complete which reuires just a couple of if statements which i will implement. i am using the uDP protocol but will not mind using TCP.

i have tried incorporating the game with the server, when i connect to the server with a client it connects perfectly but when i input data at the client side nothing seemd to happen on at the server and also the client does not see the game.

Please help, any input or suggestions will be greatly appreciated. I tried uploading all project files with libraries but the site keeps rejecting me if u want the full project files to take a look at send me ur email address. Thank You
Attached Files
File Type: cpp Hangman.cpp (3.5 KB, 758 views)
File Type: cpp Hangman Chat Utility.cpp (7.9 KB, 618 views)
File Type: cpp Hangman Server.cpp (6.7 KB, 803 views)
File Type: cpp Hangman with Server.cpp (6.2 KB, 623 views)
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
nelsao1 is offline Offline
1 posts
since Feb 2007
Apr 3rd, 2009
0

Re: Turning C++ game into a Multiplayer game, Client/Server

thanks
Reputation Points: 10
Solved Threads: 0
Newbie Poster
dsage152 is offline Offline
1 posts
since Apr 2009
Aug 25th, 2009
0

Re: Turning C++ game into a Multiplayer game, Client/Server

well i havent done any network programming in C++ but yes i have made stuff in Java which encorparates networking i will see what i can do
Reputation Points: 10
Solved Threads: 0
Newbie Poster
sybarite29 is offline Offline
1 posts
since Aug 2009

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Game Development Forum Timeline: How to start with PHP?
Next Thread in Game Development Forum Timeline: Strange issue with drawing simple 3D shapes





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC