question

Alexis Bauchu avatar image
Alexis Bauchu asked

Missing PlayFabSharedSettings at runtime ?

Hello,

Some of my users, who previously had no problems, report a frozen screen at the beginning of my game. I managed to get a logcat dump from one of them, and here the result:

E/Unity   ( 8927): Exception: The number of PlayFabSharedSettings objects should be 1: 0
E/Unity   ( 8927):   at PlayFab.PlayFabSettings.GetSharedSettingsObjectPrivate () [0x00026] in <afe380847d584edea9835bb24beaf866>:0 
E/Unity   ( 8927):   at PlayFab.PlayFabSettings.get_PlayFabSharedPrivate () [0x00010] in <afe380847d584edea9835bb24beaf866>:0 
E/Unity   ( 8927):   at PlayFab.PlayFabSettings.get_RequestType () [0x00000] in <afe380847d584edea9835bb24beaf866>:0 
E/Unity   ( 8927):   at PlayFab.PluginManager.CreatePlayFabTransportPlugin () [0x00002] in <afe380847d584edea9835bb24beaf866>:0 
E/Unity   ( 8927):   at PlayFab.PluginManager.GetPluginInternal (PlayFab.PluginContract contract, System.String instanceName) [0x00038] in <afe380847d584edea9835bb24beaf866>:0 
E/Unity   ( 8927):   at PlayFab.PluginManager.GetPlugin[T] (PlayFab.PluginContract contract, System.String instanceName) [0x00000] in <afe380847d584edea9835bb24beaf866>:0 
E/Unity   ( 8927):   at PlayFab.Internal.PlayFabHttp.IsClientLoggedIn () [0x00000] in <afe380847d584edea9835bb24beaf866>:0 
E/Unity   ( 8927):   at PlayFab.PlayFabClientAPI.IsClientLoggedIn () [0x00000] in <afe380847d584edea9835bb24beaf866>:0 
E/Unity   ( 8927):   at 

The log is indeed truncated, but the exception is clear: there is 0 PlayFabSharedSettings in this build. Now, I understand you create one and only one of theses files from the Editor, but this user ended up having none (but managed to get some progress in the game, so at one point, there was one).

Have is this even possible ? PlayFab code doesn't seem to rewrite the file, ever. The build generated by Unity should contain that file and never be altered.

I'm beginning to suspect that those players actually tried to temper with the APK and are now stuck, but maybe this is a legitimate mishap ?

I'm using Unity 2017.4.9f1

PlayFab SDK version is: 2.54.181105

unity3dsdksandroid
10 |1200

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

1 Answer

·
Citrus Yan avatar image
Citrus Yan answered

Hi, we tried to reproduce your issue using exactly the same PlayFab SDK and Unity version, however, there is no exception suggest that there is 0 PlayFabSharedSettings in the build. Could you please provide us more details about your issue such as recent changes of your project so we can investigate it.

Also, you could try to update the sdk or delete all the PlayFabSharedSettings.asset files and remake a new one in case that the PlayFabSharedSettings file is corrupted. You can refer to this thread for details: https://community.playfab.com/questions/14104/how-do-i-resolve-the-number-of-playfabsharedsettin.html

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.

Alexis Bauchu avatar image Alexis Bauchu commented ·

Hello, thank you for your answer.

I forgot to point out that the issue has only ever been reported on Android.

I can't give you more info about the issue as it never happened on any of my devices, but on my users'. What's I am asking is: has anyone ever heard of an .asset file in a .apk suddenly being corrupted or deleted ? I tend to think that it's not possible, but then, what could happen to lead to that issue ? Which is why I'm tempted to think that users are trying to cheat or modify the apk. I tried myself, but don't know much about hacking Android games, so I got stuck.

Has anyone got any idea on how to modify a working .apk ?

0 Likes 0 ·
DemonKira avatar image DemonKira commented ·

Same issue for me too. Unity 2019.3.0b10 SDK 2.77.191029

,

same issue for me too.

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.