MFPS Friend List + database

Support for MFPS 2.0 (for verified users)
Forum rules
To request support/assistance for MFPS, you first have to verify your purchase by sending your purchase invoice number to Lovatto in a PM.
Post Reply
User avatar
Moor
Member
Member
Posts: 23
Joined: Thu Apr 11, 2019 2:38 pm

Hallo
Game v1.8

Does anyone have this problem?
I tried to change the format of the language
There was a similar problem with "meta"

I cannot check the Lovatto project, I get an error like this:
Image

My project: How can i fix it or how can i change format?

If you add friend
Image

Your data:
Image

logout then login:
Image
Thank you
User avatar
Lovatto
Admin
Admin
Posts: 1834
Joined: Sun Dec 07, 2014 3:18 pm
Contact:

Which version of ULogin Pro are you using?
How to find your Invoice Number: Here
How to find your Order Number: Here
User avatar
Moor
Member
Member
Posts: 23
Joined: Thu Apr 11, 2019 2:38 pm

Lovatto wrote: Mon Apr 12, 2021 2:30 pm Which version of ULogin Pro are you using?
Hi.

Image
User avatar
Lovatto
Admin
Admin
Posts: 1834
Joined: Sun Dec 07, 2014 3:18 pm
Contact:

The error line from your screenshot doesn't match with the original script,
make sure the function 'CheckIfUserExist(...)' in bl_Database.cs is the same as this:

Code: Select all

public static void CheckIfUserExist(MonoBehaviour reference, string where, string index, Action<bool> callback)
    {
        bl_ULoginWebRequest webRequest = new bl_ULoginWebRequest(reference);
        var wf = bl_DataBaseUtils.CreateWWWForm(FormHashParm.Name, true);
        wf.AddSecureField("typ", 4);
        wf.AddSecureField("key", where);
        wf.AddSecureField("values", index);

        webRequest.POST(bl_LoginProDataBase.Instance.GetUrl(bl_LoginProDataBase.URLType.DataBase), wf, (result) =>
        {
            if (result.isError)
            {
                if (result.HTTPCode == 409)//response means user doesn't exists
                {
                    callback?.Invoke(false);
                    return;
                }
                else
                {
                    result.PrintError();
                    return;
                }
            }

            callback?.Invoke(result.resultState == ULoginResult.Status.Success);
        });
    }
Also, have you upgraded from an older version?
if you have, make sure you also update the Php scripts in your server.
How to find your Invoice Number: Here
How to find your Order Number: Here
User avatar
Moor
Member
Member
Posts: 23
Joined: Thu Apr 11, 2019 2:38 pm

Lovatto wrote: Mon Apr 12, 2021 5:47 pm The error line from your screenshot doesn't match with the original script,
make sure the function 'CheckIfUserExist(...)' in bl_Database.cs is the same as this:

Code: Select all

public static void CheckIfUserExist(MonoBehaviour reference, string where, string index, Action<bool> callback)
    {
        bl_ULoginWebRequest webRequest = new bl_ULoginWebRequest(reference);
        var wf = bl_DataBaseUtils.CreateWWWForm(FormHashParm.Name, true);
        wf.AddSecureField("typ", 4);
        wf.AddSecureField("key", where);
        wf.AddSecureField("values", index);

        webRequest.POST(bl_LoginProDataBase.Instance.GetUrl(bl_LoginProDataBase.URLType.DataBase), wf, (result) =>
        {
            if (result.isError)
            {
                if (result.HTTPCode == 409)//response means user doesn't exists
                {
                    callback?.Invoke(false);
                    return;
                }
                else
                {
                    result.PrintError();
                    return;
                }
            }

            callback?.Invoke(result.resultState == ULoginResult.Status.Success);
        });
    }
Also, have you upgraded from an older version?
if you have, make sure you also update the Php scripts in your server.
This error has been fixed.
And I was able to add a friend (In your project)
But after the relog
In your project and my project, it turns out a problem but not an error

Image


Image
User avatar
Moor
Member
Member
Posts: 23
Joined: Thu Apr 11, 2019 2:38 pm

If you manage to solve this problem
Please tell me how you fixed it. If a little problem
User avatar
Moor
Member
Member
Posts: 23
Joined: Thu Apr 11, 2019 2:38 pm

I have updated ULogin Pro but still the same.

Image

Then: Log Out = LogIn

Image

Then: Remove all friends = intive 1 player = Log Out = LogIn

Image

:cry:

I did not change the assembly. Check it self please.
User avatar
Lovatto
Admin
Admin
Posts: 1834
Joined: Sun Dec 07, 2014 3:18 pm
Contact:

Sorry for the late reply,
to fix this issue do the following:

in bl_ULoginMFPS.cs replace the function SaveFriendList(...) with:

Code: Select all

 public static void SaveFriendList(string friends, Action callback = null)
    {
        bl_DataBase.Instance.SaveValue("friends", friends, callback, true);
    }
This will fix the issue for friends that you add from now on, the friends added before you applied the fix will be still corrupted so you have to manually delete them.
How to find your Invoice Number: Here
How to find your Order Number: Here
User avatar
Moor
Member
Member
Posts: 23
Joined: Thu Apr 11, 2019 2:38 pm

Thank you so much for your help and information :D
Post Reply