Navigation

    brainCloud Forums
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Solved
    • Unsolved
    • Users
    • Groups
    1. Home
    2. Cloud Code
    Log in to post

    Cloud Code

    • R

      Unique field for a Custom Entity
      cloud code script cloud code cus • • Reza Mortazavi  

      3
      0
      Votes
      3
      Posts
      8
      Views

      J

      Hi Reza, a simple workaround I would recommend is using our atomic methods, such as IncrementGlobalStats, to form the field values with the returned value of that method and some other characters you selected. (defined a global statistic ahead of time, call IncrementGlobalStats() get the returned current value of the global statistic, e.g. 123, then combine with the name you selected to a unique name, such as name_123)
    • T

      Stacktrace for Cloud Code errors?
      cloud code script cloud code rhino • • Travis Brown-John  

      1
      0
      Votes
      1
      Posts
      14
      Views

      No one has replied

    • T

      Shared Global Context for each CloudCode invocation?
      cloud code script loot tuning • • Travis Brown-John  

      8
      0
      Votes
      8
      Posts
      18
      Views

      Paul Winterhalder

      @Travis-Brown-John You can create them manually from the Monitoring menu. Monitoring | Global Monitoring | Global Entities. Note - if your app is live, you need to unlock it first. You'll see a bit [+] button to the right of the Bulk actions drop-down. Good luck! Paul.
    • A

      Segmentation APIs
      cloudscript segmentation • • Alexandru  

      4
      0
      Votes
      4
      Posts
      24
      Views

      Paul Winterhalder

      Hi @Alexandru , We've just officially added the Segment call you're looking for to brainCloud 4.55 - which is targeted for release in the next ~30 days... Updated Roadmap here - https://portal.productboard.com/braincloud/1-braincloud-baas-roadmap Paul.
    • G

      get custom entities associated to a player at login.
      cloud code script entity custom entities • • gibuspi  

      3
      0
      Votes
      3
      Posts
      19
      Views

      G

      Edit . you can get all custom entities for the current user with the query { "entityType": "[entitytype]", "ownerId": "[profileId]", "context": { "pagination": { "rowsPerPage": 50, "pageNumber": 1 }, "searchCriteria": { // other search criteria here }, "sortCriteria": { "createdAt": 1 } } }
    • C

      This topic is deleted!
      • Chris Brooks  

      1
      0
      Votes
      1
      Posts
      6
      Views

      No one has replied

    • C

      This topic is deleted!
      • Chris Brooks  

      1
      0
      Votes
      1
      Posts
      7
      Views

      No one has replied

    • C

      This topic is deleted!
      • Chris Brooks  

      1
      0
      Votes
      1
      Posts
      4
      Views

      No one has replied

    • U

      SOLVED Limit to API calls within cloud script?
      cloudscript • • Ulrika Hjälmgården  

      9
      0
      Votes
      9
      Posts
      41
      Views

      Paul Winterhalder

      Sounds good Ali - thanks for the confirmation! Paul.
    • C

      This topic is deleted!
      • Chris Brooks  

      1
      0
      Votes
      1
      Posts
      2
      Views

      No one has replied

    • M

      SOLVED Getting client app version
      client app version gameversion • • madalin  

      3
      0
      Votes
      3
      Posts
      66
      Views

      M

      Thank you for your answer. Yes, it will be nice to have a separate API but for now, the solution suggested by you works for us.
    • C

      This topic is deleted!
      • Chris Brooks  

      1
      0
      Votes
      1
      Posts
      6
      Views

      No one has replied

    • D

      SOLVED Award Achievement Issue
      cloud code script gamification • • Davis Knox  

      5
      0
      Votes
      5
      Posts
      134
      Views

      D

      Cheers guys. Thanks for the quick response!
    • J

      SOLVED Modules/Common code scripts?
      script • • Jason Jarvis  

      7
      0
      Votes
      7
      Posts
      346
      Views

      A

      Similar situation here, i had built a micro framework on GameSparks to cover cases that almost every cloud driven game require. This saved huge amount of time working on new games and at the same time sharing code among existing features. Please consider this requirement a must have for any serious game development.
    • Ima Need-Support

      SOLVED What version of Javascript does cloud code support?
      cloud code script javascript • • Ima Need-Support  

      2
      0
      Votes
      2
      Posts
      125
      Views

      Paul Winterhalder

      brainCloud's Cloud Code is based on Apache Rhino, which is an open-source implementation of JavaScript. This engine is highly sandboxed within the brainCloud API servers for security purposes. brainCloud currently ships with Apache Rhino version 1.7.7.1. Rhino implements JavaScript 1.7, and is basically ES4 with partial ES5 and ES6 support. Summary from a Stack Overflow discussion here: Hope that helps! Paul.