Network coding sucks

For discussions about game development that does not fit in any of the other topics.
Post Reply
D3luxe
Posts: 355
Joined: Sat Sep 05, 2009 3:11 pm

Network coding sucks

Post 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.
Adobe Photoshop CS4/Illustrator CS4
Adobe Flash CS4
3DS Max & Maya
PC Spec:
Intel Core 2 Quad Q9550 (2.8ghz)
8gb 800Mhz DDR2 RAM
1gb nVidia GTX275
2TB SATA HD
Windows 7 RTM
User avatar
Jackolantern
Posts: 10891
Joined: Wed Jul 01, 2009 11:00 pm

Re: Network coding sucks

Post 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.
The indelible lord of tl;dr
D3luxe
Posts: 355
Joined: Sat Sep 05, 2009 3:11 pm

Re: Network coding sucks

Post 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.
Adobe Photoshop CS4/Illustrator CS4
Adobe Flash CS4
3DS Max & Maya
PC Spec:
Intel Core 2 Quad Q9550 (2.8ghz)
8gb 800Mhz DDR2 RAM
1gb nVidia GTX275
2TB SATA HD
Windows 7 RTM
User avatar
Jackolantern
Posts: 10891
Joined: Wed Jul 01, 2009 11:00 pm

Re: Network coding sucks

Post 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 :)
The indelible lord of tl;dr
Genaga
Posts: 86
Joined: Fri Dec 11, 2009 7:05 pm

Re: Network coding sucks

Post by Genaga »

Hmm, I'm curious as to what your exact problems are with the networking.

Enlighten me :D

Also Gorillaz ftw.
D3luxe
Posts: 355
Joined: Sat Sep 05, 2009 3:11 pm

Re: Network coding sucks

Post 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
Adobe Photoshop CS4/Illustrator CS4
Adobe Flash CS4
3DS Max & Maya
PC Spec:
Intel Core 2 Quad Q9550 (2.8ghz)
8gb 800Mhz DDR2 RAM
1gb nVidia GTX275
2TB SATA HD
Windows 7 RTM
Post Reply

Return to “General Development”