Quick Links: Download Gideros Studio | Gideros Documentation | Gideros community chat | DONATE
NoobHub matchmaking? — Gideros Forum

NoobHub matchmaking?

test29test29 Member
edited June 2016 in General questions
What is the best method to make NoobHub simple random matchmaking (2 players)?
I have tried with simple messaging and it works but it has problem when two players enters in the same time, it then creates two separate connections, one for each player instead of only one.
When there is small delay between players entering matchmaking screen, everything works OK.

Somebody help?

Comments

  • totebototebo Member
    I used Noobhub for matchmaking with up to seven players. Because everything is client side, you have to have an extra check to decide who will act as server, or game leader. This quickly gets messy, because players can lose their connection, and it's difficult to cover all edge cases. In the end I ditched my prototype in favour of a custom server with matching logic on it.
    My Gideros games: www.totebo.com
  • I was working on implementing matchmaking between two players in the server side. My approach is the following:

    1) The client app subscribe to "public" channel
    2) I have modified node.js file to create a room (rooms hash in Javascript) or connect to players in the same room when this first message is receive. The variable socket.connection_id is perfect to identify a connected player.
    3) Every client receives a special message with the connectionId of each players.
    4) Now every player knows the channel to publish messages.
  • I have found a similar project to Noobhub

    https://github.com/huytd/node-js-game-server

    It provides some room creation support but you should create your own cliente based on lua socket and Noobhub client.
Sign In or Register to comment.