andruzzzhka / BeatSaverDownloader

Mod for Beat Saber to download songs from BeatSaver.com in-game
MIT License
72 stars 42 forks source link

Display more metadata #2

Closed jetbalsa closed 6 years ago

jetbalsa commented 6 years ago

I have updated the diff fields to include a stats key with more subkeys

        "difficultyLevels": [
            {
                "difficulty": "Hard",
                "difficultyRank": 4,
                "audioPath": "HARRISON-Gundam-Prologue.ogg",
                "jsonPath": "Hard.json",
                "offset": 0,
                "oldOffset": 0,
                "stats": {
                    "time": 271.5, // number of total beats, to get number of minutes do ($time / $bpm) * 60
                    "slashstat": { // uses internal notetype numbers
                        "1": 124,
                        "3": 79,
                        "2": 58,
                        "0": 90,
                        "6": 6,
                        "5": 11,
                        "4": 8,
                        "8": 49,
                        "7": 3
                    },
                    "events": 220, //totals
                    "notes": 428, //totals
                    "obstacles": 100 //totals
                }
            }
        ]

only displays on newly uploaded songs, i plan on back porting the data soon