xan1242 / xnfsmusicplayer Goto Github PK
View Code? Open in Web Editor NEWXan's NFS Music Player - Custom music player replacement and a BASS library interface for NFS.
License: MIT License
Xan's NFS Music Player - Custom music player replacement and a BASS library interface for NFS.
License: MIT License
To recreate, just add "http://eurobeat.stream.laut.fm/eurobeat" to scripts/Playlist.m3u. No matter the buffer/async settings, the track plays for about 5 seconds, then stops and the game freezes for a second or so, then continues playing again. Each time the EA Trax notifier comes up as if a new song is playing.
Log output reflects this (loglevel 3):
INFO: Playing Pathfinder EventID: 12CDF9
INFO: Notifying Chyron: Elisa - Lost Into The Night
INFO: Searching path by EventID 12CDF9
INFO: Found and set file http://eurobeat.stream.laut.fm/eurobeat to 12CDF9
INFO: Type: Online stream
INFO: Playing Pathfinder EventID: 12CDF9
INFO: Notifying Chyron: Elisa - Lost Into The Night
INFO: Searching path by EventID 12CDF9
INFO: Found and set file http://eurobeat.stream.laut.fm/eurobeat to 12CDF9
INFO: Type: Online stream
INFO: Playing Pathfinder EventID: 12CDF9
INFO: Notifying Chyron: Elisa - Lost Into The Night
INFO: Searching path by EventID 12CDF9
INFO: Found and set file http://eurobeat.stream.laut.fm/eurobeat to 12CDF9
INFO: Type: Online stream
INFO: Playing Pathfinder EventID: 12CDF9
INFO: Notifying Chyron: Elisa - Lost Into The Night
INFO: Searching path by EventID 12CDF9
INFO: Found and set file http://eurobeat.stream.laut.fm/eurobeat to 12CDF9
INFO: Type: Online stream
INFO: Playing Pathfinder EventID: 12CDF9
INFO: Notifying Chyron: Elisa - Lost Into The Night
INFO: Searching path by EventID 12CDF9
INFO: Found and set file http://eurobeat.stream.laut.fm/eurobeat to 12CDF9
INFO: Type: Online stream
INFO: Playing Pathfinder EventID: 12CDF9
INFO: Notifying Chyron: Elisa - Lost Into The Night
INFO: Searching path by EventID 12CDF9
INFO: Found and set file http://eurobeat.stream.laut.fm/eurobeat to 12CDF9
INFO: Type: Online stream
INFO: Playing Pathfinder EventID: 12CDF9
INFO: Notifying Chyron: Elisa - Lost Into The Night
Hi, I had installed this mod before and managed to get it working properly, however the game glitched due to another mod corrupting the game and had to reinstall. After reinstalling the music player, the installer bypassed the extraction of the streams and assumed that all files were already extracted, finally after the setup was done, the game's menu, police chase and race music would not play anymore. I have tried deleting all files associated with the game including the mod itself to no avail. Any potential solution to this case? Thank you for your help in advance!
I'm considering removing the interactive music playback feature and I'll need to gather some thoughts and opinions on this matter...
The reasons why I'm considering it:
While it was cool to see the in-game dialogs control external utilities and make BASS play samples, I don't think it's worth keeping.
There is a possibility where I keep it, and that is only and only if someone manages to:
As a feature, keeping it as-is I could also do (and just disabling it) but during the process of simplification, I might break it.
When finishing Drift races while the mod is installed, the game CTDs. I installed the mod fresh and left the settings outside of the name of the playlist at their defaults, so it likely isn't anything caused by altering the settings. Apologies for the lack of info.
I saw that you have already commented on this as a problem, and there was even a fix for it. But I'm having this problem
In playlists with more than 32 songs, PlaybackMode settings stop working (they start playing in both menu and in-race as if they were set to AL); this is noticeable in rather large playlists
After downloading and installing this mod for NFS Carbon, the career mode no longer works. The game crashes immediately after pressing "Resume Career"->"Free Roam". "Unhandled exception at 0x004A3A67 in NFSC.exe: 0xC00000FD: Stack overflow (parameters: 0x00000001, 0x000A2FFC).", it then proceeds to throw "Exception thrown at 0x004D2263 in NFSC.exe: 0xC0000005: Access violation writing location 0x000A0FFC."
Not sure if I'm using the wrong format for my music or something, but when I more than 9 songs to my Playlist.m3u file the game crashes with this error in the console:
ERROR: Out of memory in pool Main Pool allocating (null) (size = 253706240). Largest possible = 103809024 Total = 137476
This is with ExpandMemoryPools enabled in extra options
So - both mod and "console attachment" looks like pretty much broken for me.
As soon as I add my own m3u playlist file, the game won't start.
I've tried adding it alongside the original empty m3u file.
Changed the 'XNFSMusicPlayer.ini' Playlist file path to match the name if i renamed the playlist something else.
Anything I could think of I tried.
The playlist had 1 song in mp3 format just to test that it works but as soon as I change that Playlist.m3u file, the game won't even start.
Verbose level 3 log output:
INFO: Searching path by EventID FE9C8A
INFO: Found and set file XNFSMusicPlayer\Brussel Sprout.mp3 to FE9C8A
INFO: Type: Stream
ERROR: Can't set volume attribute (handle: music): BASS Error: 5
INFO: Playing Pathfinder EventID: FE9C8A
ERROR: Can't play channel (handle: music): BASS Error: 5
I can see the bass.dll is throwing an error trying to set the volume attribute but i just don't really know what to do about it.
I've tried the following
all three formats on initial startup ogg wav and ast? Can't remember the other format. I'm using version 1.7 I believe
removed the tags from my mp3's
created m3u file from mp3tags
converted all my mp3's under 120kbps
I want use the mod so bad I've tried everything i can think of and I've just hit a wall.
Running under Proton Experimental, unable to get music playing due to above error. Log attached.
(Additionally, for what it's worth, i've not been hitting the issue with path length issues, but I did have to spoof Windows paths to get the plugin to load any tracks at all, and when no tracks are loaded, the player tries to print uninitialized memory and kills the game when showing the track name.)
(Please excuse my trash taste in music.)
Installing this mod and adding my playlist removed all game songs. Now, only custom music is present. How to have both custom and original music?
Every time at start all the songs start playing in order from the playlist. Unlike MW there is no in-game option here. Is it fixable somehow?
Hi,
Just noticed this issue, if the path contains spaces, VLC will encode them to %20
which will cause the music to be unplayable.
Manually editing the file replacing %20
back to spaces works.
For reference, when %20
are present, this is what I get in the logs:
INFO: Searching path by EventID 991472
INFO: Found and set file scripts\XNFSMusicPlayer\musics/need-for-speed-underground-2/SpiderBait%20-%20Black%20Betty.ogg to 991472
INFO: Type: OGG stream
ERROR: Error creating stream handle for file: scripts\XNFSMusicPlayer\musics/need-for-speed-underground-2/SpiderBait%20-%20Black%20Betty.ogg | BASS Error: 2
ERROR: Can't set volume attribute (handle: music): BASS Error: 5
Altough this is an easy fix with any editor using search & replace, this is still a pretty annoying thing to do.
Is there any way to fix this ?
EDIT:
This seems to affect every characters being URL encoded. Just had the issue with (
and )
with are encoded %28
and %29
respectively.
Hello, I only want to change the first song when you start the game after pressing enter in NFS Carbon, because the first song is lame as f*ck and don't give any feelings like Underground. I have a few mods on Carbon like the new animation for the menu like tunnel from Underground 1.
Because of that I want to change the first Song to another Song (from the Game self; the Song when you are tuning cars there).
Have someone a Idea and can help me please?
The songs are repeated when they are not finished yet, causing the same song to overlap many times and sound horrible, the only solution is to enter a menu outside the game (branch, shop or home) but this cannot be done in a chase and in a race it restarts the race.
hey I have a problem when I go to start the game it crashes if I put
the music but hey I need a solution
When I disabling EA Trax the game freezes for the a few seconds and goes normally again. And that strange thing happens every ~15-30 seconds (or even not so often) until pursuit starts or EA Trax is enabled.
I don't know how to fix that, so I need your help.
My settings (just in case)
Interactive music format: ogg (9.00 quality)
Custom music format: ogg (high quality)
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?
I noticed that during using XNFSPlayer in Most wanted 2005 ambience sounds play at half of speed than should be, but after removing all related XNFSPlayer files including both Interactive music and custom music folders ambience sounds play at normal speed. Can you explain what's the reason of this issue?
Hello. I Installed XNFSMusicPlayer, when i changed soundtracks in NFS MW Netshow Challenges mod playlist config is broken. Please fix it playlist config to work! Thanks.
It's currently written only for Windows path separators ('') and not Unix ('/').
hiya, so i tried to install the script and it says 'you can now exit the game', but when i relaunched the game the new music i installed is not.. there? it still plays the old song that came from the game, am i doing something wrong?
For example i select certain songs to play at the menu and the other during races, but doesn't work very well. Sometimes it will play the menu song during races and the race song will play in the menu. Did i missed something in the config or is it a bug?
I had tried the latest release of the XNFSMusicPlayer, but in-game without music, it just halts for a split-second.
As mentioned in issue #16, the game crashes when opening the EA-TRAX menu in the options. I haven't found a reason as to why this happens, but it happens every single time you open the ea trax menu.
Installer does NOT work under Wine/Proton because the work directory is wrong.
Secondly, the installer says it succeeded even though it clearly failed because of this.
Let me give a advice, why should I know about the new playback mode that I wish. Sometimes in Carbon, if composed racing music (expect checkpoint) is what I hear during the crew race, and if licensed music from the EA Trax that I could listen this during free roam or checkpoint race. Like similar game to it's mechanic, Street Racing Syndicate, Need for Speed World, Need for Speed Rivals, etc. And in Most Wanted? Well, rumor has it, be sure to figured out what's up with music mechanic from coding.
Example:
PlaybackMode=FR (Free Roam), FG (Free Roam and Racing), FM (Free Roam and Menu)
Bonus Example:
PlaybackMode=IM (Racing and Menu)
I am able to get the player working with a few songs, but from a bit of messing about I found that files with long path strings seem to overwhelm things at startup and the game refuses to launch.
If a string limit is real, how large can these be?
I have a playlist of 50 songs, all located on a separate HDD than the game, all files are mp3 and the playlist was saved via foobar2000 as some have stated would be best.
The songs that do work, have path strings about 64 char long, some of the longest file paths shown are about 116 char long
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.