i try this code and count is always zero. i can see there are matchInstance record on NoSQL interface. i also tried Spark.runtimeCollection. i use this code in a custom event cloud code.
var matchCollection = Spark.metaCollection("matchInstance");
var count = matchCollection.count();
What exactly are you trying to achieve here ? Normally we wouldn't recommend accessing a system collection like this as it's an unsupported method, if you let us know what you're trying to do here we can help you find a solution.
Thanks,
Liam
U
Ufuk Coban
said
over 6 years ago
Hi Liam,
For a game, a player will have multiple turnbased matches. i want to get the list of these matches.
For another game a player should have only one match. so i will check if this player has another match.
Customer Support
said
over 6 years ago
Hi Ufuk,
You could use Challenges for this, challenges can be set to be turn based. They can also be searched for with a FindChallengeRequest, the response of which will contain challenges that the player is eligible to join.
Thanks,
Liam
U
Ufuk Coban
said
over 6 years ago
Hi Liam,
are not challanges for known players(friends)? i want to set matches for everyone.
i just need system collections as read only. using this undocumented function helps me to solve many problems. i hope you released this function :-)
Ufuk Coban
How can i find player's matches that saved in matchInstance collection using Cloud Code?
i found this;
https://support.gamesparks.net/support/discussions/topics/1000069979
it worked.
1 person has this question
- Oldest First
- Popular
- Newest First
Sorted by Oldest FirstUfuk Coban
i try this code and count is always zero. i can see there are matchInstance record on NoSQL interface. i also tried Spark.runtimeCollection. i use this code in a custom event cloud code.
Ufuk Coban
i found this;
https://support.gamesparks.net/support/discussions/topics/1000069979
it worked.
Customer Support
Hi Ufuk,
What exactly are you trying to achieve here ? Normally we wouldn't recommend accessing a system collection like this as it's an unsupported method, if you let us know what you're trying to do here we can help you find a solution.
Thanks,
Liam
Ufuk Coban
Hi Liam,
For a game, a player will have multiple turnbased matches. i want to get the list of these matches.
For another game a player should have only one match. so i will check if this player has another match.
Customer Support
Hi Ufuk,
You could use Challenges for this, challenges can be set to be turn based. They can also be searched for with a FindChallengeRequest, the response of which will contain challenges that the player is eligible to join.
Thanks,
Liam
Ufuk Coban
Hi Liam,
are not challanges for known players(friends)? i want to set matches for everyone.
i just need system collections as read only. using this undocumented function helps me to solve many problems. i hope you released this function :-)
-
Documentation Notes
-
Design issues with user events
-
Using NoSQL
-
Runtime Collections vs Metadata Collections
-
Anonymous authentication from browser app
-
Modules
-
Movement With Unity
-
Problem with url parameters for downloadables
-
Querying NoSql GameSparks database
-
Challenge accesType
See all 2487 topics