Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Terahard Studios
@terahardstudios_twitter
anyone about my question?
Chris Molozian
@novabyte
@terahardstudios_twitter I don’t think you understand how a community works. You can either figure out the answer to your question on the forums and contribute back or wait for an answer.
Terahard Studios
@terahardstudios_twitter
@novabyte clearly.
Fayyad Sufyan
@fsufyan
I have an issue with manually generated matchId, when I use the match id to join a match on unity sdk I get "WebSocketException: Invalid match ID"
Chris Molozian
@novabyte
@fsufyan are you using the match token to join from the matchmaker?
Fayyad Sufyan
@fsufyan
I wanted to create a match between friends only, so I generated the match from the authoritative server and sent the match id to clients, the match id created on server is the same received on clients but when I joinAsync using it I get the exception. No I switched to using a generated match id from one of the clients and then I send the match id to an rpc that will forward the match id as an in-app notification to the other friend.
Chris Molozian
@novabyte
I see. When you say you generate the match ID which Nakama API do you use?
Fayyad Sufyan
@fsufyan
the runtime Lua
nk.match_create()
Steven Matz
@PublicStm
Hi guys, how to disconnect manually in unity?
I didnt find anything
Hitesh Singh
@hk0129
@PublicStm
I think you are looking for this -
    if (socket != null)
    {
         await socket.CloseAsync();
         Debug.LogFormat("Successfully disconnected socket");
    }
Steven Matz
@PublicStm
Thank you. Is socket the only one? I thought I have to disconnect the connection itself as well.
Hitesh Singh
@hk0129
Socket is the only real-time connection that you have to close. I don't know what other connection you are talking about.
Steven Matz
@PublicStm
killing the session for example. But ok if socket is enough, thank you
Hitesh Singh
@hk0129
Np :thumbsup:
& I guess you can then simply set session = null and that'll be it.
As session itself is not a realtime connection that you need to close, it's used to make client requests to server( as long as it's valid)
Opeth001
@Opeth001
Hi everyone! :)
any news about adding Achievement feature ? ^_^
Andrei Mihu
@zyro
No news yet
Timeline still to be determined, we're doing our best
Opeth001
@Opeth001
Thanks! @zyro
is it going to be added in the next 2 months ?
Andrei Mihu
@zyro
Timeline still to be determined, we're doing our best
Opeth001
@Opeth001
@zyro XD
at the end of 2019 ?
Alim Jaffer
@AlimJaffer
@Opeth001 - if you need it done by a specific timeline, you're welcome to sponsor the work. We have to prioritise based on customer requests and balance that with engineering resources
Fayyad Sufyan
@fsufyan
@novabyte any news on authoritative match creation error "Invalid match ID"? check the screenshots you can see that match id is the same both on server and client but still the exception occurs
Screen Shot 2019-08-12 at 11.18.36 PM.png
Screen Shot 2019-08-12 at 11.19.18 PM.png
Andrei Mihu
@zyro
What you've printed in your logs is not a valid match ID
Though it looks close
However you're getting that ID it's not from match create or match list
Fayyad Sufyan
@fsufyan
I use nk.match_create()
do you mean this is the correct match id format:
Screen Shot 2019-08-12 at 11.22.37 PM.png
Andrei Mihu
@zyro
That looks valid at least yes
Fayyad Sufyan
@fsufyan
I also tried using this format by adding the .[server node name] but still gives me invalid match id
Andrei Mihu
@zyro
You're not supposed to add that yourself, the nk.match_create function returns a fully-formatted match ID
Fayyad Sufyan
@fsufyan
it returns that by default but I though that was an invalid format, however even the returned string in the screenshot is not working!
Screen Shot 2019-08-12 at 11.25.11 PM.png
Andrei Mihu
@zyro
Then there's a problem with your join request, beacuse it definitely works
Make sure you use the correct match join function, with the correct arguments
Also make sure you don't have anything that might interfere, like a before hook on match joins
Fayyad Sufyan
@fsufyan
I noticed something on this, check the screenshot you will find different match id on server and the one received
Screen Shot 2019-08-12 at 11.33.05 PM.png
Although I am using the standard example on the docs to generate match id and rpc call
Fayyad Sufyan
@fsufyan
@zyro I finally got this! the issue comes from me using the TinyJson library to parse the matchid, apparently it has a bug with the match uuid part that leads to a different parsed uuid check the screenshot and notice the raw response from rpc before being parsed and after being parse
Screen Shot 2019-08-12 at 11.41.18 PM.png
TinyJson.JsonParser.FromJson<string>(payload) causes the invalid match uuid
Chris Molozian
@novabyte
@fsufyan can you share some of the c# code that caused the problem? I'm curious about exactly what was going on
AlexandreK38
@AlexandreK38
@novabyte Hi! Is there a way to fetch the number of participants for a given leaderboard?