• Categories
  • Recent
  • Tags
  • Popular
  • Solved
  • Unsolved
  • Users
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Darkly)
  • No Skin
Collapse
brainCloud Forums
    • All Time
    • Day
    • Week
    • Month
    • All Topics
    • New Topics
    • Watched Topics
    • Unreplied Topics
    • All categories
    • All tags
    Load new posts
Log in to post
  • G

    Authentication error - Unity iOS

    Scheduled Pinned Locked Moved APIs unity error ios
    4
    0 Votes
    4 Posts
    580 Views
    A

    Hi Gavin,

    Did you resolve the crash issue on iOS? I am experiencing it as well, so I feel I must have missed something 🙂

    Cheers,
    Andreas

  • A

    Cloud Api for Writing Global Properties

    Scheduled Pinned Locked Moved Feature Suggestions admin cloud code script global properties
    3
    0 Votes
    3 Posts
    462 Views
    A

    Thanks @Paul-Winterhalder

  • C

    Matchmaking: Search Multiple Lobby Types

    Scheduled Pinned Locked Moved Feature Suggestions lobby matchmaking
    3
    0 Votes
    3 Posts
    580 Views
    C

    @Paul-Winterhalder said in Matchmaking: Search Multiple Lobby Types:

    that

    Thanks Paul, I don't think I could do the different lobby info option as I would like the players to choose specifically which game mode and if I understand correctly, I can only do that by having the players search for a lobby of that game mode. It's not too much of an urgent issue, I just wanted to put it out there and see how realistic it was. I talked to Greg a bit and we discussed joining multiple lobby types at once. For now, I plan to search for multiple lobbies at once and cancel matchmaking for any possible 2nd joined lobbies.

  • H

    Recommended way to read Entity data? (Unity, C#)

    Scheduled Pinned Locked Moved APIs unity entity
    3
    0 Votes
    3 Posts
    369 Views
    T

    @Henry-Smith said in Recommended way to read Entity data? (Unity, C#):

    Sorry to bring back an old thread, but I'm just learning the platform and I thought I'd share my solution to this.

    First, define a generic class to handle the raw json response data:
    eg. my Tut1_AddTwoNumbers api returns:

    {"data":{"response":{"answer":24},"success":true},"status":200} public class Response<T> { public ResponseData<T> data; public int status; } public class ResponseData<T> { public T response; public bool success; }

    Then for each api call that you have, define a class that contains the fields that are custom to that response.

    public class Tut1_AddTwoNumbersResponse { public int answer; }

    Now, you call your function and handle the response like this:

    public void Tut1_AddTwoNumbers() { string scriptName = "Tut1_AddTwoNumbers"; // Anonymous object to supply the params. var data = new { num1 = 16, num2 = 8 }; var jsonScriptData = JsonWriter.Serialize(data); SuccessCallback successCallback = (response, userdata) => { var responseObject = JsonReader.Deserialize<Response<Tut1_AddTwoNumbersResponse>>(response); //var responseObject = JObject.Parse(response); Debug.Log($"Success The answer is '{responseObject.data.response.answer}' | raw_json={response}"); }; FailureCallback failureCallback = (status, code, error, userdata) => { Debug.Log(string.Format("Failed | {0} {1} {2}", status, code, error)); }; // Call the script _bc.ScriptService.RunScript(scriptName, jsonScriptData, successCallback, failureCallback); }

    this line is the important part:

    JsonReader.Deserialize<Response<Tut1_AddTwoNumbersResponse>>(response);

    Hope that helps someone!

  • G

    get custom entities associated to a player at login.

    Scheduled Pinned Locked Moved Cloud Code entity cloud code script custom entities
    3
    0 Votes
    3 Posts
    444 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

    Server Monitor

    Scheduled Pinned Locked Moved Feature Suggestions monitoring server room server
    3
    0 Votes
    3 Posts
    523 Views
    C

    @Paul-Winterhalder Thanks Paul, looking forward to any possible solutions.

  • M

    Getting client app version

    Scheduled Pinned Locked Moved Solved Cloud Code client app version gameversion
    3
    0 Votes
    3 Posts
    410 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.

  • A

    Shared Modules - Ability to share code between cloud scripts

    Scheduled Pinned Locked Moved Feature Suggestions cloudscript suggestion javascript
    3
    1 Votes
    3 Posts
    574 Views
    A

    Thank you very much 🙂

  • Paul WinterhalderP

    brainCloud 4.2 is released!

    Scheduled Pinned Locked Moved General release 4.2 announcement
    3
    0 Votes
    3 Posts
    509 Views
    H

    +1 to updated roadmap. Also wishing you guys implement web payments soon (xsolla or any other)

  • P

    UpdateGroupEntityData doesn't update the "updatedAt" field.

    Scheduled Pinned Locked Moved Solved Client API Defects unity group entity
    3
    1 Votes
    3 Posts
    345 Views
    JonathanJ

    The fix will be going into the 4.2 patch on Tuesday. (Sept 17th) - now Wednesday Sept 18th.

  • C

    Mass delete of users.

    Scheduled Pinned Locked Moved General crud
    3
    0 Votes
    3 Posts
    376 Views
    C

    @Chris-Brown I see it now. Thank you!

  • C

    Getting names for request and invites to a group

    Scheduled Pinned Locked Moved Solved APIs unity group
    3
    0 Votes
    3 Posts
    546 Views
    JonathanJ

    As an interim solution, you can add a cloud code script or a post-hook to retrieve the missing data, using the profileIds found in the request.

    https://getbraincloud.com/apidocs/apiref/#capi-friend-getsummarydataforprofileid

    ... "pendingMembers": { "382eb04f-f80c-4bfc-9a12-fca508cad476": { // <- These profile ids "role": "MEMBER", "attributes": {}, "pendingReason": "ASKED_TO_JOIN" } } ...
  • C

    GetMyGroups doesn't return anything in requested

    Scheduled Pinned Locked Moved Solved Client API Defects unity group
    3
    0 Votes
    3 Posts
    360 Views
    C

    Thanks @Jonathan
    It was a bit confusing since I was thinking in terms of the owner having quick access to all their groups data, but I understand the difference in GetMyGroups now. It's a call on the profile and not on the group.

  • A

    Virtual Purchase

    Scheduled Pinned Locked Moved Feature Suggestions
    3
    0 Votes
    3 Posts
    137 Views
    A

    Almost, but you can't define the price in virtual currency.

    The solution I came up with is to make a cloud script that purchases and then immediately sells a user item. The user item has a buyPrice and a sellPrice which effectively does the currency conversion.

  • A

    Return global rank for entries in social leaderboard

    Scheduled Pinned Locked Moved Feature Suggestions
    3
    0 Votes
    3 Posts
    122 Views
    A

    Thank you! I've hacked an implementation for now that just guesses the ranks on the client side without grabbing the actual ranks. The players will only discover it if they're playing sitting side by side. 🙂

  • D

    Apple Push Notification service server certificate update

    Scheduled Pinned Locked Moved Unsolved General
    3
    0 Votes
    3 Posts
    2k Views
    Paul WinterhalderP

    Update - we've confirmed with the server team that we believe we are all set.

    We'll perform some tests when the Sandbox servers cut over the week of Jan 20th to confirm.

    Paul.

  • E

    Unity Compiler Error in RelayComms related to 'Task'

    Scheduled Pinned Locked Moved Solved Client API Defects error exception relaycomms unity task
    3
    0 Votes
    3 Posts
    372 Views
    Paul WinterhalderP

    Hi Eric,

    Thanks so much for the update!

    Good luck with your app.

    Paul.

  • devsleeperD

    Log timestamp to local time

    Scheduled Pinned Locked Moved Portal-X Suggestions
    3
    0 Votes
    3 Posts
    297 Views
    devsleeperD

    My profile displays in a different format than my logs do yes - reading 16:05:53.051 PST vs 4:05:53 PM PST, it's not a huge thing but would be nice as preference in profile settings (or cycling format on the log view timestamp itself)

  • D

    Don't reward quests + milestones automatically

    Scheduled Pinned Locked Moved Unsolved General
    3
    0 Votes
    3 Posts
    220 Views
    D

    one workaround im thinking of doing is having a "fake" user stat. one that tracks the actually XP and another that's "unlocked XP". then just increase the unlocked XP whenever someone "claims" the milestone

  • D

    Max number of keys on a user statistic?

    Scheduled Pinned Locked Moved Solved General
    3
    0 Votes
    3 Posts
    255 Views
    Paul WinterhalderP

    Update - we discussed it and we think you are good to go.

    A test of 1000 stats revealed that the resulting statistics object (that contains all values) was only about 64KB - which is smaller than I had feared. So it looks like 2000-2500 stats will come in less than 200KB.

    Note - that IS 200KB more data that will be returned during an Authenticate call - and during readUserState() - but it should work okay.

    I assume you'll be creating these stats dynamically. That is controlled via the setting on this page (you've probably already discovered it).

    2024-08-27_09-37-51.png

    One warning is that stats are case sensitive - so we'd definitely recommend that you standardize the creation/accessing of the stats - maybe do an uppercase() or lowercase() cast before creating / accessing them.

    I hope that helps. Good luck!

    Paul.

  • Login

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • Solved
  • Unsolved
  • Users