• Edited

I'm hobbiest trying to make a multiplayer game. Having struggles with it I thought I'd make a libary for anyone to contribute and make it public once we get it working.

This libary aims to make a serverless multiplayer system.

It should include examples and make multiplayer integration generally easier.

I've started a project by using this plugin https://github.com/freehuntx/godot-matcha/tree/master, but I'd also be fine using alternatives.

To anyone who wants to contribute, tell me your github user name and I'll give acces to my github repo where i already started working on it.

    buhu godot already have multiplayer API. And how does the web torrent tracking works?
    Also you using google stun server, which means, if google goes down, so does your addon?
    https://github.com/freehuntx/godot-matcha/blob/46873d52bbde2b617c3ec0e8061a35b9a489ddda/addons/matcha/MatchaPeer.gd#L63

    and if tracker urls go down, so no more "p2p" matchmaking..
    https://github.com/freehuntx/godot-matcha/blob/46873d52bbde2b617c3ec0e8061a35b9a489ddda/addons/matcha/MatchaRoom.gd#L59C2-L59C135

    I too have thought about using torrent system, but refrained because it depends on outside services.

    Instead for developers that wnat to have control over their application, you shoud do what your parents did - use dpmaster. For that reason, ive created somewhat a clone of dpmaster (only for IPV4 adresses) written in godot.

    So the developer can host the masterlist. Anyone can run the masterlist server.

    Masterlist
    https://github.com/kuligs2/gdmaster

    And an example
    https://github.com/kuligs2/gdmaster-server-browser

    Im no programmer, just a hobbyist so the code might not be up to clean room standards.

      kuligs2 Thank you so much for this reply, I know I was relying on other services but I thought it wouldn't matter as much, and I didn't know of any alternatives.

      I'll have a look at your libaries, thank you!

        buhu changed the title to Creating a Multiplayer libary for easier integration w/o Server .
        • Edited

        kuligs2 "

        Also you using google stun server, which means, if google goes down, so does your addon?

        Is that really a problem? Does google really ever get down?

        Also do you use discord? It may be easier to talk over there, if that's fine by you.

          buhu i dont use discord but i use matrix (open source discord). you can find me on unmoderated godot room.

          Well the only thing certain in life is death. So relying on others is questionable..

          If i was developing a product, i would want to have full control of it. If something breaks its on me. If google breaks or them torrent sites, then my product is dead untill i solve this problem. 😃 So it puts strain on one in future, if something ever happens.

          I too was looking to have a server browser and this lead me to dpmaster (dark places game engine) forked from quake engine..
          People have figured this out 30 years ago, so it was kinda surprising that this was not default thing already coded in godot.

          buhu your code is far more conscise and clean 😃, would be cool if someone trully made somehting like dpmaster that works with godot.

          Problem with godot i found is that when you host a game, the server cant receive packets. You could rewrite all the functionality but in the high level multiplyer API this is how it is.. thats why i had to do a workaround and create separate functions that send and do stuff to interact with would be clients and masterlist.