Jump to content
  • Advertisement
Sign in to follow this  
bilinmeyene

Client - Server Problem

This topic is 2571 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi everyone

2 years, I am trying to write games. I solved many parts. But I could not solve multiplayer and server clients synchronization subject.

it's 2d game football game and I am writing in visual basic 6. I have 2 clients and 1 server.
I have read all the posts but could not find anything I could use.

I'm looking for an example In C #, or Visual Basic 6 or Visual basic.net.

Thank you.

Share this post


Link to post
Share on other sites
Advertisement
An example of... what? What part, specifically, is causing you trouble?

Can you describe your game? Is it a more passive "manager" style game, or a more "active" simulation where the player directly controls the footballers? Different game styles allow for different approaches to this.

Share this post


Link to post
Share on other sites
My game is looking sensible soccer game.
Sensible_soccer_MD.png


2 user can play game own keyboard. I want to change to multiplayer.

[color="#333333"][font="arial, sans-serif"]I tried[/font][color="#333333"][font="arial, sans-serif"] [/font][color="#333333"][font="arial, sans-serif"]to send[/font][color="#333333"][font="arial, sans-serif"] [/font][color="#333333"][font="arial, sans-serif"]it[/font][color="#333333"][font="arial, sans-serif"] [/font][color="#333333"][font="arial, sans-serif"]to the server[/font][color="#333333"][font="arial, sans-serif"] [/font][color="#333333"][font="arial, sans-serif"]the user[/font][color="#333333"][font="arial, sans-serif"] [/font][color="#333333"][font="arial, sans-serif"]presses a key[/font][color="#333333"][font="arial, sans-serif"].[/font][color="#333333"][font="arial, sans-serif"] [/font][color="#333333"][font="arial, sans-serif"]And[/font][color="#333333"][font="arial, sans-serif"] [/font][color="#333333"][font="arial, sans-serif"]after, playing the[/font][color="#333333"][font="arial, sans-serif"] [/font][color="#333333"][font="arial, sans-serif"]game[/font][color="#333333"][font="arial, sans-serif"] [/font][color="#333333"][font="arial, sans-serif"]on [/font][color="#333333"][font="arial, sans-serif"]server[/font][color="#333333"][font="arial, sans-serif"].[/font][color="#333333"][font="arial, sans-serif"] [/font][color="#333333"][font="arial, sans-serif"]I[/font][color="#333333"][font="arial, sans-serif"] [/font][color="#333333"][font="arial, sans-serif"]sent[/font][color="#333333"][font="arial, sans-serif"] [/font][color="#333333"][font="arial, sans-serif"]the coordinates[/font][color="#333333"][font="arial, sans-serif"] [/font][color="#333333"][font="arial, sans-serif"]of the clients[/font][color="#333333"][font="arial, sans-serif"].[/font][color="#333333"][font="arial, sans-serif"] [/font][color="#333333"][font="arial, sans-serif"]But[/font][color="#333333"][font="arial, sans-serif"] [/font][color="#333333"][font="arial, sans-serif"]footballers[/font][color="#333333"][font="arial, sans-serif"] [/font][color="#333333"][font="arial, sans-serif"]are jumping:)[/font][color="#333333"][font="arial, sans-serif"].[/font][color="#333333"][font="arial, sans-serif"]I gave up[/font][color="#333333"][font="arial, sans-serif"] [/font][color="#333333"][font="arial, sans-serif"]now this way[/font][color="#333333"][font="arial, sans-serif"].[/font][color="#333333"][font="arial, sans-serif"] [/font][color="#333333"][font="arial, sans-serif"]I immediately[/font][color="#333333"][font="arial, sans-serif"] [/font][color="#333333"][font="arial, sans-serif"]applied a[/font][color="#333333"][font="arial, sans-serif"] [/font][color="#333333"][font="arial, sans-serif"]user[/font][color="#333333"][font="arial, sans-serif"] [/font][color="#333333"][font="arial, sans-serif"]presses a key[/font][color="#333333"][font="arial, sans-serif"].[/font][color="#333333"][font="arial, sans-serif"] [/font][color="#333333"][font="arial, sans-serif"]But[/font][color="#333333"][font="arial, sans-serif"] [/font][color="#333333"][font="arial, sans-serif"]this[/font][color="#333333"][font="arial, sans-serif"] [/font][color="#333333"][font="arial, sans-serif"]time[/font][color="#333333"][font="arial, sans-serif"],[/font][color="#333333"][font="arial, sans-serif"] [/font][color="#333333"][font="arial, sans-serif"]the other[/font][color="#333333"][font="arial, sans-serif"] [/font][color="#333333"][font="arial, sans-serif"]client [/font][color="#333333"][font="arial, sans-serif"]does not consist of[/font][color="#333333"][font="arial, sans-serif"] [/font][color="#333333"][font="arial, sans-serif"]the same[/font][color="#333333"][font="arial, sans-serif"] [/font][color="#333333"][font="arial, sans-serif"]image[/font][color="#333333"][font="arial, sans-serif"].[/font][color="#333333"][font="arial, sans-serif"]I searched[/font][color="#333333"][font="arial, sans-serif"] [/font][color="#333333"][font="arial, sans-serif"]in many[/font][color="#333333"][font="arial, sans-serif"] [/font][color="#333333"][font="arial, sans-serif"]forum[/font][color="#333333"][font="arial, sans-serif"].[/font][color="#333333"][font="arial, sans-serif"] [/font][color="#333333"][font="arial, sans-serif"]I found[/font][color="#333333"][font="arial, sans-serif"] [/font][color="#333333"][font="arial, sans-serif"]all[/font][color="#333333"][font="arial, sans-serif"] [/font][color="#333333"][font="arial, sans-serif"]the theoretical knowledge[/font][color="#333333"][font="arial, sans-serif"]. i am [/font][color="#333333"][font="arial, sans-serif"] l[/font][color="#333333"][font="arial, sans-serif"]ooking example[/font][color="#333333"][font="arial, sans-serif"].[/font]

Share this post


Link to post
Share on other sites
It is hard to believe you've found "all the posts" and "all the theoretical knowledge", because you would have then solved your problem. You are unlikely to find examples that solve your particular problem (which is hard for us to pin down, even if such examples existed).

Your problem seems to be related to not doing client side extrapolation for input and interpolation of incoming server data. It is also possible the the frequency and content of the servers messages might be tuned better, but you have given us no information about what you have tried. We don't know if you're using TCP, UDP, or some higher level library for communication.

Have you researched the answers to questions #12 and #16 in the forum FAQ?

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!