WolfDan

WolfDan

Elixir and MMORPGs

Hey there!

Lately I’ve been playing a lot FFXIV and Black Deset Online, during my game time I started to think about the millions of events that happen in the game and how really complicated it can be to create a server for an MMORPG (I’ve created some game servers before but just as research)

So I asked myself, how well can Elixir handle a server of this type?

From what I’ve seen most game servers are written on a combination of Java and C/C++ for all the internals like entity system, networking, geometry engine, inventory management etc…

So the intention of my previous question is how well Elixir can handle such things?

We already know that Elixir can handle things like chat (Riot Messaging System is written on Erlang) and networking really well (TCP/UDP), but what about entities system, questing, spell timers etc… ?

We also know that Erlang VM isn’t really good at doing calculations (with those kind of servers relly a lot), but fortunately we have NIFs that can help solve this problem, tho is a good idea in doing such thing as a nif? The best example could be all the geometry engine or the positioning system, tho Elixir could handle things like speed hack controls etc…


So what do you think?

  • Is Elixir capable of handling all the most important parts of an MMORPG game server?

  • Would it be more costly to run compared to writting it on another language?

  • Do you think is there any direct benefit on using Elixir on this case over other solutions?

  • Do you have any experience handling similar projects? How was the experience?

Thank you :slight_smile:

Most Liked

oestrich

oestrich

I think Elixir works pretty well for an MMO server. I’m writing a text based MMO and have never regretted it. That’s ExVenture - https://exventure.org/ I actually don’t think I could have done this without Elixir.

I also know someone who was doing a server for an existing MMO and they were doing lots of binary pattern matching on packets which must be stupid hard on not Erlang :smile:

The process architecture of Erlang works perfectly for a very stateful system such as an MMO. I say give it a shot!

WolfDan

WolfDan

I’ve seen your work! is amazing :smiley: Keep it up!

I can confirm this myself with a prototype Dofus server I did is really really easy to handle binaries on Elixir, I do not think it could be simpler tbh

Well I’m not building an MMO or something, I just was wondering how much Elixir is capable to it ^^, just curiosity, wanting to know others opnions and experience :smiley:

hauleth

hauleth

Could be, but IMHO it wouldn’t be worth it. I mean, you could use it as a network layer and run game loop in NIF or port, but as network isn’t the most problematic layer of such game you can use any other library to handle that directly in language you will be using as a game-loop. So I wouldn’t say that this is totally unusable in such case, but I wouldn’t say that you would get much advantages of using BEAM there as there is not that much benefits.

So as component - yes. As a whole system - no.

There are companies that are providing MMO capabilities for games and are using Erlang, for example https://demonware.net.

Where Next?

Popular in Discussions Top

AstonJ
I’ve just started the Phoenix part of the utterly brilliant online course by @pragdave. On generating the Phoenix app he uses the --no-ec...
New
Crowdhailer
I’ve been hearing much about the new formatter and it’s something I have been keen to try. I find examples buy far the most illuminating...
248 19740 150
New
rower687
Hi all, I’ve been reading a lot about the “let it crash” term and how supervising processes and the whole messaging passing make an elixi...
New
acrolink
How does the two languages compare when it comes to server side application development? Any experiences or ideas? Thank you.
New
tomekowal
Hey guys! I want to create a toy project that shows a chart of temperature over time and updates every 5 seconds. I feel LiveView is per...
New
Rustixir
Hi everyone, im working on find best language/framework/system for high concurrency, high performance and stable performance after wor...
New
sergio
Kind of like when jquery came out, it was super necessary. Existing drag and drop libraries have a bunch of baggage to support old browse...
New

Other popular topics Top

joaquinalcerro
Hi there, I am working with Ecto-Postgresql and I need to call all of the records from a specific table but the table has 40,000 records...
New
JakeBecker
TL;DR: I’ve just released an implementation of Microsoft’s IDE-independent Language Server Protocol for Elixir. It adds language support ...
1144 54921 245
New
lanycrost
Hi everyone! I need implement if…else if…else condition from my elixir code, and anymore of this control flow structures not work proper...
New
openscript
Hello! Sorry for this astonishing simple question, but I’m really stuck. I try to set up the intellij-elixir plugin, but I don’t know ho...
New
joeerl
Hello again - after a longish gap I’ve decided I really must dig into Elixir and see what’s been happening here - so I have a few questio...
New
AstonJ
Seen any cool LiveView demos, sample apps or examples? Please post them here! :003:
New

We're in Beta

About us Mission Statement