xan1242 / XNFSMusicPlayer

Xan's NFS Music Player - Custom music player replacement and a BASS library interface for NFS.
MIT License
26 stars 1 forks source link

[Carbon] Car class category setting #4

Open cbaaaaa opened 2 years ago

cbaaaaa commented 2 years ago

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?

xan1242 commented 2 years ago

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.