Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Carbon] Car class category setting #4

Open
cbaaaaa opened this issue Feb 26, 2022 · 1 comment
Open

[Carbon] Car class category setting #4

cbaaaaa opened this issue Feb 26, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@cbaaaaa
Copy link

cbaaaaa commented Feb 26, 2022

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
Copy link
Owner

xan1242 commented Aug 21, 2022

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 xan1242 changed the title Carbon's car class category [Carbon] Car class category setting Aug 21, 2022
@xan1242 xan1242 added the enhancement New feature or request label Aug 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants