#Compilation errors after importing PlayFabParty Unity Package

7 messages · Page 1 of 1 (latest)

shrewd gate
#

Hi again and thanks for your time!

Today I'm learning to implement the Party system into a game in Unity 2022.3.41f1. I've installed the base SDK, made some API calls, and even made a little chat client using Shared Group Data as a learning project. Everything is working great and I'm really enjoying learning.

Today I installed the PlayFabPartyUnity Package into the same project and got 3 compilation errors when I did. I have allowed unsafe code. Here is the first:

Assets\PlayFabSDK\Shared\Internal\PlayFabHttp\GzipDownloadHandler.cs(54,44): error CS1061: 'PlayFabApiSettings' does not contain a definition for 'DecompressWithDownloadHandler' and no accessible extension method 'DecompressWithDownloadHandler' accepting a first argument of type 'PlayFabApiSettings' could be found (are you missing a using directive or an assembly reference?)

PlayFabSettings.staticSettings.DecompressWithDownloadHandler = false; // this is the line causing the error

If I comment out this line, I get two new compilation errors

Assets\PlayFabPartySDK\Source\Scripts\PartyUnitySDK\PlayFabEventTracer.cs(97,47): error CS0117: 'Version' does not contain a definition for 'PartyNativeVersion'

Assets\PlayFabPartySDK\Source\Scripts\PartyUnitySDK\PlayFabEventTracer.cs(98,52): error CS0117: 'Version' does not contain a definition for 'PartyUnityVersion'

What should I do to resolve these? Thanks again!

GitHub

Contribute to PlayFab/PlayFabPartyUnity development by creating an account on GitHub.

shrewd gate
#

After just commenting out these lines, making a test script for the party features worked fine within the Unity editor. I built the program for WebGL, my target platform, then realized it would not work as it relies on DLL files that WebGL does not like (Unable to load DLL 'PartyWin32' in Brave console), so I am abandoning this approach and will close this question.

soft pier
shrewd gate
soft pier
#

Hi! You used Photon fusion instead of PlayFab, yes? Does it do cross-play like PlayFab?

shrewd gate
soft pier
#

Cool! Congratulations on your project!