XNFSMusicPlayer
XNFSMusicPlayer copied to clipboard
[Carbon] Car class category setting
I've noticed that in XNFSMusicPlayer_Carbon.h, under SongAttrib, there's a variable called CarClassCategory.
And under DoFilePathsStruct you have this, the variable takes the value 2.
In the game, all songs of the music player are on all categories.
I know that Class Categories are represented by numbers; 1 for Exotics, 2 for Muscles and 3 for Tuners. Wouldn't be possible to assign the class category under a song in PlaylistConfig.ini? For example:
[E95E7B] TrackEnabled= 0 Title=My music title Album=My music album Artist=My music artist CarClassCategory=1
Or is there some kind of issue that won't let the music player do this?
The issue is due to the way it's implemented.
Currently wherever the function GetTrackAttribPointer()
is called, it returns the SongAttrib no matter the car class.
It was implemented this way because it was particularly difficult to deal with the attribute stuff in general and as far as I remember this was the only way I could implement it without pulling my hair out.
It needs more research to implement properly.