How do I save a picture to game service cloud save?

Not favoritedFavorited Favorited 1 favourites
  • 9 posts
From the Asset Store
HTML5 Game Bundle (7 Games) – Created with Construct 3
  • I don't know if my picture is too big to upload (I tried lowering quality) or if I'm doing something wrong.

    Is the "Cloud Save ID" on the ConstructGameServices "set picture" actions the "key" that I set in when I create the cloud save or is it the long string of numbers under the "key" name? Either way I'm triggering the error event.

    I'm trying to use the drawingcanvas;

    1)paste sprite

    wait.1 seconds

    2)save image

    wait.1 seconds

    3)set the cloud save at ??? to drawingvas.savedimageurl

  • Okay, so I was able to upload a photo with Ajax, Binary and set photo with Base64.

    The issue I'm having now is that I don't know the code to get the "cloudsaveID" so I have to look at the services website. Obviously that's not gonna work for a project.

    so how do I dynamically find/ call the cloudsaveID that I just created?

  • Ashley is there something I'm missing asking the lines of constructgameservices.lastcloudsave that would help me retrieve the cloud save?

  • When you create a cloud save, you need to create an event:

    "On any create cloud save success".

    When this is fired, you can use the expression "CloudSaveKey" to get the key of the cloudsave just created.

    There are also actions to get a cloud save by ID.

    Is this what you were after?

  • Hey Tom, I am after the actions to get the cloudsaveID, which is necessary for saving the photo to the cloudsave.

  • Tom Ashley

    I don't mean to be bothersome, but outside of logging into constructgameservices, how do I get the cloudsaveID? Cloudsavekey does not work when saving pictures.

  • Still waiting for some help. I can create a cloud save just fine, but I'm having problems being able to save a picture. To my understanding, I need the cloudsaveID (not key), which I have only been able to find by logging into the construct services...

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Right first of all apologies for not replying sooner, I actually moved house so had to prioritise support requests - you were not forgotten though! (And the move is now completed :))

    You're right that this is an oversight - I've added a new expression to the CGS plugin which should make the next release to return the CloudSaveID. Sorry this will take a little while to filter through but it's on the way.

  • No worries, I hope the move is a good fit! Thanks for the update and I'll be waiting for the release 👍

Jump to:
Active Users
There are 0 visitors browsing this topic (0 users and 0 guests)