• latest braincloud xcode build error

    Unsolved General
    2
    0 Votes
    2 Posts
    1 Views

    extern "C"
    {
    extern "C"
    {
    const char * _GetUsersCountryLocale()
    {
    //NSString countryCode = [[NSLocale currentLocale] objectForKey: NSLocaleCountryCode];
    NSString countryCode = [currentLocale objectForKey : NSLocaleCountryCode];
    if(countryCode == nil) {
    return strdup("Unknown");
    }

    return strdup([countryCode UTF8String]); } }

    }

  • 0 Votes
    6 Posts
    50 Views

    Gooood!!!

  • 0 Votes
    2 Posts
    34 Views

    Hi there- thanks for bringing this to our attention! A newer version of the Unity Package containing a fix for this has been uploaded. Available here: https://github.com/getbraincloud/braincloud-csharp/releases/tag/5.4.1

  • 0 Votes
    2 Posts
    61 Views

    Hi @francesco-lenolli ,

    The ProductService has actually been deprecated.

    You should use the AppStore service instead.

    I hope that helps!

    Paul.

    2024-09-17_19-55-15.png

  • brainCloud 5.4 is on it's way!

    Pinned until 01/11/2024, 18:09 General
    15
    2 Votes
    15 Posts
    210 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 General
    3
    0 Votes
    3 Posts
    69 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 General
    3
    0 Votes
    3 Posts
    99 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 General
    3
    0 Votes
    3 Posts
    87 Views

    Great. This perfectly answers my question. Thank you!

  • 0 Votes
    2 Posts
    85 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 General
    2
    0 Votes
    2 Posts
    78 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 General
    2
    0 Votes
    2 Posts
    69 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

    General
    2
    1 Votes
    2 Posts
    149 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)

  • 0 Votes
    2 Posts
    193 Views

    Hi,

    Thanks for the suggestion. We're actually working on more country support right now - so adding segment criteria for it makes total sense.

    As for the "OR" and "AND" support - the system currently supports "AND" ...
    ... but yeah, adding "OR" will be a bigger deal.

    I'll run it by the devs and add it to the roadmap with your +1 though...

    Paul.

  • New Pricing based Studio

    Feature Suggestions
    2
    0 Votes
    2 Posts
    150 Views

    Hi Lee,

    brainCloud's pricing models are designed to accommodate changes in usage over time.

    Apps using Enterprise features in the Business/Business + plans are still allowed to access those features if they later downgrade to Standard or Lite plans. Note that the app will no longer be covered by the Business / Business Plus plan SLA though.

    I hope that helps!

    Paul

  • 1 Votes
    9 Posts
    316 Views

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

  • Filter online players in Matchmaking

    Solved Cloud Code
    8
    0 Votes
    8 Posts
    456 Views

    Ciao @Paul-Winterhalder ,

    yes there is not much else to add, except perhaps the fact that the CompleteMatch is sent at the end of the game. Instead, AbandonMatch is sent if one of the players abandons the game prematurely.

    Thanks for the support! 🙂

  • Cloud Code not loading in Console

    Solved General
    2
    0 Votes
    2 Posts
    169 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.

  • [Unity] In App Purchases

    Solved APIs
    2
    0 Votes
    2 Posts
    339 Views

    brainCloud supports a wide range of popular in-app purchases, including Google Play, Apple, Facebook, Amazon, and Steam, etc.. In most cases, the purchase process is initiated through the corresponding IAP plugin that you need to download into your Unity project. Then, verify the receipt received from the purchase outcome with brainCloud by calling VerifyPurchase API. It should be noted that the necessary configuration for the IAP store must be set up in the brainCloud portal for your app, including the products section and platforms section. Some store integration examples are available on our documentation website -- https://docs.braincloudservers.com/learn/portal-tutorials/store-integration-google/
    Hope this helps!

  • 0 Votes
    5 Posts
    667 Views

    Diving into our new game and found a work-around ~ use private viewing. I have our reference game open in a private window, and the new project in the main one.

  • Memcache in Braincloud

    Unsolved General
    2
    0 Votes
    2 Posts
    276 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.