question

beckheng avatar image
beckheng asked

would your please help to provide all dependencies of PartyWin32.dll???

We try to use PlayFab Party in Unity.

Our Env:

OS: Windows 7 64 bit

Unity version: Unity 2019.4.28f1c1

PlayFab Party version: playfab-party.1.7.0.0-main.0-9.1.2021.unitypackage

Target Platfor is set to "Android"

All Base Setting include titleid login is ok now.

the problem is:

DllNotFoundException: PartyWin32 PartyCSharpSDK.SDK.PartyInitialize (System.String titleId, PartyCSharpSDK.PARTY_HANDLE& handle) (at Assets/Plugins/PlayFabPartySDK/Source/Scripts/PartySDKCSharpSource/SDK.cs:39) PlayFab.Party.PlayFabMultiplayerManager._Initialize () (at Assets/Plugins/PlayFabPartySDK/Source/Scripts/PartyUnitySDK/PlayFabMultiplayerManager.cs:746) PlayFab.Party.PlayFabMultiplayerManager.Start () (at Assets/Plugins/PlayFabPartySDK/Source/Scripts/PartyUnitySDK/PlayFabMultiplayerManager.cs:133)

We try to solve but we find the message:

Plugins: Failed to load 'Assets/Plugins/PlayFabPartySDK/Source/DLLs/Win32/PartyWin32.dll' because one or more of its dependencies could not be loaded.

the main dependencies is:

Image has the following dependencies:

api-ms-win-core-synch-l1-1-0.dll

api-ms-win-eventing-classicprovider-l1-1-0.dll

api-ms-win-core-sysinfo-l1-1-0.dll

api-ms-win-core-profile-l1-1-0.dll

api-ms-win-core-libraryloader-l1-2-0.dll

api-ms-win-crt-runtime-l1-1-0.dll

api-ms-win-crt-string-l1-1-0.dll

api-ms-win-crt-stdio-l1-1-0.dll

api-ms-win-crt-convert-l1-1-0.dll

api-ms-win-crt-locale-l1-1-0.dll

api-ms-win-crt-math-l1-1-0.dll

api-ms-win-crt-heap-l1-1-0.dll

api-ms-win-crt-time-l1-1-0.dll

api-ms-win-crt-utility-l1-1-0.dll

api-ms-win-eventing-provider-l1-1-0.dll

api-ms-win-core-version-l1-1-0.dll

api-ms-win-core-winrt-l1-1-0.dll

api-ms-win-core-winrt-string-l1-1-0.dll

our question are:

1) does this plugin support run in Unity editor.

2) if 1) is yes, where to download the full dependencies .dll s?

Thanks much!

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.

Rick Chen avatar image Rick Chen ♦ commented ·

I will do some test on the versions and settings you specified and give you update later. Your patience is appreciated.

0 Likes 0 ·
Rick Chen avatar image Rick Chen ♦ commented ·

I cannot reproduce this issue on Windows 10. Could you please describe the detail steps of how you set up your project and provide the relevant code snippet for us to diagnose? Could you also try it on Windows 10?

0 Likes 0 ·
beckheng avatar image
beckheng answered

Hi Rick Chen,

a good news here.

after we download the c++ .dll from https://www.nuget.org/packages/Microsoft.PlayFab.PlayFabParty.Cpp.Windows/

we use the dll PartyWin7.dll and it looks work first. we'll continue test and dev first. Thanks.

also the code a little change in PlayFabPartySDK\Source\Scripts\PartySDKCSharpSource\Interop\PFPInterop.cs:

//const string ThunkDllName = "PartyWin32";

const string ThunkDllName = "PartyWin7";

10 |1200

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

beckheng avatar image
beckheng answered

Hi Rick Chen,

Thanks your reply.

We do not try on Windows 10 yet.

As I think again. Would you show us one Unity Empty Project that you test PlayFab Party ok for download, So we can try out find the difference about unity or OS system.

Yes we can use other unity version or upgrade Windows version.

Are your test env here:

OS: Windows 10 64 bit?

Unity version: Unity 2019.4.28f1c1 ?

PlayFab Party version: playfab-party.1.7.0.0-main.0-9.1.2021.unitypackage ?

Target Platfor is set to "Android" ?

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.

beckheng avatar image beckheng commented ·

Hi Rick Check,

As we review the PlayFab Party document here:

https://docs.microsoft.com/en-us/gaming/playfab/features/multiplayer/networking/party-sdks

Maybe the C/C++ SDK do not support windows 7 or below?

0 Likes 0 ·
Rick Chen avatar image Rick Chen ♦ commented ·

Thank you for pointing out this document: Azure PlayFab Party SDKs - PlayFab | Microsoft Docs, it seems the Party Unity SDK does not support Windows 7. Thank you for providing the workaround that used PartyWin7. But I cannot do the test using Windows 7 and I am not sure that it will work.

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.