News for hackers. Stuff that matters.
Re:Erlang MMORPG Engine by EvilTrout on Monday December 07, 2009 @02:56PM (#981962)
I'm probably going to use Erlang for the server side component of my next MMO (I created Forumwarz, a web based MMO in Ruby on Rails.) So this was a very interesting find.

It's curious that the author uses TCP. Almost every high performance game uses UDP, as you don't care about lost packets or the order 99% of the time. You just want the latest information.

One reason might be to use Flash for the front end. It does not allow UDP sockets at this time.

Re:Erlang MMORPG Engine by simplify on Monday December 07, 2009 @07:22PM (#982630)
TCP vs UDP is a hot debate. It really depends on the type of game you're trying to build.

http://www.gamedev.net/community/forums/topic.asp?topic_id=3...

As an interesting note, World of Warcraft uses TCP.

Re:Erlang MMORPG Engine by EvilTrout on Monday December 07, 2009 @08:09PM (#982713)
Wow, very interesting thread. I read the whole thing and stand corrected.
Re:Erlang MMORPG Engine by jmatt on Tuesday December 08, 2009 @12:59AM (#983152)
Ya thanks for linking the thread.

EvilTrout - Just to verify your previous statements - I remember when I took networks in the 90s my professor told us UDP was the way to go if reliability wasn't a requirement and performance was important. (less overhead, and of course better latency, etc.) That was the how Everquest successfully implemented it. Many of the EQ players were using 9600 baud dial-up and were very happy with network performance when it first came out. Not to say they didn't have problems at the beginning. But they have long had an awesome hybrid (UDP/TCP) solution that's been tested for a decade.

It's interesting that we've hit a turning point with WoW. I can only imagine how much more pleasant it must be to code using TCP instead of a custom UDP protocol. It also may explain some of the odd network behavior that was "solved" circa 2002 in Everquest but occasionally happens in WoW today.

Re:Erlang MMORPG Engine by wlievens on Tuesday December 08, 2009 @04:04AM (#983331)
I think that once you get your abstractions straight, it's not that much more uncomfortable writing for UDP or TCP. I could be wrong, in which case I'd love to hear why.
Re:Erlang MMORPG Engine by oconnor0 on Monday December 07, 2009 @07:27PM (#982641)
Does WoW use TCP for all communication?
Re:Erlang MMORPG Engine by eggnet on Monday December 07, 2009 @11:04PM (#982978)
All client-server communication. No idea about server to server communication.
Re:Erlang MMORPG Engine by patio11 on Monday December 07, 2009 @07:45PM (#982673)
So if I were very hypothetically having recurrent dreams of making my next Rails app a game, what would you tell me to bring me to my senses?
Re:Erlang MMORPG Engine by EvilTrout on Monday December 07, 2009 @08:08PM (#982712)
It depends what kind of game you're creating. For the kind of game we built it was a huge win. Some of the features were deployed in days.

Ruby might be slow, but in my experience as long as you give it a lot of RAM to play with it can give you great performance (we have over 200k registered players). Of course, we also cache data heavily using memcached.

Re:Erlang MMORPG Engine by patio11 on Monday December 07, 2009 @09:16PM (#982822)
As long as I have you on the line, do you have any nuggets of wisdom for front end development? I was very impressed that the core gameplay appeared to be just Javascript, AJAX, and lots and lots of bubblegum.
Re:Erlang MMORPG Engine by EvilTrout on Tuesday December 08, 2009 @09:11AM (#983682)
Feel free to email me if you have questions about it :) I feel like we've derailed a bit here. You can reach me at my username at forumwarz.com.