Sign In Register

How can we help you today?

Cloud Code

Why is my Cloud Code timing out?
All log events will timeout if they take 30 seconds or more to execute. This is to prevent infinite loops executing on the server. Please see our docume...
Mon, 17 Dec, 2018 at 11:01 AM
What scripts have Player Context and why is it important ?
On GameSparks, there are scripts that have player context and scripts that don't have player context. In this article, we'll run through both type...
Fri, 22 Feb, 2019 at 2:30 PM
Explaining scriptData in more detail
Script Data can mean a few things. A few out of the box systems utilize scriptData as a small field of customData attached to that system document, for inst...
Tue, 5 Mar, 2019 at 3:36 PM
Slow responses / scaling issues in our Cloud Code Modules. What could cause this?
Often the cause of slow responses / scaling issues in Cloud Code Modules is due to inlining of overly large Cloud Code Modules. When architecting cloud ...
Tue, 5 Mar, 2019 at 3:40 PM
What Cloud Code can be used to allow team owners to kick members from their team?
You can do this in Cloud Code with the SparkTeam removeMembers. This will allow you to remove players using the logic of your choosing, including team leade...
Wed, 17 Oct, 2018 at 2:56 PM
Is it possible to ban player accounts from a game for cheating / hacking?
There are a few ways you can go about doing this. Firstly, you would want to create a list in Game Data Service to store the details of the cheaters you wa...
Tue, 9 Oct, 2018 at 2:47 PM
How do you use Redis Geo Queries?
Redis can be used to perform geo-spatial operations. Using geo-spatial indexing on objects, you can calculate radius, distance, and so on. It takes a ma...
Wed, 1 Jul, 2020 at 4:58 PM
What is the overhead in calling require? Why would I use requireOnce instead?
If you "require" a module that has a large amount of code at the top-level scope, that code will be run. If it looped around for 10s, the overhead...
Wed, 12 Dec, 2018 at 5:46 PM
How to keep a count of players that are currently online
Introduction A common feature that developers want to implement for their multiplayer games is to display the number of players who are currently online. T...
Tue, 5 Feb, 2019 at 5:12 PM