Advertisement

RPC

Started by December 14, 2003 11:33 AM
7 comments, last by BrennendeKomet 21 years, 1 month ago
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!!!
C++ RULEZ!!! :)
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.
Advertisement
Why?
What do you suggest?
C++ RULEZ!!! :)
i don''t know man take off those socks and maybe we can talk.
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
i wonder if all these completely moronic posts are the same AP?
--- krez ([email="krez_AT_optonline_DOT_net"]krez_AT_optonline_DOT_net[/email])
Advertisement
curius now, eh ?
yes, curius [sic].

too bad i''m not a moderator so i could IP ban you.
--- krez ([email="krez_AT_optonline_DOT_net"]krez_AT_optonline_DOT_net[/email])
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!!!
C++ RULEZ!!! :)

This topic is closed to new replies.

Advertisement