I am using Godot with Nakama and it’s going pretty well.
I’m using the matchmaker to connect players and as long as I keep the query “*” it works, but as soon as I try to filter for certain properties it doesn’t.
func search_game(role:String):
var query = "*"
if role == "compete":
query = "+properties.role:judge"
elif role == "judge":
query = "+properties.role:compete"
var string_properties = {"role":role}
var matchmaker_ticket : NakamaRTAPI.MatchmakerTicket = yield(
socket.add_matchmaker_async(query, 2, 2,string_properties),
"completed"
)
if matchmaker_ticket.is_exception():
print("An error occured: %s" % matchmaker_ticket)
return
print("Got ticket: %s" % [matchmaker_ticket])
this is the code I’m using, I tried tinkering with it but nothing works, not even the example posted here: Matchmaker - Nakama server