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
As the title says, please share what you’ve been up to with Elixir. Whether that’s been learning it, looking into it, making stuff with i...
2977 92995 915
New
AstonJ
The obligatory hello world thread! Who are you and where are you from? :stuck_out_tongue:
4616 55835 594
New
caslu
I want to open this thread for you all to discuss and help those who really like Ash but are still hesitant to use it in a real project. ...
New
arcanemachine
I was working on an Ecto migration and I needed a timestamp. So, for the nth time, I looked up the different data types for timestamps, a...
New
alexslade
Fly’s CEO posted this recently - Turn And Face The Strange · The Fly Blog It says that Fly is going all-in on sprites, which is a worry ...
New
Herve37
We’re evaluating API mocking tools for OpenAPI-based projects and would love to hear what other teams are using. We’re particularly inte...
New
matt-savvy
Is there a word for the ~> symbol used in Version strings? Do you also just call it a Squiggle Arrow™ ?!
New

Other Trending Topics Top

garrison
Hobbes is a low-level distributed database for the Elixir programming language. Hobbes provides a simple, safe, and scalable storage lay...
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
Damirados
Hello everyone. After busy few months I am happy to announce v0.1.0 of Emerge & Solve. They are GUI (Emerge) and State management (S...
New
netoum
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New
wintermeyer
There are three potential reasons for members of this forum to have a look at https://vutuv.de You are tired or annoyed of LinkedIn. Yo...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews