XNFSMusicPlayer icon indicating copy to clipboard operation
XNFSMusicPlayer copied to clipboard

[Carbon] Car class category setting

Open cbaaaaa opened this issue 2 years ago • 1 comments

I've noticed that in XNFSMusicPlayer_Carbon.h, under SongAttrib, there's a variable called CarClassCategory.

imagen

And under DoFilePathsStruct you have this, the variable takes the value 2.

imagen

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?

cbaaaaa avatar Feb 26 '22 23:02 cbaaaaa

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.

xan1242 avatar Aug 21 '22 23:08 xan1242