# Creating a named match in Godot

**URL:** <https://forum.heroiclabs.com/t/creating-a-named-match-in-godot/3380>\
**Category:** Client Libraries\
**Tags:** sdk-godot\
**Created:** [January 3, 2023, 7:35am UTC](https://forum.heroiclabs.com/t/creating-a-named-match-in-godot/3380 "2023-01-03T07:35:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![robinNL](https://avatars.discourse-cdn.com/v4/letter/r/df788c/32.png) [@robinNL](https://forum.heroiclabs.com/u/robinNL)\
**Post date:** [January 3, 2023, 7:35am UTC](https://forum.heroiclabs.com/t/creating-a-named-match-in-godot/3380/1 "2023-01-03T07:35:37Z")

</div>

Hi everyone,

I’ve been trying to create a named match in Godot, but I can’t seem to get it to work. I’ve been trying this example:

 ![image](https://us1.discourse-cdn.com/flex020/uploads/heroiclabs/original/2X/d/ddc506a2371792019bde5bea65b8f7c02cea38c8.png)

I let one user create a match with a name:  
var nakama\_match : NakamaRTAPI.Match = yield(socket.create\_match\_async(“ABC123”), “completed”)  
In the Nakama admin I can see that a match is indeed successfully created, but there is no reference to the name I chose.  
I let another user attempt to join the match like this:  
var nakama\_match = yield(socket.join\_match\_async(“ABC123”), “completed”)  
However, that doesn’t work. The user can join the match using the (very long) match\_id, however.

I now assume that match\_name and match\_id are not the same thing. But how can I let a user join a match with the name that I chose? I would really like to avoid having to use the rather unwieldy match\_id, like in the Fish Game tutorial game.

By the way, as far as I can tell ‘match’ is not a valid variable name in Godot. At least according to my IDE.

I’m using Godot 3.5.1, Nakama 3.14.0, and the Godot plugin 3.2.0.

Thank you for any help you could provide!

Robin

---

<div class="post-metadata">

**Author:** ![robinNL](https://avatars.discourse-cdn.com/v4/letter/r/df788c/32.png) [@robinNL](https://forum.heroiclabs.com/u/robinNL)\
**Post date:** [January 4, 2023, 9:36am UTC](https://forum.heroiclabs.com/t/creating-a-named-match-in-godot/3380/2 "2023-01-04T09:36:16Z")

</div>

Ok, I think I figured it out after looking at the code of the Godot-Nakama client. If I understand correctly, socket.create\_match\_async() is used for both creating AND joining named matches.
