Skip to content

Commit

Permalink
https://docs.microsoft.com/en-us/gaming/playfab/release-notes/#241025
Browse files Browse the repository at this point in the history
  • Loading branch information
PlayFab SDK Team authored and PlayFab SDK Team committed Oct 30, 2024
2 parents 1d5a83f + 9cc9ec4 commit 32d4dba
Show file tree
Hide file tree
Showing 267 changed files with 900 additions and 300 deletions.
4 changes: 2 additions & 2 deletions 4.23/ExampleProject/Plugins/PlayFab/PlayFab.uplugin
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
"FriendlyName": "PlayFab Marketplace Plugin",
"Version": 0,
"EngineVersion": "4.23.0",
"VersionName": "1.152.240913",
"VersionName": "1.154.241025",
"CreatedBy": "PlayFab and Phoenix Labs",
"CreatedByURL": "https://playfab.com/",
"DocsURL": "https://learn.microsoft.com/en-us/gaming/playfab/sdks/unreal/quickstart",
"SupportURL": "https://community.playfab.com/index.html",
"Category": "PlayFab",
"Description": "PlayFab Marketplace plugin for Unreal Engine 4.23 Current API version: 1.152.240913",
"Description": "PlayFab Marketplace plugin for Unreal Engine 4.23 Current API version: 1.154.241025",
"MarketplaceURL": "com.epicgames.launcher://ue/marketplace/content/217fdf581b784571af03d3fb6580368f",
"Modules": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ class PLAYFAB_API UPlayFabProgressionAPI : public UOnlineBlueprintCallProxyBase
// callbacks
DECLARE_DYNAMIC_DELEGATE_TwoParams(FDelegateOnSuccessGetFriendLeaderboardForEntity, FProgressionGetEntityLeaderboardResponse, result, UObject*, customData);

/** Get the friend leaderboard for the specified entity. A maximum of 100 friend entries are listed in the leaderboard. */
/** Get the friend leaderboard for the specified entity. A maximum of 25 friend entries are listed in the leaderboard. */
UFUNCTION(BlueprintCallable, Category = "PlayFab | Progression | Leaderboards ", meta = (BlueprintInternalUseOnly = "true"))
static UPlayFabProgressionAPI* GetFriendLeaderboardForEntity(FProgressionGetFriendLeaderboardForEntityRequest request,
FDelegateOnSuccessGetFriendLeaderboardForEntity onSuccess,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,12 @@ struct PLAYFAB_API FProgressionGetEntityLeaderboardResponse : public FPlayFabRes
{
GENERATED_USTRUCT_BODY()
public:
/** Leaderboard columns describing the sort directions, */
/** Leaderboard columns describing the sort directions. */
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "PlayFab | Progression | Leaderboards Models")
TArray<UPlayFabJsonObject*> Columns;
/** The number of entries on the leaderboard. */
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "PlayFab | Progression | Leaderboards Models")
int32 EntryCount = 0;
/** Individual entity rankings in the leaderboard, in sorted order by rank. */
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "PlayFab | Progression | Leaderboards Models")
TArray<UPlayFabJsonObject*> Rankings;
Expand Down Expand Up @@ -352,7 +355,7 @@ struct PLAYFAB_API FProgressionCreateStatisticDefinitionRequest : public FPlayFa
/** The entity type allowed to have score(s) for this statistic. */
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "PlayFab | Progression | Statistics Models")
FString EntityType;
/** Name of the statistic. Must be less than 50 characters. Restricted to a-Z, 0-9, '(', ')', '_', '-' and '.'. */
/** Name of the statistic. Must be less than 150 characters. Restricted to a-Z, 0-9, '(', ')', '_', '-' and '.'. */
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "PlayFab | Progression | Statistics Models")
FString Name;
/** The version reset configuration for the statistic definition. */
Expand Down Expand Up @@ -407,7 +410,7 @@ struct PLAYFAB_API FProgressionGetStatisticDefinitionRequest : public FPlayFabRe
/** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "PlayFab | Progression | Statistics Models")
UPlayFabJsonObject* CustomTags = nullptr;
/** Name of the statistic. Must be less than 50 characters. */
/** Name of the statistic. Must be less than 150 characters. */
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "PlayFab | Progression | Statistics Models")
FString Name;
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ void UPlayFabProgressionAPI::HelperDeleteLeaderboardEntries(FPlayFabBaseModel re
this->RemoveFromRoot();
}

