top of page

Publisher

The Publisher plugin is specifically designed to implement PlayFab Publisher Data, which implements studio-wide features for games built using Construct 3 and Construct 2.


Interconnected with major platforms including Google Play, Game Center, Apple Login, Instant Games, Facebook, Facebook Instant Games, Steam, Xbox Live, Nintendo Switch, PS4 and of course PlayFab's own account and login system with email, username and password support  for your own game. The Publisher plugin with the PlayFab service allows your studio data or player's studio data available on every platform for every game in a studio.


PlayFab also has console support, just in case you want to port in the future, especially through porting services. Extending the reach of your player's studio data.

PlayFab API v2.png

Introduction

Step 1.png

The Construct Master Collection supports the full and easy integration of the PlayFab service for both Construct 3 and Construct 2.


Please click here to learn more about PlayFab.

Features


Here are some of the features of the PlayFab service:

  • Studio data

  • Private, public and internal global studio data.

  • Private, public and internal user studio data.

  • User studio data

  • User read-only studio data

  • Other user's studio data

  • Other user's read-only studio data

  • Private, public and internal user studio data.

  • Easy local data loading similar to the Local Storage object.

  • Easy expression data loading similar to the Dictionary object.

  • Account sync

  • User studio data profile

  • Organized request features

  • Update features

  • User studio data accessible to all games in a studio.


For more information about all the integrated PlayFab service features, please click here to learn the introductory lessons to PlayFab.


Network Services


Here are some of the platform services that can be linked:

  • PlayFab

  • Google Play

  • Game Center

  • Facebook

  • Facebook Instant Games

  • Steam

  • Xbox Live

  • Instant Games (Android Studio port)

  • Nintendo Switch (3rd party porting services)

  • PS4 (3rd party porting services)

  • Nintendo Switch (3rd party porting services)


Editor Features


Here are some of the features in the Construct editor:

  • All platforms support, including web, mobile and desktop.

  • Construct 3

  • Construct 2

Introduction
Features

How to use?

It is easy to use the Publisher plugin, you will only need to follow the steps below.

  1. Set up the PlayFab API plugin, please click to visit the documentation. This includes creating a PlayFab account, studio and title.

  2. Set up the Authentication plugin, please click to visit the documentation.

  3. Finally, you can now use the Publisher object, and include more PlayFab addons for more features.


Instructions
Documentation

Documentation

There is currently nothing to show, we will add more in the future.


Server Management


The Publisher plugin implements both player's account studio data read & write for all the players' games (titles) in a studio, and managing, accessing and retrieving global studio data that are available to all games in a studio .These are synced by the PlayFab servers across all connected authentication methods.

There are 3 data types for the user's studio account data, the studio player data, studio read-only data and the studio player internal data.

  • Player data - both readable and writable data, customized for each player and can be public or private.

  • Read-only data - exclusively read-only data, customized for each player and can be public or private.

  • Internal data - unreadable and can't be altered from the client or the Publisher plugin. This is a developer exclusive data for the players, which can be very useful for server automation. In cases of need in reading and writing this data, it would then require the cloud scripting feature from the PlayFab > Automation console with the Cloud Script or Azure Function plugin calling it from the client (application).


Admin privileges allow you to modify each player's data automatically through the Server API automation, Cloud Script plugin, Azure Function plugin or manually using the Admin Console.

1. Login to your PlayFab account, select the title from the studio.


2. Click the Players sidebar tab, then the players list will show. Select a player, then the player overview will show.



3. From the player's overview, select the Player Data (Publisher) tab, which will show you the player's current studio user data.

4. To manually modify a player's writable and readable studio user data, simply add, change or remove the data from the list. Then, finally save changes. You can control everything here as the administrator.



5. To manually modify a player's read-only data, simply add, change or remove the user studio data from the list. Then, finally save changes. You can control everything here as the administrator.



6. To manually modify a player's internal data, simply add, change or remove the studio user data from the list. Then, finally save changes. You can control everything here as the administrator.



​You can also change all the data's privacy types to either Public or Private, just like in the plugin.


Related Plugins


  • User Data - is a plugin that implements title-wide (game-wide) user data. Instead of a user's studio account data for multiple titles (games), this is a user's data that is accessible, available and writable for only the current title (game).

  • Title Manager - is a plugin that implements title-wide global data. It is a title-wide counterpart of the Publisher plugin's studio-wide global data. Instead of a global studio data for multiple games in a studio, this plugin retrieves global title (game) data which is accessible and available for only the current title (game). Data is accessible by everyone in the title (game) including systems, spectators and user player accounts.

ACEs

Actions, Conditions & Expressions

Actions

The following action groups:

  • Get Publisher Data

  • Get User Publisher Data

  • Get User Publisher Read-only Data

  • Update User Publisher Data

  • Get Other User Publisher Data

  • Get Other User Publisher Read-only Data

  • Publisher : Locally Retrieve

  • User Publisher Read-only Data : Locally Retrieve

  • Other Publisher : Locally Retrieve

  • Other Publisher Read-only Data : Locally Retrieve

