WolfDan

WolfDan

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:

Showing Posts 1 to 5

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.

WolfDan

WolfDan OP

Well that’s not what I was trying to say in this post, the idea could be of using NIF only in places where is really need like the geometry engine, everything else just handle with Elixir which I think is really capable of

Realibility and easy to mantain could be a really good benefit. And if handled weel Hot code upgrades is a killer feature (tho not easy to achieve)

Oh I didn’t knew about them, that’s good to know ^^/

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!

kokolegorille

kokolegorille

You can also use Elixir with Unity3D, as mentionned in this post…

WolfDan

WolfDan OP

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:

— All posts loaded —

Where Next? Top

Trending in Discussions Top

budgie
A little off-topic, but I feel like people here have a good head on their shoulders. I used to be quite good at making software. Was luc...
New
juhalehtonen
There has been a thread to discuss the Stack Overflow Developer Survey on this forum every year since 2018, so here’s yet another one for...
New
axelson
Hi there! :wave: @frigidcode and I (but mostly him) have been running an Elixir Book club, we’re almost done with Designing Elixir Syste...
New
achempion
I’ve been using Emacs as my main code editor for more than a two years. It’s a custom build version although I’ve tried doom emacs and sp...
New
budgie
I love Elixir. It’s one of 2 programming languages I’ve ever fallen in love with. But I don’t use it anymore. Serverless was the promis...
New
jtormey
Lately I’ve been thinking about how to organize components as a LiveView application grows. One of the pain points I’ve found (for myself...
New
Null-logic-0
What IDE or editor are you using for Elixir development? Personally, I use Zed, and I really like it, but sometimes I wish there were a ...
New

Other Trending Topics Top

KristerV
Hey. Is there anyone here who creates agents in their apps? Not talking about using agents, but creating them. I’m finding it pretty diff...
New
mudasobwa
I fully migrated to my own harness from Anthropic/Gemini and I think it’s time to share it. Welcome DSH, the DeepSeek Harness, fully writ...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
ausimian
Emily is an Elixir library that runs Nx computations on Apple’s MLX. Install it as the default Nx backend and Nx, defn, Axon, Nx.Serving,...
New
kip
In 2021 I started a new library called Tempo with the objective of modelling time as a set of intervals - not as instants. In 2022 I gave...
New
OndrejValenta
(I just needed to vent somewhere and LinkedIn is full of hope, or hype, I’m not sure which exactly) AI dream has many faces, but general...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews