question

admin-18 avatar image
admin-18 asked

Support multiple version of client,

Hello,

We would like to know is it compulsory to make revision live?

our basic problem is to support multiple game client version lets say for simple example if we launch our game with version 1.0 and we have created api for rewarding user at the end of match from server now in future we may change reward type which 1.0 client does not know and game can break so we want to call revision 1 for 1.0 version of game and revision 2 for 2.0 version of game. in that case both will work.

ofcourse we can force user for hard update from the server but we don't want that for some time.

,

apissupport
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

·
Citrus Yan avatar image
Citrus Yan answered

No, it’s not compulsory to make a revision live. And, when executing a CloudScript function, you can select which revision to execute using these parameters:

RevisionSelection : Option for which revision of the CloudScript to execute. 'Latest' executes the most recently created revision, 'Live' executes the current live, published revision, and 'Specific' executes the specified revision. The default value is 'Specific', if the SpeificRevision parameter is specified, otherwise it is 'Live'.

SpecificRevision: The specivic revision to execute, when RevisionSelection is set to 'Specific'

For instance:

"RevisionSelection": "Specific",

"SpecificRevision": 2

This should help with your “multiple game client version” scenario.

10 |1200

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

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.