• 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
dhptD

dhpt

@dhpt
About
Posts
5
Topics
3
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

    Steam StartPurchase: No docs, no success
  • dhptD dhpt

    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.


  • Swap serialization tutorials to utilize Newtonsoft
  • dhptD dhpt

    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".


  • Stacktrace for Cloud Code errors?
  • dhptD dhpt

    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~


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

    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!


  • Stacktrace for Cloud Code errors?
  • dhptD dhpt

    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?

  • Login

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