question

Michael Lefebvre avatar image
Michael Lefebvre asked

.toJSONString causes missing dll

I am trying to receive the FunctionResult in Unreal 4.17 and use .toJSONString() function on it and pass it to a FString variable. When i go to compile its saying it cannot produce the UE4Editor-Projectname.dll. If i remove that function everything works fine.

10 |1200

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

1807605288 avatar image
1807605288 answered

I'm going to reverse my previous statement.

If I try to take an ExecuteCloudScriptResult.FunctionResult, and call "toJSONString" on it, I get the following error:

class "UPlayFabJsonObject" has no member "toJSONString"

Which makes sense, because I can't find any evidence that toJSONString was ever a thing. I'm not sure why your compiler isn't diagnosing that error before you compile, but it's just not a function.

Alternatively:

FString temp = result.FunctionResult->EncodeJson();

This works just fine.

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

Michael Lefebvre avatar image Michael Lefebvre commented ·

Oh interesting. Is this newly implemented with the UnrealBP SDK? We are currently using the UnrealCPP SDK.

0 Likes 0 ·
1807605288 avatar image 1807605288 ♦ Michael Lefebvre commented ·

OIC, you're a bit behind. We had two Unreal SDKs, both provided by our customers at different times, with a mix of features and we have been maintaining both for quite some time.

With Unreal 4.17, the UnrealCppSdk faced significant upgrade issues, and overall was less feature complete, so we discontinued it.

https://blog.playfab.com/blog/cpp-sdk-updates

https://github.com/PlayFab/UnrealBlueprintSDK/blob/master/UnrealCppSdkUpgradeGuide.md
https://community.playfab.com/questions/13162/ue4-blueprint-sdk-conversion.html

Let us know if there are any gaps in our upgrade guide which you need help with.

Thanks!

0 Likes 0 ·
1807605288 avatar image
1807605288 answered

Ok, thanks for the report.

I haven't tested 4.17 yet, so I'll start installing it now.

This should be resolved the next time we post a release here:
https://api.playfab.com/releaseNotes

I expect 2-3 weeks.

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.