Game Engine and Assets Leaks

[MFPS] Battle Pass Addon

Submitted by Viirless, , Thread ID: 273833

RE: [MFPS] Battle Pass Addon

#21
26-09-2023, 04:26 PM
websbk Wrote:
This addon is also half non-working, the Pass XP value is not updated in the database to receive the next reward, I reviewed the entire php script there is not even close to the code to update this value

This may be incomplete but it would be a good starting point to build on

RE: [MFPS] Battle Pass Addon

#22
guys do you have spawn selector?

RE: [MFPS] Battle Pass Addon

This post was last modified: 16-10-2023, 07:34 PM by cfsakil
#23
Wow. Thats what i was looking for

Anyone know how to fix this "Error 500: "

RE: [MFPS] Battle Pass Addon

This post was last modified: 27-10-2023, 11:43 AM by websbk
#24
In order for the Pass XP to be credited to the database, you need to write your calculation method in bl_Game Finish.cs
For example, it may look like this

#if BP
        public void Passxp(Action callBack = null)
        {
            int score = bl_PhotonNetwork.LocalPlayer.GetPlayerScore();
            bool winner = bl_GameManager.Instance.isLocalPlayerWinner();
            int winScore = (winner) ? bl_GameData.Instance.ScoreReward.ScoreForWinMatch : 0;
            int timePlayed = Mathf.RoundToInt(bl_GameManager.Instance.PlayedTime);
            int scorePerTime = timePlayed * bl_GameData.Instance.ScoreReward.ScorePerTimePlayed;
            int hsscore = bl_GameManager.Instance.Headshots * bl_GameData.Instance.ScoreReward.ScorePerHeadShot;
            int tscore = score + winScore + scorePerTime;
        if (bl_DataBase.Instance != null)
          {
                int newXPS = bl_DataBase.GetLocalUserMetaData().rawData.SeasonData.PassXP;
                Debug.Log("БЫЛО" + newXPS);
                int dbdata = tscore / 100;
                int tpx = newXPS + dbdata;
                int brs = bl_DataBase.Instance.LocalUser.metaData.rawData.SeasonData.PassXP = tpx;
                bl_DataBase.Instance.SaveUserMetaData(() => { callBack?.Invoke(); });
                Debug.Log("СТАЛО" + brs);
            }
            else
                callBack?.Invoke();
      }
#endif

And in the right place to call the method Passxp();

RE: [MFPS] Battle Pass Addon

#25
Hi!
Plz anybody leak the Lobby System and Chalenges addons:
https://beyondinfinitystudio.com/product/lobby-system/
https://beyondinfinitystudio.com/product/challenges/

RE: [MFPS] Battle Pass Addon

#26
07-09-2023, 12:29 AM
Viirless Wrote:
I HAVE NOT TESTED THIS ADDON YET YOU MIGHT ENCOUNTER A BUG. IF YOU DO PLEASE TELL ME AND I WILL FIND A FIX FOR YOU.
[Image: Battle-Pass.png]

Content has been stripped. Go to the quoted post to view the content.
DESCRIPTION
This add-on introduces the widely popular Battle Pass feature seen in many modern games, offering full customization to suit your preferences. The essence of this feature is the implementation of seasons, which mirror those found in contemporary games, typically spanning 1-2 months.

Included is an in-editor admin panel that empowers you to define the Battle Pass items for the new season and then seamlessly upload them to the server. Players will subsequently retrieve this data in real-time during their gameplay. The Battle Pass items come in two categories: free and premium. While players can access free rewards without any additional requirements, upgrading to the premium tier demands the expenditure of in-game currency. This, in turn, grants access to premium rewards that enhance the gaming experience.

Moreover, players are given the option to accelerate their Battle Pass progression by skipping levels in exchange for in-game currency. Additionally, a rarity system for items is currently in development, enriching the customization and excitement factor of the overall gameplay.

Incorporate this add-on into your game to introduce a versatile and engaging Battle Pass system, complete with a range of options for rewards and progression, akin to the dynamic experiences found in the gaming industry’s most modern titles.
does it work

Users browsing this thread: 5 Guest(s)