question

Marius Badita avatar image
Marius Badita asked

Cloudscript github files concatenation

Hi,

I've just started splitting my code from github into several pieces. It seems that playfab only gets the first .js file.

So, i have file1.js, file2.js etc... and when I check the clloud script code from the playfab dashboard, it shows only the content from file1.js.

Title id is DDEE0, if it helps.


Cheers!

Edit1: it seems to only get the latest modified file. if it modify file2.js and push it then that's the one being shown in 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.

Sarah Zhang avatar image
Sarah Zhang answered

Generally, as this section -- GitHub integration says, “If you commit multiple files, they will be concatenated together into a single PlayFab CloudScript revision. Live revision selection remains the same: new commits to GitHub must be set to live in Game Manager as described above.”

About the implementation of the “Update CloudScript” feature in the PlayFab Explorer plugin for VS code. Please refer to the source code in the repository -- https://github.com/PlayFab/vscode-playfab-explorer/blob/f76c25bdfb0e9127dd5a06be3c75336b493c5e2b/src/playfab-explorer.ts#L229. The “Update CloudScript” feature in the VS code PlayFab plugin essentially uses the PlayFab admin API UpdateCloudScript to Creates a new Cloud Script revision and uploads source code to it. Note that at this time, only one file should be submitted in the revision.

10 |1200

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

Marius Badita avatar image
Marius Badita answered

After more digging I've found the issue. I'm using PlayFab plugin for Visual Code. When I press "Update cloudscript" it replaces the cloudscript with the current file. It's not yet clear if this is the expected behaviour.

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.