Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

happylrac

MUD code

This topic is 6196 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I''m interested in learning MMORPG network code. I saw a post saying that MUD network code is real similar to MMORPG network code. If so, does anyone have any idea where I can find some documentation and code on the subject? Thanks.

Share this post


Link to post
Share on other sites
Advertisement
Guest Anonymous Poster
a really good source for mud code is ftp.game.org. also try seaching for mud on www.sourceforge.net. my person favorite mud base is circlemud.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
I used to do tinymush mods a couple of years ago. The networking code is a pretty good example of handling large numbers of incoming network connections, but I don''t think I''d call it ''real similar'' to MMORPG code. They were really just text RPGS that wrote to a socket instead of a printf.

MUSHes/MUDs are a /great/ example of how to store a database of locations, players and objects, however.

Share this post


Link to post
Share on other sites
I suggest taking the circlemud code and try to add threading to it. That would be closer to MMORPG stuff.

Share this post


Link to post
Share on other sites
Why would threading increase the resemblance to MMORPGs? MMORPGs can be non-threaded just like MUDs can be threaded...

cu,
Prefect

One line of sourcecode says more than a thousand words.

Share this post


Link to post
Share on other sites
MUD network-code has nothing in common with any game of any kind if it''s well written. A MUD sends plain text to the clients and I hope you''re not going to do that in your game.

You should really try to come up with a non-text based protocol of some kind. You don''t want to send more information than you need, especially if you want many users.

Using a text-based protocol will make you send more data over the network and you will have to parse it when you receive it on the client side.

-Benny-

Share this post


Link to post
Share on other sites
hah, you''re not right.
text protocol - so what.
I think that mud code has good base to rpg-game, just have to change protocol ;-)

Share this post


Link to post
Share on other sites
I''m sure you could make a non-threaded MMORPG, but in order to be ''massive'' it seems you would need to do something with threading or IOCP to handle the large volume.

Whether you''re sending graphics information or text it''s all just bits to the computer. I think the network code might be more similar than you think.

Happylrac, starting with MUD network code sounds like a good idea to me. And changing it around, adding threading or UDP or whatever sounds like a step in the right direction.

- Fleet

Share this post


Link to post
Share on other sites
I would suggest looking at any mud network code and then trying to implement a few servers of your own. TCP/IP is easy to learn and you can find numerous examples (including Mud network code) to help you. You may want to take a look at the UOX3 server which is an open source UO server. The code isn''t the greatest and they have mixed C and C++ but- if your learning - everything that you look at helps.

After you get comfortable with TCP/IP - I would suggest looking for some UDP examples. You can always find UDP time servers and such... Most all MMORPGs use UDP these days... there are issues with reliability and in orderness of the data - all of which can be overcome with some trickery. Once good example is a book by Adriane Perez... cant remeber the title; Something like "3D Game Programming with Direct3D" I think... anyway, one of the chapters has all the information that you need to get you on your way to using UDP...

Have fun,

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!