Group Details Private


brainCloud personnel

  • RE: Stacktrace for Cloud Code errors?

    Well - the new release isn't out yet - it's just a Release Candidate.

    That said - we are very happy to see the progress - since it has been over a year since 1.7.13 was released!

    Hopefully soon!

    posted in Cloud Code
  • RE: Limiting number of async matches

    You may write a pre-hook cloud code script with your validating logic and integrate it with [TurnShieldOn()]( method.

    posted in Client APIs
  • RE: brainCloud 4.9 is coming! Details and discussion!

    And brainCloud 4.9 is live!

    Let us know if you have questions or issues!


    posted in Announcements
  • RE: Stacktrace for Cloud Code errors?

    It looks like the next Rhino release may have some extra support for us there. We will look to enable it once it's available.

    posted in Cloud Code
  • RE: NPM braincloud package install

    You can bypass the peer dependencies by adding --legacy-peer-deps flag to your npm install. After modifying package.json, then use npm-install-peers to install the rest of peer dependencies.

    posted in General
  • RE: Don't discourage modulation by charging per in-house calls


    brainCloud doesn't really force anyone to do anything - we are a toolbox to be used to build your game.

    And we certainly wouldn't try to force bad code.

    The recommendation to bundle API calls together into scripts reflect the reality that:

    • Deserializing a request from a client takes significant time+processing. Processing API calls from within a script is definitely less CPU intensive than receiving and processing them one-at-a-time - thus our API Count pricing reflects that
    • There is also a perceivable performance benefit to the end-user. A script that performs a number of API calls from within will outperform those same API calls called directly from the client.

    So - we see it as win:win:win - better user experience, better experience for the end-user, and less cost to you.

    We encourage you to organize your scripts as makes sense for your application. To help support this - brainCloud allows you to import script functions into your script to be called (bridge.import()) - or to call other scripts directly (bridge.callScript()).

    As for why our pricing is elastic - that is so that the costs we incur from your app match the costs to you. This puts us both on the same side when optimizing your app. The lighter your app, the lower the costs on our end, and we pass those savings onto you!

    Hope that helps!


    posted in Suggestions
  • brainCloud 4.9 is coming! Details and discussion!

    Hi folks,

    brainCloud 4.9 is coming soon! (i.e. will be released in the next 2-3 weeks).

    Here's a quick summary of the new features:

    • Amazon GameLift support
    • Join-in-progress for Room/Relay server games (i.e. backfilling)
    • Query available Lobbies
    • Unity client compression
    • AppStore item purchases
    • Tournament management APIs
    • $text query support (for custom entities)
    • Async Match API improvements (returns summaryFriendData in calls)

    And more.

    For all the details - see the release notes -

    Any questions or comments - post them here! ­čÖé


    (PS - brainCloud 4.9 contains an important change/fix for script path handling. Folks organizing their scripts into folders will want to take note. Of course, there's a compatibility flag so the changes don't take effect until you want them too.)

    posted in Announcements
  • RE: How to view users online ?

    Hi Jose,

    Sounds like you want to look into our Presence feature.

    Presence is designed to let users know when their friends are online. You can think of it like the old Xbox Live friends feature - where you can see which of your friends are online - and optionally what they are doing.

    And Presence uses RTT - so users will be notified in realtime when the presence information of a followed user changes.

    Presence works with Friends, Groups, and arbitrary lists of users.

    More details here -

    Hope that helps!


    posted in Client APIs
  • RE: Using numbers as JSON key.

    Here is the thing, the input parameter data returned from our service proxy is a Java Map object, which does NOT support a number value as key when accessing value using object[key] syntax.

    A simple solution for this case is to convert the Java Map object to a real javascript JSON object like below:

    data = JSON.parse(JSON.stringify(data));
    posted in Cloud Code
  • RE: Using numbers as JSON key.

    Hmm, I actually am not sure why sampleData[1] works.

    I would have thought the correct syntax would have be sampleData["1"] and data["1"] ?


    posted in Cloud Code