question

Cyrille Bousquet avatar image
Cyrille Bousquet asked

Execute cloud scripts from server without player

Hi,

I have a few cloud scripts which are not dependent on any player (such as loading some global data for example).

The goal would be to call those on server startup for example or from an editor, so using a secret key.

Unfortunately it's not working and returns an error 400 due to missing PlayFabId request parameter.

From this post it's said that triggering cloud script would be expanding. Has it been expanded to that capacity or is it planned to be able to do so soon-ish ?

Is this possible through azure functions maybe ? (we haven't switched to those yet)

Cheers,

Cyrille // Bousk

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

·
Xiao Zha avatar image
Xiao Zha answered

Why you use Secret Key to call the Cloud Script? Since you have the Secret Key, you have the full control of the entire title data. And since you mention that the Cloud Scripts are not dependent on any player, you can implement the functionality implemented by these Cloud Scripts on your server or your editor instead of calling these Cloud Scripts.

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

Cyrille Bousquet avatar image Cyrille Bousquet commented ·

It gives us more options like some settings can be read from title data or something, and also to be able to change those scripts in the backend without having to patch the clients.

0 Likes 0 ·
Xiao Zha avatar image Xiao Zha Cyrille Bousquet commented ·

It’s indeed that using Cloud Script may be more flexible. In your case, you can switch to Azure Function to implement your Cloud Script and execute without PlayFabId.

1 Like 1 ·
Cyrille Bousquet avatar image Cyrille Bousquet Xiao Zha commented ·

Thanks, good to know that Azure functions would allow us to do that.

We're still prototyping but it's likely necessary we switch to that later on.

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.