Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: gumpertgrimsdale on April 03, 2013, 01:04:45 PM

Title: Send data from one computer to another
Post by: gumpertgrimsdale on April 03, 2013, 01:04:45 PM
Hi,
I am making a game and I'm thinking of making it multiplayer, or possibly with a multiplayer option. I'm generally quite a logical person, its just that I don't know any computery words like "server" and "masterserver" and "player ping". So, all I would like to know is how would I send data from one computer to another? If there is a simple way of making a variable in my game, which is controlled by one computer, but can be viewed from all of the others that are connected, then that would be great.

BUT please make sure you explain it in simple english. If you write stuff like "call up a networkinstantiate function, and update the resolution frame rate event master server player ping etc..." because I won't have any idea what you're talking about. Please write stuff like "make a new state, and give it the "start server" action" and simple things like that. Imagine your trying to explain this to a 5 year old.
Thank you!
Title: Re: Send data from one computer to another
Post by: jeanfabre on April 04, 2013, 01:02:46 AM
:)

 The issue you will find is that, indeed you will first need to get acquainted with all these wordings (I agree, they are confusing at first) in order to build something that will work. It's a steep learning curve, and it is difficult (for everyone) to get into this the first time.

Have you studied the photon sample provided with PlayMaker? This is the simplest examples of a working multi player game, it can really be less involving and weird names :) I am not saying it's obvious, far from it.

What kind of Data do you want to send from one computer to another? do you mean really building a multi player or do you need to send simple things like scores, or a message?

So, in order to do something useful for you, we need to cut down on the task, otherwise it's going to be overwelhming.

1: How to establish connection ( not sending data yet, just connecting two players together
2: Instantiating players
3: Sending events ( think of features like chats)

What would like to talk about first?

Bye,

 Jean
Title: Re: Send data from one computer to another
Post by: gumpertgrimsdale on April 04, 2013, 01:00:51 PM
Ok, by sending data, I really don't mind how. I think the best way for me would be if I could create a variable which is updated on all computers, and controlled by one computer. eg a vector3 called "player1 position" which when it is changed on player1's computer, all the other computers can see those changes. Thats all I really need, once I have that I can work it out from there. So yeah, all I really need is a simple, step by step guide on how to do that, and I think I'll be fine.
Thanks,
Gumpert
Title: Re: Send data from one computer to another
Post by: jeanfabre on April 09, 2013, 01:38:00 AM
Hi,

 ok, The photon demo is exactly done to achieve this, it's not a step by step, but I really tried to make it in plain english and explain each fsm the best I could.

https://hutonggames.fogbugz.com/default.asp?W927

 so, really read this over, run the example as well, and I will be happy to explain points or features you can't work out. I think that's the best way to go.

bye,

 Jean