• 0

    posted a message on MusicStream - Stream MP3 Music from your Computer in game.
    Quote from nytekat »

    I keep getting some errors... something nintendo. When I have this addon enabled my deuce commander won't work. Anyone else have these problems? I have deleted the folder, downloaded the new one and deleted my wtf file.. still don't work without errors.

    I'm getting these errors as well even after updating everything.


    just replace this code in file <addons folder>/MusicStream/Musiclibs/Music-2.0/Music-2.0.lua

    function AddTrack(TName, _length, _title, _artist, _album, _genre)
    	if not temptrack then
    		temptrack = 0;
    	end
    	temptrack = temptrack + 1;
    	
    	Music_Tracks[TName] = { title = _title, artist = _artist, album = _album, genre = _genre, length = _length, filename = TName, track = temptrack };
    	table.insert(Music_LoadedTracks, TName);
    	
    	TracksLoaded = true;
    end


    with

    function AddTrack(TName, _length, _title, _artist, _album, _genre)
    	if not temptrack then
    		temptrack = 0;
    	end
    	if (_title == "") or (_title == "None") then _title = TName end;
    	if _artist == "" then _artist = "None" end;
    	if _album == "" then _album = "None" end;
    	if _genre == "" then _genre = "None" end;
    	temptrack = temptrack + 1;
    	
    	Music_Tracks[TName] = { title = _title, artist = _artist, album = _album, genre = _genre, length = _length, filename = TName, track = temptrack };
    	table.insert(Music_LoadedTracks, TName);
    	
    	TracksLoaded = true;
    end


    that function replace all blank fields with "None" before pull them to table, so you dont need edit ID tags.
    Posted in: General AddOns
  • To post a comment, please or register a new account.