[FIXED]Error with Expansion : need Core to be installed

The next generation of server controlling with clean and powerful user interface

Moderators: oliverde8, reaby, NADEO

endbase
Posts: 475
Joined: 26 Jun 2011, 19:34

Re: Error with Expansion : need Core to be installed

Post by endbase »

The info you put in is

DirectoryIndex name of the title.ogg
DirectoryIndex second name of the next title.ogg

and so on for all the songs.

Greetz Base
vortak
Posts: 14
Joined: 19 Aug 2011, 20:28

Re: Error with Expansion : need Core to be installed

Post by vortak »

I tried with .htaccess , be I'm doing wrong, it still does not work
endbase
Posts: 475
Joined: 26 Jun 2011, 19:34

Re: Error with Expansion : need Core to be installed

Post by endbase »

Oke maybe the csv is not corrrect then in pointing out the correct path ?

Here is the info on my csv

funfm Great Music / 426.ogg
funfm Great Music / 427.ogg
funfm Great Music / 428.ogg
funfm Great Music / 429.ogg

and on the .htaccess file

DirectoryIndex 426.ogg
DirectoryIndex 427.ogg
DirectoryIndex 428.ogg
DirectoryIndex 429.ogg

For example

Greets Base
vortak
Posts: 14
Joined: 19 Aug 2011, 20:28

Re: Error with Expansion : need Core to be installed

Post by vortak »

I redo everything : the .htaccess , csv but nothing. The title appears good, but no music starts up . Concerant pointing to me I'm good.
Csv is in the same folder as the music , I have the list when I / music , and I advanced as it should, so I can not understand .
endbase
Posts: 475
Joined: 26 Jun 2011, 19:34

Re: Error with Expansion : need Core to be installed

Post by endbase »

Strange should work but maybe others have suggestions to help you out with solving this one :pop:
vortak
Posts: 14
Joined: 19 Aug 2011, 20:28

Re: Error with Expansion : need Core to be installed

Post by vortak »

So after that can be my csv file (format) that is not good, it may be my csv file that are not good, but I also tried with files tests found in the documentation of more MusicBox , but it does nothing more.

So unless an error 'm hiding in order to understand the origin of the problem, then I am lost. Maybe I have a bad config my server too, I do not think I have seen rientouché except for port connection dedi .

Then it turns to a Linux may be that there are things to adapt or whatever level paths for example , permits etc.
vortak
Posts: 14
Joined: 19 Aug 2011, 20:28

Re: Error with Expansion : need Core to be installed

Post by vortak »

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);

Code: Select all

string(0) ""
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 :)
reaby
Posts: 956
Joined: 29 Dec 2010, 23:26
Location: Eastern Finland
Contact:

Re: Musicbox problems

Post by reaby »

I don't know why the plugin doesn't work for you.

I tried with the default settings and it works fine! Though I had put kind of wrong url for the plugin by default. It supposed to be the "musictest" instead of the "music" folder, so I changed it correct now at the server and wiki documentation :thx:

Looks like you know some PHP :)
If you think the plugin could be enhanced, feel free to contribute a fix here at the forums or do a pull request at github :3

--
Reaby
vortak
Posts: 14
Joined: 19 Aug 2011, 20:28

Music Problems

Post by vortak »

I do personal development and for my job , so I know a little php , most of the bulk of the basic one will say , enough to create some complex applications :) I could possibly attend why not ;)

Well I just test again and I find myself a bit stupid ... your test link does not work , it marked me that the file was invalid. Just to make sure I turned all the plugins and I reinstalled, and this time by changing the link in the configuration it worked the first time , so now I have a little trouble understanding what happened , unless I touched something very time that we should not , so I 'm going to test my files to see what happens . Hoping that this time it is good , if not mean in any case it is a problem that is on my side , not the plugin.
vortak
Posts: 14
Joined: 19 Aug 2011, 20:28

Re: Error with Expansion : need Core to be installed

Post by vortak »

Problem solved.

In the case of url, i've put 127.0.0.1, but don't work. But, i've put my dns address, and the plugin works.
Post Reply

Return to “eXpansion”

Who is online

Users browsing this forum: No registered users and 0 guests