SFML community forums

Help => Network => Topic started by: paupav on August 21, 2014, 03:14:50 pm

Title: Is SFML network enough for making MMO game
Post by: paupav on August 21, 2014, 03:14:50 pm
Like this one:

http://www.youtube.com/watch?v=oLvwIrSk6Rs

Also, why can't I post youtube links!
Title: Re: Is SFML network enough for making MMO game
Post by: eXpl0it3r on August 21, 2014, 03:31:48 pm
There's no "MMO-ready" property for network libraries and if people write that, it's purely an advertisement thingy. As all libraries SFML has it's limits, the more important question you have to ask yourself is, are you enough experienced to come even close to something like that in the video.

Just forget about MMO anything and keep writing smaller games. ;)

Also, why can't I post youtube links!
You can, you just did it wrong. There's no [youtube] tag, simply post the YouTube link without any tags, but with the http:// link https:// doesn't seem to work, and it will get converted, I fixed it for you.
Title: Re: Is SFML network enough for making MMO game
Post by: Peteck on August 21, 2014, 04:19:47 pm
But yes, SFML network module is enough for you to make a MMO game like that. All you need is a tcp socket.
Title: Re: Is SFML network enough for making MMO game
Post by: paupav on August 21, 2014, 08:50:33 pm
@eXpl0it3r Yes, I'll keep writing smaller games, but in the future I wanna create game similar to that one.
Title: Re: Is SFML network enough for making MMO game
Post by: zsbzsb on August 21, 2014, 09:01:07 pm
What doesn't make sense about not quoting full posts?
Title: Re: Is SFML network enough for making MMO game
Post by: paupav on August 21, 2014, 09:03:35 pm
Sorry
Title: Re: Is SFML network enough for making MMO game
Post by: Lolilolight on August 22, 2014, 10:33:26 am
After creating small games, you'll be able to create a game like this one. (But, it'll take a lot of time)

But SFML'll not be sufficient (of course), you'll need to use other libraries.