/** Get the friend leaderboard for the specified entity. A maximum of 100 friend entries are listed in the leaderboard. */
/** Get the friend leaderboard for the specified entity. A maximum of 25 friend entries are listed in the leaderboard. */
UPlayFabProgressionAPI* UPlayFabProgressionAPI::GetFriendLeaderboardForEntity(FProgressionGetFriendLeaderboardForEntityRequest request,
FDelegateOnSuccessGetFriendLeaderboardForEntity onSuccess,
FDelegateOnFailurePlayFabError onFailure,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ FProgressionGetEntityLeaderboardResponse UPlayFabProgressionModelDecoder::decode
UPlayFabJsonObject* dataObj = !(response->HasField("data")) ? nullptr : response->GetObjectField("data");

tempStruct.Columns = !(dataObj->HasField("Columns")) ? TArray<UPlayFabJsonObject*>() : dataObj->GetObjectArrayField("Columns");
tempStruct.EntryCount = !(dataObj->HasField("EntryCount")) ? 0 : int(dataObj->GetNumberField("EntryCount"));
tempStruct.Rankings = !(dataObj->HasField("Rankings")) ? TArray<UPlayFabJsonObject*>() : dataObj->GetObjectArrayField("Rankings");
tempStruct.Version = !(dataObj->HasField("Version")) ? 0 : int(dataObj->GetNumberField("Version"));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -624,6 +624,8 @@ FString UPlayFabUtilities::getErrorText(int32 code)
case 1591: returnText = "MaxQueryableVersionsValueNotAllowedForTier"; break;
case 1592: returnText = "StatisticDefinitionHasNullOrEmptyVersionConfiguration"; break;
case 1593: returnText = "StatisticColumnLengthMismatch"; break;
case 1594: returnText = "InvalidExternalEntityId"; break;
case 1595: returnText = "UpdatingStatisticsUsingTransactionIdNotAvailableForFreeTier"; break;
case 2001: returnText = "MatchmakingEntityInvalid"; break;
case 2002: returnText = "MatchmakingPlayerAttributesInvalid"; break;
case 2016: returnText = "MatchmakingQueueNotFound"; break;
Expand Down Expand Up @@ -890,6 +892,8 @@ FString UPlayFabUtilities::getErrorText(int32 code)
case 20063: returnText = "TrueSkillInvalidPlayerId"; break;
case 20064: returnText = "TrueSkillInvalidSquadSize"; break;
case 20065: returnText = "TrueSkillConditionSetNotInModel"; break;
case 20066: returnText = "TrueSkillModelStateInvalidForOperation"; break;
case 20067: returnText = "TrueSkillScenarioContainsActiveModel"; break;
case 20300: returnText = "GameSaveManifestNotFound"; break;
case 20301: returnText = "GameSaveManifestVersionAlreadyExists"; break;
case 20302: returnText = "GameSaveConflictUpdatingManifest"; break;
Expand All @@ -899,6 +903,8 @@ FString UPlayFabUtilities::getErrorText(int32 code)
case 20306: returnText = "GameSaveUnknownFileInManifest"; break;
case 20307: returnText = "GameSaveFileExceededReportedSize"; break;
case 20308: returnText = "GameSaveFileNotUploaded"; break;
case 20309: returnText = "GameSaveBadRequest"; break;
case 20310: returnText = "GameSaveOperationNotAllowed"; break;
case 21000: returnText = "StateShareForbidden"; break;
case 21001: returnText = "StateShareTitleNotInFlight"; break;
case 21002: returnText = "StateShareStateNotFound"; break;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@

namespace PlayFabCommon
{
const FString PlayFabCommonSettings::sdkVersion = "1.152.240913";
const FString PlayFabCommonSettings::sdkVersion = "1.154.241025";
const FString PlayFabCommonSettings::buildIdentifier = "adobuild_unrealmarketplaceplugin_215";
const FString PlayFabCommonSettings::versionString = "UE4MKPL-1.152.240913";
const FString PlayFabCommonSettings::versionString = "UE4MKPL-1.154.241025";
const FString PlayFabCommonSettings::engineVersion = "4.23";
#if defined(_XBOX_ONE) || defined(_XBOX) || defined(MICROSOFT_GAME_CORE)
const FString PlayFabCommonSettings::platformString = "GDK";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1253,6 +1253,9 @@ void PlayFab::ProgressionModels::FGetEntityLeaderboardResponse::writeJSON(JsonWr
}


writer->WriteIdentifierPrefix(TEXT("EntryCount"));
writer->WriteValue(static_cast<int64>(EntryCount));

if (Rankings.Num() != 0)
{
writer->WriteArrayStart(TEXT("Rankings"));
Expand Down Expand Up @@ -1280,6 +1283,13 @@ bool PlayFab::ProgressionModels::FGetEntityLeaderboardResponse::readFromValue(co
}


const TSharedPtr<FJsonValue> EntryCountValue = obj->TryGetField(TEXT("EntryCount"));
if (EntryCountValue.IsValid() && !EntryCountValue->IsNull())
{
uint32 TmpValue;
if (EntryCountValue->TryGetNumber(TmpValue)) { EntryCount = TmpValue; }
}

const TArray<TSharedPtr<FJsonValue>>&RankingsArray = FPlayFabJsonHelpers::ReadArray(obj, TEXT("Rankings"));
for (int32 Idx = 0; Idx < RankingsArray.Num(); Idx++)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -598,6 +598,8 @@ namespace PlayFab
PlayFabErrorMaxQueryableVersionsValueNotAllowedForTier = 1591,
PlayFabErrorStatisticDefinitionHasNullOrEmptyVersionConfiguration = 1592,
PlayFabErrorStatisticColumnLengthMismatch = 1593,
PlayFabErrorInvalidExternalEntityId = 1594,
PlayFabErrorUpdatingStatisticsUsingTransactionIdNotAvailableForFreeTier = 1595,
PlayFabErrorMatchmakingEntityInvalid = 2001,
PlayFabErrorMatchmakingPlayerAttributesInvalid = 2002,
PlayFabErrorMatchmakingQueueNotFound = 2016,
Expand Down Expand Up @@ -864,6 +866,8 @@ namespace PlayFab
PlayFabErrorTrueSkillInvalidPlayerId = 20063,
PlayFabErrorTrueSkillInvalidSquadSize = 20064,
PlayFabErrorTrueSkillConditionSetNotInModel = 20065,
PlayFabErrorTrueSkillModelStateInvalidForOperation = 20066,
PlayFabErrorTrueSkillScenarioContainsActiveModel = 20067,
PlayFabErrorGameSaveManifestNotFound = 20300,
PlayFabErrorGameSaveManifestVersionAlreadyExists = 20301,
PlayFabErrorGameSaveConflictUpdatingManifest = 20302,
Expand All @@ -873,6 +877,8 @@ namespace PlayFab
PlayFabErrorGameSaveUnknownFileInManifest = 20306,
PlayFabErrorGameSaveFileExceededReportedSize = 20307,
PlayFabErrorGameSaveFileNotUploaded = 20308,
PlayFabErrorGameSaveBadRequest = 20309,
PlayFabErrorGameSaveOperationNotAllowed = 20310,
PlayFabErrorStateShareForbidden = 21000,
PlayFabErrorStateShareTitleNotInFlight = 21001,
PlayFabErrorStateShareStateNotFound = 21002,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6111,7 +6111,7 @@ namespace MultiplayerModels
// [optional] Controls whether and how to support direct peer-to-peer connection attempts among devices in the network.
FString DirectPeerConnectivityOptions;

// The maximum number of devices allowed to connect to the network. Must be between 1 and 32, inclusive.
// The maximum number of devices allowed to connect to the network. Must be between 1 and 128, inclusive.
uint32 MaxDevices;

// The maximum number of devices allowed per user. Must be greater than 0.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ namespace PlayFab
bool DeleteStatisticDefinition(ProgressionModels::FDeleteStatisticDefinitionRequest& request, const FDeleteStatisticDefinitionDelegate& SuccessDelegate = FDeleteStatisticDefinitionDelegate(), const FPlayFabErrorDelegate& ErrorDelegate = FPlayFabErrorDelegate());
// Delete statistics on an entity profile. This will remove all rankings from associated leaderboards.
bool DeleteStatistics(ProgressionModels::FDeleteStatisticsRequest& request, const FDeleteStatisticsDelegate& SuccessDelegate = FDeleteStatisticsDelegate(), const FPlayFabErrorDelegate& ErrorDelegate = FPlayFabErrorDelegate());
// Get the friend leaderboard for the specified entity. A maximum of 100 friend entries are listed in the leaderboard.
// Get the friend leaderboard for the specified entity. A maximum of 25 friend entries are listed in the leaderboard.
bool GetFriendLeaderboardForEntity(ProgressionModels::FGetFriendLeaderboardForEntityRequest& request, const FGetFriendLeaderboardForEntityDelegate& SuccessDelegate = FGetFriendLeaderboardForEntityDelegate(), const FPlayFabErrorDelegate& ErrorDelegate = FPlayFabErrorDelegate());
// Get the leaderboard for a specific entity type and statistic.
bool GetLeaderboard(ProgressionModels::FGetEntityLeaderboardRequest& request, const FGetLeaderboardDelegate& SuccessDelegate = FGetLeaderboardDelegate(), const FPlayFabErrorDelegate& ErrorDelegate = FPlayFabErrorDelegate());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ namespace ProgressionModels
// [optional] The entity type allowed to have score(s) for this statistic.
FString EntityType;

// Name of the statistic. Must be less than 50 characters. Restricted to a-Z, 0-9, '(', ')', '_', '-' and '.'.
// Name of the statistic. Must be less than 150 characters. Restricted to a-Z, 0-9, '(', ')', '_', '-' and '.'.
FString Name;

// [optional] The version reset configuration for the statistic definition.
Expand Down Expand Up @@ -609,8 +609,11 @@ namespace ProgressionModels

struct PLAYFABCPP_API FGetEntityLeaderboardResponse : public PlayFab::FPlayFabCppResultCommon
{
// [optional] Leaderboard columns describing the sort directions,
// [optional] Leaderboard columns describing the sort directions.
TArray<FLeaderboardColumn> Columns;
// The number of entries on the leaderboard.
uint32 EntryCount;

// [optional] Individual entity rankings in the leaderboard, in sorted order by rank.
TArray<FEntityLeaderboardEntry> Rankings;
// Version of the leaderboard being returned.
Expand All @@ -619,6 +622,7 @@ namespace ProgressionModels
FGetEntityLeaderboardResponse() :
FPlayFabCppResultCommon(),
Columns(),
EntryCount(0),
Rankings(),
Version(0)
{}
Expand Down Expand Up @@ -841,7 +845,7 @@ namespace ProgressionModels
{
// [optional] The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.).
TMap<FString, FString> CustomTags;
// Name of the statistic. Must be less than 50 characters.
// Name of the statistic. Must be less than 150 characters.
FString Name;

FGetStatisticDefinitionRequest() :
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ namespace PlayFab
bool DeleteStatisticDefinition(ProgressionModels::FDeleteStatisticDefinitionRequest& request, const FDeleteStatisticDefinitionDelegate& SuccessDelegate = FDeleteStatisticDefinitionDelegate(), const FPlayFabErrorDelegate& ErrorDelegate = FPlayFabErrorDelegate());
// Delete statistics on an entity profile. This will remove all rankings from associated leaderboards.
bool DeleteStatistics(ProgressionModels::FDeleteStatisticsRequest& request, const FDeleteStatisticsDelegate& SuccessDelegate = FDeleteStatisticsDelegate(), const FPlayFabErrorDelegate& ErrorDelegate = FPlayFabErrorDelegate());
// Get the friend leaderboard for the specified entity. A maximum of 100 friend entries are listed in the leaderboard.
// Get the friend leaderboard for the specified entity. A maximum of 25 friend entries are listed in the leaderboard.
bool GetFriendLeaderboardForEntity(ProgressionModels::FGetFriendLeaderboardForEntityRequest& request, const FGetFriendLeaderboardForEntityDelegate& SuccessDelegate = FGetFriendLeaderboardForEntityDelegate(), const FPlayFabErrorDelegate& ErrorDelegate = FPlayFabErrorDelegate());
// Get the leaderboard for a specific entity type and statistic.
bool GetLeaderboard(ProgressionModels::FGetEntityLeaderboardRequest& request, const FGetLeaderboardDelegate& SuccessDelegate = FGetLeaderboardDelegate(), const FPlayFabErrorDelegate& ErrorDelegate = FPlayFabErrorDelegate());
Expand Down
4 changes: 2 additions & 2 deletions 4.23/PlayFabPlugin/PlayFab/PlayFab.uplugin
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
"FriendlyName": "PlayFab Marketplace Plugin",
"Version": 0,
"EngineVersion": "4.23.0",
"VersionName": "1.152.240913",
"VersionName": "1.154.241025",
"CreatedBy": "PlayFab and Phoenix Labs",
"CreatedByURL": "https://playfab.com/",
"DocsURL": "https://learn.microsoft.com/en-us/gaming/playfab/sdks/unreal/quickstart",
"SupportURL": "https://community.playfab.com/index.html",
"Category": "PlayFab",
"Description": "PlayFab Marketplace plugin for Unreal Engine 4.23 Current API version: 1.152.240913",
"Description": "PlayFab Marketplace plugin for Unreal Engine 4.23 Current API version: 1.154.241025",
"MarketplaceURL": "com.epicgames.launcher://ue/marketplace/content/217fdf581b784571af03d3fb6580368f",
"Modules": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ class PLAYFAB_API UPlayFabProgressionAPI : public UOnlineBlueprintCallProxyBase
// callbacks
DECLARE_DYNAMIC_DELEGATE_TwoParams(FDelegateOnSuccessGetFriendLeaderboardForEntity, FProgressionGetEntityLeaderboardResponse, result, UObject*, customData);

/** Get the friend leaderboard for the specified entity. A maximum of 100 friend entries are listed in the leaderboard. */
/** Get the friend leaderboard for the specified entity. A maximum of 25 friend entries are listed in the leaderboard. */
UFUNCTION(BlueprintCallable, Category = "PlayFab | Progression | Leaderboards ", meta = (BlueprintInternalUseOnly = "true"))
static UPlayFabProgressionAPI* GetFriendLeaderboardForEntity(FProgressionGetFriendLeaderboardForEntityRequest request,
FDelegateOnSuccessGetFriendLeaderboardForEntity onSuccess,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,12 @@ struct PLAYFAB_API FProgressionGetEntityLeaderboardResponse : public FPlayFabRes
{
GENERATED_USTRUCT_BODY()
public:
/** Leaderboard columns describing the sort directions, */
/** Leaderboard columns describing the sort directions. */
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "PlayFab | Progression | Leaderboards Models")
TArray<UPlayFabJsonObject*> Columns;
/** The number of entries on the leaderboard. */
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "PlayFab | Progression | Leaderboards Models")
int32 EntryCount = 0;
/** Individual entity rankings in the leaderboard, in sorted order by rank. */
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "PlayFab | Progression | Leaderboards Models")
TArray<UPlayFabJsonObject*> Rankings;
Expand Down Expand Up @@ -352,7 +355,7 @@ struct PLAYFAB_API FProgressionCreateStatisticDefinitionRequest : public FPlayFa
/** The entity type allowed to have score(s) for this statistic. */
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "PlayFab | Progression | Statistics Models")
FString EntityType;
/** Name of the statistic. Must be less than 50 characters. Restricted to a-Z, 0-9, '(', ')', '_', '-' and '.'. */
/** Name of the statistic. Must be less than 150 characters. Restricted to a-Z, 0-9, '(', ')', '_', '-' and '.'. */
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "PlayFab | Progression | Statistics Models")
FString Name;
/** The version reset configuration for the statistic definition. */
Expand Down Expand Up @@ -407,7 +410,7 @@ struct PLAYFAB_API FProgressionGetStatisticDefinitionRequest : public FPlayFabRe
/** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "PlayFab | Progression | Statistics Models")
UPlayFabJsonObject* CustomTags = nullptr;
/** Name of the statistic. Must be less than 50 characters. */
/** Name of the statistic. Must be less than 150 characters. */
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "PlayFab | Progression | Statistics Models")
FString Name;
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ void UPlayFabProgressionAPI::HelperDeleteLeaderboardEntries(FPlayFabBaseModel re
this->RemoveFromRoot();
}

/** Get the friend leaderboard for the specified entity. A maximum of 100 friend entries are listed in the leaderboard. */
/** Get the friend leaderboard for the specified entity. A maximum of 25 friend entries are listed in the leaderboard. */
UPlayFabProgressionAPI* UPlayFabProgressionAPI::GetFriendLeaderboardForEntity(FProgressionGetFriendLeaderboardForEntityRequest request,
FDelegateOnSuccessGetFriendLeaderboardForEntity onSuccess,
FDelegateOnFailurePlayFabError onFailure,
Expand Down
Loading

0 comments on commit 32d4dba

Please sign in to comment.