Cloud Code
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
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
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
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
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
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
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
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
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