Or you can create your own library like I do. (I don't thing there exists a perfect library to create this kind of game, but there exists some software like unity.)
Title: Re: Is SFML network enough for making MMO game
Post by: paupav on August 22, 2014, 12:07:45 pm
I don't wanna use Unity. I wanna first figure out how to make normal game engine, since my game engines are crap.
Title: Re: Is SFML network enough for making MMO game
Post by: G. on August 22, 2014, 12:25:08 pm
But SFML'll not be sufficient (of course), you'll need to use other libraries.
Why? Which ones?
Title: Re: Is SFML network enough for making MMO game
Post by: Lolilolight on August 22, 2014, 07:09:30 pm
Quote
Why? Which ones?

OpenSSL by example for cryptography, but, you'll also need to have (probably) an entity and component system, a collision detection system, a system which manage animations, a particule system, a state management system, a command system, etc..., there exists many librairies which implements this already if you don't wanna implement all of this yourself.

But I don't know those librairies very well, I only know about some libraries like Irrlicht, Orgre, for the 3D, for the 2D I don't know them but it should exist.

But normally with a 3D lib you should be able to display 2D entities too. (It's just the perspective which is different)
Title: Re: Is SFML network enough for making MMO game
Post by: Laurent on August 22, 2014, 07:15:32 pm
Quote
OpenSSL by example for cryptography, but, you'll also need to have (probably) an entity and component system, a collision detection system, a system which manage animations, a particule system, a state management system, a command system, etc...
The forum implies that we're talking about the networking part of the game. Let's stay focused on that please.
Title: Re: Is SFML network enough for making MMO game
Post by: paupav on August 23, 2014, 02:33:44 am
For networking SFML/Network and OpenSSL (if I wanna encrypt packages) is enough or do I need anything else?
Since Bosses rules are strict about talking about anything else.
Title: Re: Is SFML network enough for making MMO game
Post by: Laurent on August 23, 2014, 09:43:32 am
Let's clarify something. Are you a beginner who wants to make the most awesome MMORPG of the world, or do you have some experience in making games and know what you're talking about? Because it looks like the first, and I don't really want this kind of discussion on this forum ;)
Title: Re: Is SFML network enough for making MMO game
Post by: Lolilolight on August 23, 2014, 11:10:51 am
Ha just for the networking ? (Sorry)

I use SFML and Openssl (for cryptography) and it's sufficient. ;)

You don't need another lib but if you are a beginner I'll recommand you to use a library which encapsulate everything like SFNUL. (Because otherwhise you'll have to manage assynchrone transferts and openssl encryption/decryption in SFML packet yourself)

Title: Re: Is SFML network enough for making MMO game
Post by: paupav on August 23, 2014, 01:42:19 pm
I'm beginner that wants to create the most awesome MMORPG! I've just wanted some info because I wanna to create such game far in the future, and I wanna know if I've picked correct library. This 2 games that I've made are my first 2 games.
Title: Re: Is SFML network enough for making MMO game
Post by: zsbzsb on August 23, 2014, 05:18:14 pm
Sure you can use SFML for this... that said however - not to put you down personally, but you won't succeed. Judging from your forum posts you clearly lack the skills to create just a decent single player game. Then when you add multiplayer you must then deal with all the pitfalls that come with networking code, let alone dealing with thousands of multiple connections which would involve multithreading which would also include tons of its own pitfalls. Add to all that actual content creation...


I seriously advise you to stick to single player and once you got a decent single player game consider adding cooperative LAN play (two player game over the network). Once you do that I am sure you will see that what you are trying to do is way over your head.

And just a few links if you feel like reading more.
http://www.gamedev.net/blog/355/entry-2250155-why-you-shouldnt-be-making-an-mmo/
http://sol.gfxile.net/mmorpg.html
Title: Re: Is SFML network enough for making MMO game
Post by: paupav on August 23, 2014, 07:27:00 pm
As I said I wanna create MMORPG game in the far future.
Title: Re: Is SFML network enough for making MMO game
Post by: Laurent on August 23, 2014, 07:40:25 pm
Quote
far future.
So keep your questions about it, and learn / practice. Chances are that when you're finally ready to write a MMO, you've gained enough experience to be able to anwser these questions by yourself.
Title: Re: Is SFML network enough for making MMO game
Post by: paupav on August 23, 2014, 08:03:37 pm
But I've asked it now, so if It wasn't enough I would go with some other library.
Title: Re: Is SFML network enough for making MMO game
Post by: binary1248 on August 23, 2014, 08:26:17 pm
But I've asked it now, so if It wasn't enough I would go with some other library.
I have a feeling you don't even know what you are asking for.

What is "enough" for you?

What would you need in a library to make it "enough for making MMO game"?

If you can answer this one question precisely, then we will be able to give you a simple yes/no answer. If you cannot answer this question precisely, then you yourself don't know what you consider to be "enough for making MMO game" and your question is unanswerable.

We won't tell you what you need for making an MMO game. You should know that yourself. We will simply tell you whether you will find what you need in SFML or not.

So maybe now you can finally ask a question that we can answer and be done with this discussion.
Title: Re: Is SFML network enough for making MMO game
Post by: paupav on August 23, 2014, 09:00:30 pm
As far as I know sfml can handle everything. You can create server and client. and I don't know if I'm forgetting about something that I would need.
Title: Re: Is SFML network enough for making MMO game
Post by: Laurent on August 23, 2014, 09:37:47 pm
You know, you're not going to use the same library for your entire life. You have to start with something, to know what you need. Your code evolves, your skills evolve, your requirements change over the years. It's not like you'll be able to write your MMO in 6 months... ;)
Title: Re: Is SFML network enough for making MMO game
Post by: binary1248 on August 23, 2014, 09:40:32 pm
As far as I know sfml can handle everything. You can create server and client. and I don't know if I'm forgetting about something that I would need.
Well from that point of view, if you want to make an MMO with rudimentary client-server communication, then yes, SFML networking will suffice.

It will require a lot of code that is normally handled by external libraries, but it is doable.
Title: Re: Is SFML network enough for making MMO game
Post by: Lolilolight on August 24, 2014, 12:39:07 pm
It's doable with SFML only but difficult if you want something which is securised. (You'll probably have to manage operations on big numbers, big prime number generations, cryptography matrix, ... (very quickly))
Personnally I'm not able to do that so I use other librairies to do it.

If you want something unsesurised you can but it's at your risk.


Title: Re: Is SFML network enough for making MMO game
Post by: Jesper Juhl on August 26, 2014, 08:02:18 pm
Stop worrying about scalability.
Stop worrying about security (encryption).
Stop worrying about performance.
Stop worrying about everything - just make a game.

Not to disillusion you, but chances are you'll never make (or work on) a MMO game. You most certainly won't if you don't manage to finish (and ship) a few smaller games first.
Once you get even close to the level of skill and experience required to be a part of building something as massive as a MMO you'll be able to answer your questions yourself (if you cannot, then you are simply not experienced enough).

Learn C++ well (will take you 5+ years). Learn your tools well. Try different libraries. Write small games (snake clone, pacman clone, tetris clone, master of Orion clone). Write simple multiplayer games (a Hearts card game is simple but challenging). Once you are done you'll find that you have more experience and know how enormous the MMO task is and you'll be more humble.

My opinion: SFML is more than enough for anything you'll ever create as an independent developer (as well as part of a small team). Just start with that and reevaluate the MMO in 5-10 years.
Title: Re: Is SFML network enough for making MMO game
Post by: paupav on August 27, 2014, 11:43:00 pm
I've created few smaller games (3) . 1 even has menu! But 2 are  horribly programmed and 1 is bad programmed. :)
http://en.sfml-dev.org/forums/index.php?topic=16130.0

Also there was no need to bump this thread I've got my answer :)