Page 3 of 3

Re: Level System MFPS

Posted: Tue Feb 20, 2018 7:57 pm
by Nerbs
In the in-game scoreboard it just shows everyone as having the same level (it's whatever level the player is). I'm sure I can figure it out, but seeing as it's advertised in the asset, I'd like to see the level of each player on the scoreboard. Ideas?

Re: Level System MFPS

Posted: Tue Feb 20, 2018 9:33 pm
by Lovatto
Nerbs wrote:In the in-game scoreboard it just shows everyone as having the same level
You are right, I have check and fix it, please download again the package from the web site,
but also require modify some lines in MFPS scripts:

in bl_RoomSettings.cs add this:

Code: Select all

#if ULSP && LM
         Hashtable PlayerTotalScore = new Hashtable();
         PlayerTotalScore.Add("TotalScore", bl_DataBase.Instance.LocalUser.Score);
         PhotonNetwork.player.SetCustomProperties(PlayerTotalScore);
#endif
after this lines: (line 96 for default)

Code: Select all

 PhotonNetwork.player.SetCustomProperties(PlayerRole);
and in bl_PlayerScoreboardUI.cs replace these lines: (40 and 59)

Code: Select all

 LevelIcon.sprite = bl_LevelManager.Instance.GetLevel().Icon;
with this:

Code: Select all

  LevelIcon.sprite = bl_LevelManager.Instance.GetPlayerLevelInfo(cachePlayer).Icon;

Re: Level System MFPS

Posted: Thu Mar 08, 2018 6:31 pm
by Oggy
:( I have a problem, score have reach new level, in Lobby Scene, new icon rank be changed but NewLevelNotifier UI not enable!

Re: Level System MFPS

Posted: Tue Jul 02, 2019 5:16 am
by slthompson
I can't seem to get it to display the level progression info by clicking on the level icon next to the player name in the Lobby.

Re: Level System MFPS

Posted: Tue Jul 02, 2019 8:36 pm
by Lovatto
Can you please confirm if the button is interactable, I mean check that the button is not blocked,
you can simply check if there is a little color transition when pass the mouse over or click on it.

Re: Level System MFPS

Posted: Wed Jul 03, 2019 9:01 am
by slthompson
There's no color indication.

Re: Level System MFPS

Posted: Sat Mar 14, 2020 8:05 am
by BigA
i have problem!

why player cant see ranking each other?
how to fix that?

Re: Level System MFPS

Posted: Fri Jun 12, 2020 6:26 pm
by Lovatto
Version 1.4

Improve: Rank icons.
Improve: Setup 78 levels with custom icons for each.
Improve: Lobby level progress window UI.
Improve: Now the level scroll list will automatically scroll to the current level of the player.

Problem with the Progress slider

Posted: Fri Nov 27, 2020 1:07 pm
by stanimirp
Hello, i have noticed that with the latest version the slider doesnt accurately represent the progress of the levels, this problem didnt exist in previous versions.

As you can see on the screenshot, i currently have 500 experience which should be exactly 50% between rank3 and rank4 but it shows it like 85%, this is true for all ranks aswell, none of them are accurately represented

Image

Re: Level System MFPS

Posted: Fri Nov 27, 2020 9:40 pm
by Lovatto
Is not an inacurracity, what is happening is that percentage is from the total player score / the score needed for the next level, from your screenshot it is:
500 / 600 = 83%

I understand your confusion, you was expecting the percentage from the current level to the next level, but you can change this by:
in bl_LevelPreview.cs -> CalculateLevel() -> change this line:

Code: Select all

 ProgressSlider.value = ((float)score / (float)nl.ScoreNeeded);
with this:

Code: Select all

float r = score - cl.ScoreNeeded;
            float t = nl.ScoreNeeded - cl.ScoreNeeded;
            if(r == 0 || t == 0) ProgressSlider.value = 0;
             else ProgressSlider.value = (r / t);