FF2-Official
FF2-Official copied to clipboard
Adding support for song info
Considering how many people tend to ask questions regarding what track is playing for the current boss, would be neat if "sound_bgm" could add 2 more Kv's to allow manually adding tags to show song info.
Would save a lot of people of a major headache if FF2 would just print out the song info as soon as the theme starts playing.
Something like this:
"sound_bgm" //Background Music
{
"path1" "freak_fortress_2/daftpunk/daftpunk_bgm.mp3" //path to 1st track
"time1" "291" //length of 1st track
"name1" "{orange}Technologic{default}" //1st track name
"artist1" "{blue}Daft Punk{default}" //1st track artist
"path2" "freak_fortress_2/daftpunk/daftpunk_bgm2.mp3"
"time2" "246"
"name2" "{orange}Around the World{default}"
"artist2" "{blue}Daft Punk{default}"
"path3" "freak_fortress_2/daftpunk/daftpunk_bgm3.mp3"
"time3" "224"
"name3" "{orange}Harder, Better, Faster, Stronger{default}"
"artist3" "{blue}Daft Punk{default}"
"path4" "freak_fortress_2\daftpunk\08_get_lucky.mp3"
"time4" "248"
"name4" "{orange}Get Lucky (feat Pharrell Williams & Nile Rodgers){default}"
"artist4" "{blue}Daft Punk{default}"
}
This could also be worth a shot: https://forums.alliedmods.net/showthread.php?t=105816
2nd option would work best if boss themes already has ID3 tags applied, as that extension would auto-grab the appropriate tags with the natives it provides.
In action: https://www.youtube.com/watch?v=_KnrhZ1ejC4
@50Wliu https://github.com/shadow93/FF2-Official/commit/685a0d6d39e49339ff8ef728dcf6113b558bbbb7
Read the comments on the commit, on how the FF2_OnMusic forward would be updated once song info support is added. That's where i'm currently stuck at. Everything else works.
Also, id3 is named that way because it would stand for "ID3 Tags", despite not actually applying them to the actual MP3 file.