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
Why is ScriptMessageExtension not working?
You can send a scriptMessage from Cloud Code without a pre-configured Script Message Extension.  If your ScriptMessageExtension isn't working, it&#...
Tue, 5 Mar, 2019 at 3:32 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
My project requires non-latin alphabet characters from other languages to be displayed. How do I ensure they display correctly?
You will need to encode the required language in Unicode. Below is a code snippet, using Japanese as an example, as it would appear in the Test Harness. ...
Tue, 5 Mar, 2019 at 3:37 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 map of...
Wed, 12 Dec, 2018 at 5:41 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