Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Any open source examples of the networking library used in a game?  (Read 3959 times)

0 Members and 1 Guest are viewing this topic.

Zephilinox

  • Newbie
  • *
  • Posts: 43
    • View Profile
I've had issues using SFML's networking part of the library in the past and want to create a multiplayer game, are there any open-source games made with SFML that use the SFML networking library that I could take a look at?

Lo-X

  • Hero Member
  • *****
  • Posts: 618
    • View Profile
    • My personal website, with CV, portfolio and projects
Re: Any open source examples of the networking library used in a game?
« Reply #1 on: December 13, 2013, 10:32:54 am »
There are examples in the "SFML Game Development" book to add networking with SFML in a scroller/shooter game.

I've done a game that work on a network too for the last Ludum Dare, if you're interested I can make a repo but not before next week.

If you want more features than SFML offers (or more high level ones), Binary has made "SFNUL", a networking overlay that do not directly depends on SFML (but can interface easily) but with the same spirit (same API whenever possible). Link : http://en.sfml-dev.org/forums/index.php?topic=13723.0

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10801
    • View Profile
    • development blog
    • Email
Re: Any open source examples of the networking library used in a game?
« Reply #2 on: December 13, 2013, 10:37:47 am »
Even though you might get something together with SFNUL - should be quite simply, take a look at the examples - you'll still have to understand some part of networking, thus I suggest you browse the network forum section, there's a lot of valuable information and take a look at the networking part of the FAQ. :)
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Zephilinox

  • Newbie
  • *
  • Posts: 43
    • View Profile
Re: Any open source examples of the networking library used in a game?
« Reply #3 on: December 13, 2013, 01:39:18 pm »
Lo-X a repo would be great, thanks. Whenever you're able.

I'd prefer to stick to SFML's networking module, I like SFML for being in that medium spot between raw, OS-Specific API and Game Engines, I may try SFNUL at a later date but for now I don't feel as if I need it.

Thanks for the link eXpl0it3r, I didn't know there was an FAQ.

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10801
    • View Profile
    • development blog
    • Email
Re: Any open source examples of the networking library used in a game?
« Reply #4 on: December 13, 2013, 01:52:19 pm »
I'd prefer to stick to SFML's networking module, I like SFML for being in that medium spot between raw, OS-Specific API and Game Engines, I may try SFNUL at a later date but for now I don't feel as if I need it.
You'd just be recreating most of the parts SFNUL already does from the beginning and end up with a worse product than what SFNUL could offer due to it's async feature and different layers of networking possibilities.
You're free to use what you like, you should just know that SFNUL is in many ways superior to SFML's capability, while still offering lower level options.

One of the main selling points for me was already that I won't have to deal with all the non-blocking networking magic and thread juggling

Thanks for the link eXpl0it3r, I didn't know there was an FAQ.
Keep in mind though that they are user maintained, thus may contain errors or may be a bit outdated regarding latest API changes etc. ;)
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6286
  • Thor Developer
    • View Profile
    • Bromeon
Re: Any open source examples of the networking library used in a game?
« Reply #5 on: December 13, 2013, 07:00:37 pm »
I think it's not a bad idea to know SFML.Network before approaching SFNUL. You'll learn the underlying concepts more easily, and the documentation and tutorials are probably more beginner-friendly (it wouldn't make sense if binary1248 repeated everything from SFML). And, you'll appreciate SFNUL even more when you see what it already does ;)
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development: