hello I’m doing matchmaker in godot using nakama and an authoritative server, when I use the query = “*” the matchmake works fine, but when I decide to modify this query by var query = “+properties.nextRoundMatch:eedf6992-0f85-4a8a-9a25-624eab40ee95.” it does not work.
and the string_properties = var string_properties = { “nextRoundMatch”: “eedf6992-0f85-4a8a-9a25-624eab40ee95.” }
and the matchmaker:
add_matchmaker_async(query, 2, 4, string_properties),
when I say it does not work, it is that when I use the query “*” it joins the game in 20 seconds but when I modify said query I have lasted 10 minutes and it never joins the game
@lukita4141 Based on your query above I think your issue might be lack of special character escaping in the query string.
Have a look at the query string documentation for our query library, near the bottom of the page there’s an “Escaping” section. Here’s the key part, these characters must be escaped:
"+-=&|><!(){}[]^\"~*?:\\/ " (Note that the list includes the space character and " character too.
Your query might have to look something like this:
in godot it is not possible to put that querry, i put this query
var query = “+properties.nextRoundMatch:eedf6992/-0f85/-4a8a/-9a25/-624eab40ee95.”
var properties = {“nextRoundMatch”:“eedf6992/-0f85/-4a8a/-9a25/-624eab40ee95.”}
@lukita4141 Note that / and \ are NOT equivalent. Please check how you should use the correct character. Perhaps \\ is the correct way to escape a \ in Godot?
var query = “+properties.nextRoundMatch:eedf6992\-0f85\-4a8a\-9a25\-624eab40ee95.”
var string_pr = {“nextRoundMatch”:“eedf6992\-0f85\-4a8a\-9a25\-624eab40ee95.”}
keeps failing
var query = “+properties.nextRoundMatch:eedf6992\-0f85\-4a8a\-9a25\-624eab40ee95.”
var string_pr = {“nextRoundMatch”:“eedf6992-0f85-4a8a-9a25-624eab40ee95.”}
even
var string_pr = {“nextRoundMatch”:“eedf69920f854a8a9a25-624eab40ee95.”}