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

AstonJ
The obligatory hello world thread! Who are you and where are you from? :stuck_out_tongue:
4663 61218 595
New
cblavier
Hey there, It’s been more than a year since we started using LiveView as our main UI library and building a whole library of UI componen...
515 12931 101
New
raa-ziq
Hi everyone :waving_hand: I wanted to share something I’ve been building — NowBlind, a random chat app designed to help people discover ...
New
sntran
In my third year of college, around 2010, I found Erlang. A few years later, I found Elixir. I liked the ideas at once: many small proces...
New
gtcode
I’ve been tinkering with Lynx (by José) via hold_ledger. I used AI to write the code, a separate specification, the tests, and the Lean p...
New
Ganna
Hi everyone, I have 8 years of production experience with Erlang/OTP and I’m just starting to get to know Elixir. What would you learn f...
New
AstonJ
A remark @Garrison made… ..has already inspired a thread for the technical side of reclaiming our internet, but there is of course anot...
New

Other Trending Topics Top

dominicletz
Hey there, I haven’t seen a list of useful Elixir specific skills for the popular AI tools yet so I’m starting one here with my first. ...
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
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
kip
Localize is the next generation localisation library for Elixir. Think of it as ex_cldr version 3.0. The first version will be released ...
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
mcass19
ExRatatui lets you cook up rich terminal UIs in Elixir, powered by Rust’s ratatui via Rustler NIFs. Build interactive terminal applicatio...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews