Dynamic Music Player

Apps Dynamic Music Player 3.3

Login or Register an account to download this content
EDIT: Released an update that "fixes" this! Download 2.2!

There's no limit unless Lua will crash if the table gets too big... but that probably would be hundreds of thousands. You will run out of disk space first.

HOWEVER, the app is tracking how many times it has played each of the song, and if it played one more times than the next one on the list, it's skipping one, with intention to prioritise songs that it played less of.

I didn't think about it this way, maybe I should add a toggle to disable that... I will do that for next version
For now though, You have 2 options.

One is to clear out the list. open the data.ini folder, and delete EVERYTHING in it.

And the other option is to remove the feature.
Open the DynamicMusicPlayer.lua and search for this block of code.
View attachment 779021
Remove the few lines for it to look like this:
View attachment 779023
And save.
Thank you for the tips, but i think i found out why, i have corrupt mp3 file in the folder and when i replace it with the uncorrupted one it plays normally all of my songs, it's part my fault, once again thank you, it's a great app, but i think i'm gonna try your tip for make sure it's working properly.
 
Why the 2.2 is much worse than 2.1? all the music play at once & i can't find the fix for it
Could you send your settings.ini? Maybe i've messed something up in the configuration. It works for me.

Also I can't think of which of the recent changes could cause this.
 
Last edited:
This is my settings.ini, please check, thanks.
Man I hate to say that but... It works for me.

One more thing you can do.
When this bug happens, open Lua Debug app and see if it throws any error.
1725469808015.png
 
This is the example of the music all play at once. never have this bug in previous version.

Link to Video : https://drive.google.com/file/d/1EIlp3mp8dMirSQyhT9Mvtc731u6S95Br/view?usp=sharing
Hey at least I know to try running a race session... Gonna come back to you with results

Edit: Yea, can't reproduce even with Race. I've tried removing Idle music, doesn't seem to affect it either. Please check the Lua Debug app like I asked.

Also ngl, the reaction time on the actions with all the fades disabled is kinda ass, i might have to improve on that a bit.
 
Last edited:
Hey at least I know to try running a race session... Gonna come back to you with results

Edit: Yea, can't reproduce even with Race. I've tried removing Idle music, doesn't seem to affect it either. Please check the Lua Debug app like I asked.

Also ngl, the reaction time on the actions with all the fades disabled is kinda ass, i might have to improve on that a bit.
I will try to look at Lua debug later, but have you run the race few times in quick succession? In my first playthrough, the app run just fine no problem, but the bug start to appear in the 2nd playthrough and so on (you have to quit the race and start again from content manager, not just restarting the race from the pause menu)
 
I will try to look at Lua debug later, but have you run the race few times in quick succession? In my first playthrough, the app run just fine no problem, but the bug start to appear in the 2nd playthrough and so on (you have to quit the race and start again from content manager, not just restarting the race from the pause menu)
Maybe it bugs out when you restart and very quickly press Drive again :thinking:

I need to know where to look at but if i'm right then it might be rather easy fix (assuming it won't ruin the performance)

I've managed to reproduce it only by dropping my framerate to 1 frame per second so it's either erroring out on some of your music files or the app is skipping frames for you... I have an idea for a fix though.

Rename it from .ini to .lua and put it in DynamicMusicPlayer directory.

The fix will basically skip the current track to the end right before picking and starting a new one, everytime.

In current release version it doesn't do that in one of the two cases it plays new track.

Edit: Updated the file, i've missed one issue.
 

Attachments

  • DynamicMusicPlayer.ini
    54.7 KB · Views: 4
Last edited:
Maybe it bugs out when you restart and very quickly press Drive again :thinking:

I need to know where to look at but if i'm right then it might be rather easy fix (assuming it won't ruin the performance)

I've managed to reproduce it only by dropping my framerate to 1 frame per second so it's either erroring out on some of your music files or the app is skipping frames for you... I have an idea for a fix though.

Rename it from .ini to .lua and put it in DynamicMusicPlayer directory.

The fix will basically skip the current track to the end right before picking and starting a new one, everytime.

In current release version it doesn't do that in one of the two cases it plays new track.

Edit: Updated the file, i've missed one issue.
Hello, sorry for late reply, your attached lua file you sent earilier fixed the problem, thanks for the help, really appreciate it.
 
Hello, sorry for late reply, your attached lua file you sent earilier fixed the problem, thanks for the help, really appreciate it.
Yay, cool.
I still don't understand how any of the recent updates would cause this, because it's been like this since almost the begining of this apps existence, but, cool, i guess.
 
Damgam updated Dynamic Music Player with a new update entry:

3.0 - Tagging, Additional customisability option!

Now, guys, this is a big one.
From now on, you can add "Tags" into your music files, which tell the app to do certain things. The selection is limited, but i'm planning to expand it following the suggestions, so please leave them in the Discussion tab!

For instructions on how to use this new feature, look into the README.txt file included in the Music folder.

- Added new Tags system...

Read the rest of this update entry...
 
could it be possible to tag songs in a way that the album cover artwork pops up instead of the animated bars when a new song starts? spitballin
 
could it be possible to tag songs in a way that the album cover artwork pops up instead of the animated bars when a new song starts? spitballin
Pretty sure I cannot get the cover art embeded into the audio file. Could probably make it look for images with specific name but that feels like a lot of work and bloat. :/
 
Hey there loving the app, stupid question I'm going to ask but is it possible to add this into a server alone such as install it as an extension or is it required to install the normal way by dragging into cm?
 
Hey there loving the app, stupid question I'm going to ask but is it possible to add this into a server alone such as install it as an extension or is it required to install the normal way by dragging into cm?
Server apps need to be written a bit differently and you'd need to link to online sources for the musi, since these ain't really running directly on the server, but are instead just sent to players and ran on their machines.
 
Pretty sure I cannot get the cover art embeded into the audio file. Could probably make it look for images with specific name but that feels like a lot of work and bloat. :/
true true, i was thinkin maybe a very small 30x30 image per song would help with that maybe in a separate folder, personally im willing to take the time to tag each and every cover to its respective song but i can understand not wanting to integrate that,, thanks anyway
 
true true, i was thinkin maybe a very small 30x30 image per song would help with that maybe in a separate folder, personally im willing to take the time to tag each and every cover to its respective song but i can understand not wanting to integrate that,, thanks anyway
I'm gonna try to add it then. It will look for image that has the same name as display name in Now Playing widget. Not gonna give you any ETA for that but expect it for the next update.
 

What are you planning to upgrade this Black friday?

  • PC

  • PC Hardware (ram, gpu etc)

  • More games (sims)

  • Wheel

  • Shifter

  • Brake pedals

  • Wheel, shifter and brake in bundle

  • Rig

  • Something else?


Results are only viewable after voting.
Back
Top