Get Publisher Dat

  • Plan Get Publisher Data - Plan to get a Publisher Data for the next "Get Publisher Data".

    • Key - ​The "Key" reference for the Publisher Data.


  • Get Publisher Data - Retrieves the key-value store of custom publisher settings.

    • Tag -​ Tag to differentiate requests.


Get User Publisher Data

  • Plan Get User Publisher Data - Plan to get a User Publisher Data for the next "Get User Publisher Data".

    • Key - ​The "Key" reference for the User Publisher Data.


  • Get User Publisher Data - Retrieves the publisher-specific custom data for the user which is readable and writable by the client.

    • Tag -​ Tag to differentiate requests.


  • Get All User Publisher Data - Retrieves all the publisher-specific custom data for the user which is readable and writable by the client.

    • Tag -​ Tag to differentiate requests.


Get User Publisher Read-Only Data

  • Plan Get User Read Data - Plan to get a User Publisher Read-Only Data for the next "Get User Publisher Read Data".

    • Key - ​The "Key" reference for the User Publisher ReadOnly Data.


  • Get User Publisher Read Data - Retrieves the publisher-specific custom data for the user which can only be read by the client.

    • Tag -​ Tag to differentiate requests.


  • Get All User Publisher Read Data - Retrieves all the publisher-specific custom data for the user which can only be read by the client.

    • Tag -​ Tag to differentiate requests.


Update User Publisher Data

  • Plan Write Data - Plan a "Write User Publisher Data" request into the next "Update User Data".

    • Key - ​Input the "Key" of the User Publisher Data. Keys are trimmed of whitespace, are limited in size, and may not begin with a "!" character or be null.

    • Value - The Value for the "User Publisher Data Key".


  • Plan Remove Data - Plan a "Remove User Publisher Data" request into the next "Update User Data".

    • Key - ​Input the "Key" of the User Data to remove.


  • Update User Publisher Data - Creates and updates the publisher-specific custom data for the user which is readable and writable by the client.

    • Permission - ​Permission to be applied to all "User Publisher Data Keys" written in this request. If "Public", it will hidden from other Players.

      • Private​

      • Public

    • Tag -​ Tag to differentiate requests.


Get Other User Publisher Data

  • Plan Get Other Publisher Data - Plan to get "Other's" Publisher Data for the next "Get User Publisher Data".

    • Key - ​The "Key" reference for the User Publisher Data.


  • Get Other Publisher Data - Retrieves the publisher-specific custom data from "Other Users" which is readable and writable by the client.

    • PlayFab ID - ​The Target Player's "PlayFabID".

    • Tag -​ Tag to differentiate requests.


  • Get All Other Publisher Data - Retrieves all the publisher-specific custom data from "Other Users" which is readable and writable by the client.

    • PlayFab ID - ​The Target Player's "PlayFabID".

    • Tag -​ Tag to differentiate requests.


Get Other User Publisher Read-Only Data

  • Plan Get Other Read Data - Plan to get Other User's Publisher Read-Only Data for the next "Get User Publisher Read Data".

    • Key - ​The "Key" reference for the User Publisher ReadOnly Data.


  • Get Other Publisher Read Data - Retrieves the publisher-specific custom data from Other Users which can only be read by the client.

    • PlayFab ID - ​The Target Player's "PlayFabID".

    • Tag -​ Tag to differentiate requests.


  • Get All Other Publisher Read Data - Retrieves all the publisher-specific custom data from Other Users which can only be read by the client.

    • PlayFab ID - ​The Target Player's "PlayFabID".

    • Tag -​ Tag to differentiate requests.


Publisher : Locally Retrieve

  • Load Publisher Data - Load the local data from the latest "Get Publisher Data".

    • Key - ​Input the "Key" of the Publisher Data to load.


User Publisher : Locally Retrieve:

  • Load User Publisher Data - Load the local data from the latest "Get User Publisher Data".

    • Key - ​Input the "Key" of the User Publisher Data to load.


User Publisher Read-Only Data : Locally Retrieve:

  • Load User Publisher Read Data - Load the local read-only data from the latest "Get User Publisher Read Data".

    • Key - ​Input the "Key" of the User Publisher Read-Only Data to load.


Other Publisher : Locally Retrieve

  • Load Other Publisher Data - Load the local data from the latest "Get Other Publisher Data".

    • Key - ​Input the "Key" of the User Publisher Data to load.


Other Publisher Read-Only Data : Locally Retrieve:

  • Load Other Publisher Read Data - Load the local read-only data from the latest "Get Other Publisher Read Data".

    • Key - ​Input the "Key" of the User Publisher Read-Only Data to load.


Conditions

The following condition groups:

  • Get Publisher Data

  • Get User Publisher Data

  • Get User Publisher Data

  • Get User Publisher Read-only Data

  • Get Other Publisher Data

  • Get Other Publisher Read-only Data

  • Update User Publisher Data

  • Load : Publisher Data