Navigation

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

    Cloud Code

    • G

      bridge.include doesn't exists
      bug • • Gwenolé STEPHANT  

      2
      0
      Votes
      2
      Posts
      3
      Views

      J

      Hey, there must be some syntax error in your script, would you be able to provide your script code here?
    • Kenneth Lightner

      HTTP Client API - DELETE calls
      cloudscript • • Kenneth Lightner  

      3
      0
      Votes
      3
      Posts
      18
      Views

      Kenneth Lightner

      Delete call update and everything is working now. Thanks!
    • C

      How to create a private system entity from cloud code?
      cloud code global entities • • Carlos Barcenilla  

      1
      0
      Votes
      1
      Posts
      4
      Views

      No one has replied

    • H

      How to add to an array in Cloud Code?
      cloud code script cloud code function array push • • helliyum  

      2
      0
      Votes
      2
      Posts
      11
      Views

      H

      I posted this almost 13 days ago with zero answers, so I took some time to look through a bunch of documentation and did a ton of trial and error. Please Braincloud for the love of god add this to your API. Rhino does not handle Arrays the way that other coding languages do. I figured it out, unlike most arrays that return an array after you call push- Rhino returns the new length. So if you call push, don't set it's value. var copyArray = []; //I assume this line tells it to be an array for (var i = 0; i < postResult.data..length; i++) { copyArray[i] = postResult.data[i]; //arrays do not behave like .Net arrays, you can change length without initializing, so you just set each index to the index of the array you're copying } copyArray.push(variableToAdd); //Do NOT set this as the value of your array, the push method returns an int (length of array) NOT an array! //you probably dont need to call push at all to add to the array as shown in the for loop above if you already know your length or want a specific length Then just set your value to the variable, like this var entityData = { "variableName": copyArray }; //No need to call Array(copyArray) or any of the prototype. slice stuff. If you call Array() you'll just nest the array a second time. Use this page for further info on functions you can do with arrays.
    • K

      How to access Lobby Data in a Lobby Filter script?
      cloudscript lobby lobbyid • • Kaue Aftimus Rosa  

      1
      0
      Votes
      1
      Posts
      10
      Views

      No one has replied

    • T

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

      6
      2
      Votes
      6
      Posts
      37
      Views

      Paul Winterhalder

      Well - the new release isn't out yet - it's just a Release Candidate. https://github.com/mozilla/rhino/releases 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!
    • dhpt

      isNewUser: Where can I find docs for this?
      isnewuser • • dhpt  

      1
      0
      Votes
      1
      Posts
      5
      Views

      No one has replied

    • D

      Using numbers as JSON key.
      cloud code • • donate  

      5
      0
      Votes
      5
      Posts
      23
      Views

      D

      @JasonL Thank you!!
    • R

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

      3
      0
      Votes
      3
      Posts
      11
      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

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

      8
      0
      Votes
      8
      Posts
      24
      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
      25
      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
      23
      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
      61
      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
      69
      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
      137
      Views

      D

      Cheers guys. Thanks for the quick response!