I looked for the cause of this problem, so I went into the MusicBox.php file to see what can be a problem , and shot var_dump on several variables , I began to find or it gets stuck .
My csv file is good, when I do a var_dump above during initialization of the plugin , artists, titles , file names, etc. stand without problems .
Then, when I change the map , the plugin chosen a new song ( if I look good stuff ) . In this part, there is the url. My first mistake was that in the csv , I had a path column or this column was to be folder , suddenly the road was not good. This is corrected , my way is good.
Then, when the game (if I understood again) , there 's showWidget () function is called . So I think there already , it goes a little wimp because var_dump I do on these variables are all wrong. Here in this resort :
var_dump($music)
Code: Select all
["override"]=>
bool(false)
["url"]=>
string(0) ""
["file"]=>
string(0) ""
}
var_dump($outsong)
Code: Select all
object(ManiaLivePlugins\eXpansion\MusicBox\Structures\Song)#2929 (5) {
["title"]=>
string(8) "no title"
["artist"]=>
string(9) "no artist"
["genre"]=>
NULL
["filename"]=>
NULL
["folder"]=>
NULL
}
However, when I do a var_dump on my csv, my titles ( my title here ) resort without problems .
var_dump($array); in getMusicCsv function
Code: Select all
array(1) {
[0]=>
array(5) {
["Artist"]=>
string(37) "Name Of Artist"
["Title"]=>
string(11) "Name Of song"
["Genre"]=>
string(7) "Genre of music"
["Filename"]=>
string(5) "1.ogg"
["Folder"]=>
string(1) "/"
}
}
Following this, the URL in the getMusicCsv () is good.
If I go back in showWidget () function, and I do a var_dump on the variable for the condition, here's what I have:
var_dump($music->url);
So I think there there is a worry. Be it really just me but I think I would have some things incohérantes my csv but is read correctly , and my url that points to the music is good.
With all that, we should be able to find the problem although I think
And thanks for your help
