question

greenfresh20 avatar image
greenfresh20 asked

Unreal SDK After packaging with plugin enabled game won't start

Hello,

I can compile game without any issues but after that game won't start.

Only starts new process that has about 40 KB and that is immediately after stopped (I mean dissapeared) and nothing happens.

I've tried almost every branch from PlayFab github and no one works.

For sure if I disable plugin, game runs normally.

Thank you for every answer.

sdksunreal
1 comment
10 |1200

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

greenfresh20 avatar image greenfresh20 commented ·

Ok, more than 40 KB.

There's screenshot of process in task manager. HERE (in Czech)

I tried UE4 4.20 and one from source but same problem appeared.

0 Likes 0 ·
mbneto avatar image
mbneto answered

Had the same problem. The bug is in the way the PlayFabCpp module initializes some static const properties by calling into the PlayFabCommon module directly. It works in the editor because the dlls are loaded in the correct order, but in a shipping build everything is put into the same executable and static initialization will happen before the UE4 modules system has initialized the PlayFabCommon module.

To fix, you need to modify the PlayFabCpp source code. I attached a zip with the modified files:

playfabcpp.zip


playfabcpp.zip (3.2 KiB)
3 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.

mbneto avatar image mbneto commented ·

I also made a pull request to the SDKGenerator with the fix:

https://github.com/PlayFab/SDKGenerator/pull/294

0 Likes 0 ·
greenfresh20 avatar image greenfresh20 mbneto commented ·

I'll try it. Thank you so much! I've been looking into source code for hours :D

0 Likes 0 ·
brendan avatar image brendan mbneto commented ·

Thanks, @MBNeto! I've asked the SDK team to have a look at your pull request as soon as they can.

0 Likes 0 ·
Alexander Galeev avatar image
Alexander Galeev answered

have the very same issue

stuck with old plugin version that do not work with blueprint nativization T_T

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.