General

Discuss all the things!

111 Topics 349 Posts
  • Customizing your forum settings...

    Pinned Moved
    1
    1 Votes
    1 Posts
    350 Views
    No one has replied
  • 0 Votes
    2 Posts
    62 Views

    Hi @PJ ,

    Your usage of lobbies is exactly why we added the concept of long-lived lobbies. (Admittedly it wasn't part of the original use case - which is probably why some of the documentation doesn't seem to properly reflect that usage <-- we'll review that).

    So - needless to say - keep going as you are - and reach out if you hit issues!

    Happy coding!

    Paul.

  • 0 Votes
    4 Posts
    63 Views

    Awesome! Still a few things to clean up but I appear to be right back to testing within the editor, but against brainCloud's actual lobby system. The key was setting debug to true in the config.js and following the instructions at the end of the GitHub page. Thanks again!

  • Localization Issue

    Unsolved
    6
    0 Votes
    6 Posts
    63 Views

    Thank you so much!

  • Follow up question for bulk user entity data access

    Unsolved
    2
    0 Votes
    2 Posts
    42 Views

    You can achieve it by writing a cloud code script that retrieves the data of each individual user's user entities and stores it in a custom entity collection. After that, call the method RunBatchUserScript() to execute this process for every user within the app. Then, the resulting collection can be downloaded for analytical purposes.

  • Dedicated server getting all player's username

    Unsolved
    5
    0 Votes
    5 Posts
    112 Views

    Oh, server can use client API

  • latest braincloud xcode build error

    Unsolved
    4
    0 Votes
    4 Posts
    87 Views

    Okay, I built it using the commented out part above.

  • brainCloud 5.4 is on it's way!

    15
    2 Votes
    15 Posts
    285 Views

    Yup. We as devs often resist change. Hopefully you'll come to appreciate Portal-X as you use it more!

  • Don't reward quests + milestones automatically

    Unsolved
    3
    0 Votes
    3 Posts
    90 Views

    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

  • Max number of keys on a user statistic?

    Solved
    3
    0 Votes
    3 Posts
    127 Views

    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.

  • How to implement Scheduled Scripts

    Solved
    3
    0 Votes
    3 Posts
    119 Views

    Great. This perfectly answers my question. Thank you!

  • Can you reward items using when you achieve an XP level?

    Solved
    2
    0 Votes
    2 Posts
    102 Views

    Hmm - not currently - but it's coming...

    Unfortunately it didn't make it into 5.4 (which drops in a few weeks) - so that will end up in 5.5.

    Paul.

  • How to implement "loot boxes"

    Unsolved
    2
    0 Votes
    2 Posts
    99 Views

    brainCloud doesn't directly support loot boxes currently... Though of course the Item Catalog and User Items services give you the building blocks to construct your own system in cloud code.

    To implement such a system, you would:

    use Global Entities or Unowned Custom Entities to represent the collection of loot box templates construct your JSON with the rules (percentages, etc.) for constructing the loot box then write a cloud code script that when run - performs the work to award the user the relevant items

    Note - there are future plans to add such a feature to brainCloud - but it isn't scheduled yet. I'll add your +1 !

    Paul.

  • Best way to set default items

    Solved
    2
    0 Votes
    2 Posts
    97 Views

    Hi - normally what you'd do there is attach it as a reward to XP level 1. <- XP level 1 has a minimum XP of 0 - so users get it when the user account is created.

    I hope that helps!

  • Discord Server

    2
    1 Votes
    2 Posts
    190 Views

    If looking for a Discord to chat with other devs implementing BC, the "GBaaS" Discord server has an official ambassador inside (although mostly for use with a feedback bot to forward to themselves and unofficial dev chatter with other folks implementing BC). It's decently active in the #braincloud channel:

    https://i42.games/gbaas (disclaimer: I run this server, but it's been around since 2016)

  • 1 Votes
    9 Posts
    370 Views

    @Brad-Hester That bug has been fixes (and patched). Thanks for reporting it!

  • Cloud Code not loading in Console

    Solved
    2
    0 Votes
    2 Posts
    190 Views

    In case anyone else had a similar issue...

    There was a Cloudflare-related cert issue associated with a site called cdn.jsdelivr.net.

    As I understand it, the Monaco editor that Portal-X uses for editing source and JSON files (and many other common web-based components) makes use of that site.

    More details on the issue here: https://github.com/jsdelivr/jsdelivr/issues/18565

    The issue was temporary - and seems like it only affected only certain localized regions... (just a guess on my part there).

    Anyway - all good now - and nothing directly related to brainCloud.

    Paul.

  • Memcache in Braincloud

    Unsolved
    2
    0 Votes
    2 Posts
    295 Views

    Hi Nguyen,

    brainCloud makes use of both Memcached and Redis as part of it's architecture - but we do not directly expose these in our APIs.

    What was your use case?

    Paul.

  • Reconnect to room on a Relay Server

    Unsolved
    30
    0 Votes
    30 Posts
    1k Views

    Ciao @Greg-Moulds,
    you rock boy! 🙂
    I tried reducing the "early" launch setting as you suggested and in fact now the waiting time is very short. That was exactly the problem.

    Thanks!

  • How to export all user entities for all users of an app

    Solved
    7
    0 Votes
    7 Posts
    368 Views

    Thank you both for the helpful replies. I am educating myself further and exploring options. Depending on what I decide to pursue as the final option, I may be back 🙂