Page 1 of 1

Network coding sucks

Posted: Wed Apr 28, 2010 2:14 am
by D3luxe
I've been working on the Tanks/Gorillaz game lately in Unity. It's getting close to completion (Most of the gameplay is there), but I've been working on writing a custom network solution for online multiplayer.

It's a biiiiiitch. Ugh. Even had my teacher stumped on some of the problems I'm running into. Not to mention that my team member decided to write all of his scripts in JS, after I was writing a lot of it in C#, so I had to go through and convert all of his work to be able to work with everything easier.

The good news is this is due next week so I'll have it done soon for everyone to play. =]

I'd post screenshots, but at the moment we just have placeholder art in..I'll post some better shots later when we have better models in.

Re: Network coding sucks

Posted: Wed Apr 28, 2010 2:46 am
by Jackolantern
Quick question: How are the C# scripts handled? I have always wondered that. Is it some form of .NET that is compiling them, or is it just some ECMA C# implementation? If it is .NET, I would think that networking would be easier, since it is pretty simple in .NET.

Re: Network coding sucks

Posted: Wed Apr 28, 2010 2:59 am
by D3luxe
I'm not positive, but I think it's .NET. The concept for networking is very easy (using RPCs to the server/client to control everything, including state changes etc), but I just don't have a solid grasp on it.

Re: Network coding sucks

Posted: Wed Apr 28, 2010 4:25 am
by Jackolantern
Here is a mess of tutorials on all different kinds of C# .NET networking, using various protocols and creating different applications. It is a very useful page full of stuff if it is running on a full implementation of .NET. I have used it more than a few times :)

Re: Network coding sucks

Posted: Wed Apr 28, 2010 2:43 pm
by Genaga
Hmm, I'm curious as to what your exact problems are with the networking.

Enlighten me :D

Also Gorillaz ftw.

Re: Network coding sucks

Posted: Wed Apr 28, 2010 3:20 pm
by D3luxe
Thanks Jack, I'll check it out!

Genaga - I'm sure the problems I'm having are just because of my own noob-ness. I just don't understand a lot of the connection between client -> server stuff, and I don't understand everything about how the RPCs work, etc. So I'm just running into a lot of small stupid problems.

For example, one of my current problems is this. The client and host (server) can link up to each other just fine. If the client (say the client is player 1) shoots, the bullet shows up fine in the server and client windows, with the right trajectory, etc. However, if the server shoots (player 2), the bullet ONLY shows up in the server window. It's just stupid things like that where I just don't understand where the problem is.

The problems I'm having have nothing to do with Unity; Unity is a great great program that has pretty much everything you need. How I'm doing the networking right now is even connecting to their free master server that THEY host for developers. It's pretty neat :D

I guess that's all called "learning" though..:P