Archived

This topic is now archived and is closed to further replies.

RPC

This topic is 5110 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 ppl, Say we have a cross/dots game (where it is needed to place 5 crosses/dots in a straight line, on an infinite field, to win). The aim is to make a multiplayer mode for this game, so that it is possible to play from different computers. I hope to make it with the help of RPC, but just can''t figure out: * who has to be server and who client - the two players seem to have the same rights * How to manage data transfer? I think of having a MakeMove(int x, int y); function, that places a token in (x,y) point... This function is provided by the server (using RPC technology), but again if only one player is server, and the other is client, how to tell a client of a server''s move? in a return value? * And what if i want Save/Load game? So, finally, my question is: How to solve client/server problem? I beleive, it IS possible to do such things with RPC... C++ RULEZ!!!

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
quote:
I beleive, it IS possible to do such things with RPC...


well guess what buddy you are wrong and you smell like cheesy socks.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
i don''t know man take off those socks and maybe we can talk.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
They are both peers, equally authoritive. Implement a lock step setup where a command event is proproagated to the other peer and wait for a acknowledge responce from all peers before implementing the command.

It''s turn based so a turn handoff protocol has to be worked out too.

That seems like the simplest solution.

Good Luck

-ddn

Share this post


Link to post
Share on other sites
Thanks guys for help, i hope that i have got the idea, at least i have found an article where the example, very similar to what i have, is discussed...
Concerning the foolish annonymus posts, i beleive, besides banning them, it is also possible to change slightly the structure of the forum - each message is self-moderating e.i. each registered user can mark it, and, say, if more than 10 users have marked the message to be deleted, the message is deleted... it can be further improved in order to be more objective, say old-member''s mark weights more than a mark from new-member user...
how do you think of that?

P.S. Such method is succesfully used, in many forums, say rsdn.ru (but it is in russian)...

C++ RULEZ!!!

Share this post


Link to post
Share on other sites