question

ddiez avatar image
ddiez asked

Best way for testing cloudscript code?

Hi,

What would be the best way to test cloudscript code without affecting all players? I read about creating a clone of the game and trying there first, is there a better solution?


Thanks

CloudScript
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
brendan avatar image
brendan answered

Sure, if you are only ever using the live version of the Cloud Script in the game, you could create a new revision, and use the Specific option in ExecuteCloudScript in your testing, so that you can run your non-live revision.

2 comments
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Przemek avatar image Przemek commented ·

@Brendan Is there a way to test cloudscript's specific revision as the Photon's webhook?

0 Likes 0 ·
brendan avatar image brendan Przemek commented ·

No, sorry - the webhook calls from Photon are going to hit the currently deployed Cloud Script revision. I'd recommend using a separate Title ID for testing purposes.

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.