Navigation

    brainCloud Forums
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Solved
    • Unsolved
    • Users
    • Groups
    1. Home
    2. dhpt
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    dhpt

    @dhpt

    0
    Reputation
    5
    Posts
    1
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online
    Location Taiwan

    dhpt Follow

    Best posts made by dhpt

    This user hasn't posted anything yet.

    Latest posts made by dhpt

    • Steam StartPurchase: No docs, no success

      I haven't been able to StartPurchase() with "steam" store at all. It's pretty straight-forward, all I need to provide is "en" for English, "steam" for the store name and "someItemId" - that's it.

      I get a vague err response that doesn't seem to assist me in any form, and with err code 0 (that doesn't exist as a Steam err code). This has been the most frustrating experience trying to get this working since I can't even self-diagnose with vague errors 😕

      ee68c686-8cf1-448b-b4e8-c6995f6b9a81-image.png

      Since it's actually incredibly easy to init the purchase from the client-side, this seems to be a BC internal issue. Their docs also have no mention of Steam at all - and the only article I could find pretty much shows what I already implemented.

      I had it working on GameSparks no problem (after implementing the entire flow manually, myself), so I'm very familiar with the process.

      posted in Client APIs
      dhpt
      dhpt
    • Swap serialization tutorials to utilize Newtonsoft

      For example, I was looking at this KB (after noticing someone else was using this, confused about serialization):

      http://help.getbraincloud.com/en/articles/3281673-design-item-management-catalog

      This code is painfully difficult to read and surely not best practice. Perhaps use Newtonsoft? Make a class that matches the architecture, then 1-line try/catch deserialize: It's standard, intuitive and scalable.

      (While you're there, perhaps even change to C#6 for easier-to-read $"{someVar} interpolation".

      posted in Suggestions
      dhpt
      dhpt
    • RE: Stacktrace for Cloud Code errors?

      I was just looking into this the other day, too! Like most issues in cloud script, it's a Rhino issue - you never know what isn't fully implemented, and the lacking IDE features doesn't let you know.

      What I did was ghetto, but it worked. In every script, I make an array that tracks stacktrace, then I try/catch everything. I rethrow until I get to my main func, where I funnel it to an err handler.

      It looks like the next Rhino release may have some extra support for us there. We will look to enable it once it's available.

      The new Rhino release (already out) will even add ${} templating and backtick support~

      posted in Cloud Code
      dhpt
      dhpt
    • isNewUser: Where can I find docs for this?

      Hi, I tried everywhere - forums, KB, tutorials, API ref ... I just can't find isNewUser info. I also heard it's sort of a bool, sort of a string - I'd like to learn more, but where?

      Thanks!

      posted in Cloud Code
      dhpt
      dhpt
    • RE: Stacktrace for Cloud Code errors?

      I'm interested in this too! I tried a few things that didn't seem to work. Since there's no "step through" like GameSparks, for example, gotta rely on stacktraces for fast debugging.

      I find myself devving a bit slow when I have errs due to no stacktraces. Or ... is there a way?

      posted in Cloud Code
      dhpt
      dhpt