PDA

View Full Version : Online Framework



CiNiMoDZA
23-09-2009, 04:05 PM
Ive been really bored lately and looking to learn something new, so I thought I would give making an MMO engine a try!

Im not experienced at all when it comes to making multiplayer games, but with the help of a couple of tutorials and the 39dll dll, I managed to make something that actually worked :P This is not my final code, this is one of the very first builds that I made, but currently, my least buggy one. The only thing this does is allows you to move around with the arrow keys, press C to chat, and it has a ping funtion that I haven't finished yet! I dont even know if it works properly as I have only connected locally!

In my latest version (still working on some bugs though!), I have mouse movement, an account system where a user will have to create an account before connecting to the server, and multiple rooms!

Here (http://download98.mediafire.com/biluzzjidjzg/dzzbhruzgxz/Release1.zip) is a link with the 39dll and my source!

Please let me know of ways you can think of to make this more effecient, or even if you can think of anything I could add to it!

dislekcia
23-09-2009, 06:06 PM
I like your enthusiasm, but I don't think this is a framework just yet ;)

It's obvious you haven't made a game that plays across a network yet, you've got a ton of issues hiding in here that are going to turn around and bite you when you start working on gameplay. The biggest issue is timing. How do you know the order that things happened in? Plus you're expecting a packet update every frame, what happens when the server is dropping frames or can't keep up for some other reason? People are going to hiccup like crazy and move very strangely. What if someone haxxors their PC to run at a higher framerate?

The first thing you need to sort out is a way to keep the concept of "when" across ALL the connected machines stable. Then we can move on to the next challenge!

CiNiMoDZA
23-09-2009, 06:42 PM
Ha ha, like I said! This is my earliest non-buggy version! I have already fixed some of these problems!

Point 1:
The biggest issue is timing

Not only is this my biggest issue, its my weakness :P Im working on this at the moment! I have a copy of your framework, and am currently disecting it :D Im also reading every availble tutorial on the matter!

Point 2:
Plus you're expecting a packet update every frame,

In my latest version I have already corrected this! If I remember correctly, I commented on this in the source!!

My biggest issue is the timing, could anyone point me in a good place to learn about this! Im not a coder by profession, but if it is well commented(in any language) I can generally understand it!!!