B
BassFan
Guest
How does vis_milk care where it is in relation to Mediaportal? As far as I can see the INI file is always created in the same directory as vis_milk. Go check out hwahrmans posts on page 2 of this thread where he shows his path to be:
c:\Program Files\Team Mediaportal\MusicPlayer\plugins\visualisations\Win Amp\MilkDrop\vis_milk
which according to your post wont work. I don't think this is the issue but I'm going to try it when I get a chance tomorrow.
I have written the Bass_Vis and if I say this then the wrong path is it also is in such a way.
The given path of Hwahrmann is the wrong path.
any is bad
Pluginpath ist 'visualisations'
BassVis set the environmentPath to ''visualisations' not other Path!
you can not use
c:\Program Files\Team Mediaportal\MusicPlayer\plugins\visualisations\Win Amp\MilkDrop\vis_milk
put all plugins and Folders to ''visualisations' not other path.
Source..
Code:
string skinFolderPath = Path.Combine(Application.StartupPath, @"musicplayer\plugins\visualizations");
string[] soniqueVisPaths = BassVis.BASS_VIS_FindPlugins(skinFolderPath, BASSWINAMPFindPlugin.BASS_VIS_FIND_SONIQUE | BASSWINAMPFindPlugin.BASS_VIS_FIND_RECURSIVE); ;
// Init winamp Support, otherwise we won't get any infos about winamp plugins
BassVis.BASS_WINAMPVIS_Init(BassVis.GetWindowLongPtr(GUIGraphicsContext.form.Handle, (int)GWLIndex.GWL_HINSTANCE), VizRenderWindow.Handle);
string[] winampVisPaths = BassVis.BASS_VIS_FindPlugins(skinFolderPath, BASSWINAMPFindPlugin.BASS_VIS_FIND_WINAMP | BASSWINAMPFindPlugin.BASS_VIS_FIND_RECURSIVE); ;
Application.StartupPath = c:\Program Files\Team Mediaportal
skinFolderPath = Application.StartupPath + \musicplayer\plugins\visualizations
BassVis.BASS_VIS_FindPlugins(skinFolderPath ...
hwahrman use the Flag 'BASS_VIS_FIND_RECURSIVE' this is verry critical User can copy Plugins in bad Folder then nothing work.
this is thats milk can read and create INI file in bad Folder... OK?
BassVis not actcept this.
BassVis work only correct your use visualizations Folder not other Folder this is my warnig!
EDIT:
i have write a Mail to hwahrmann and have say use the Folder 'Plugins' only not Visualization
hwahrmann has nothing changed and use how befor 'Visualization'
this is critical Winamp Plugins check if the Path = Plugins when not any Plugins not work correct is not a problem with BassVis only default from Plugins.
That makes many problems
here is a sniped from Winamp Plugin 'DelphiOpenGl'
Code:
procedure TForm1.FormCreate(Sender: TObject);
var PluginIni : TIniFile;
Path : String;
P : Integer;
Width : Integer;
begin
// Get path to winamp plugin.ini file
Path :=ParamStr(0);
P :=Length(Path);
while Path[P] <> '\' do
Dec(P);
Path :=Copy(Path, 1, P);
Path :=Path + 'Plugins\';
PluginIni := TIniFile.Create(Path + 'plugin.ini');
// Get window settings
Width :=PluginIni.ReadInteger('JansGL', 'Width', 800);
if Width = 640 then
RadioButton1.Checked :=TRUE
else if Width = 800 then
RadioButton2.Checked :=TRUE
else if Width = 1024 then
RadioButton3.Checked :=TRUE;
CheckBox1.Checked :=PluginIni.ReadBool('JansGL', 'FullScreen', FALSE);
// Get display settings
CheckBox2.Checked :=PluginIni.ReadBool('JansGL', 'BackgroundBeat', TRUE);
CheckBox3.Checked :=PluginIni.ReadBool('JansGL', 'BounceBeat', FALSE);
PluginIni.Free;
end;
Sample:
Path :=Path + 'Plugins\';
Path = c:\Program Files\Team Mediaportal
Path = Path + \musicplayer\plugins\visualizations + \Plugins\
Plugin create INI in PluginIni := TIniFile.Create(Path + 'plugin.ini');
Plugin will write to Path + \plugin.ini'
when Plugin not found the path 'Plugins' then MediaPortal crash ..
for the Plugin is this Path
Path = c:\Program Files\Team Mediaportal\musicplayer\plugins\visualizations + \Plugins\
bad
then it will write to it and can not found!
i hope you can understand my bad english.
Show this Pic thats is the right way.
https://forum.team-mediaportal.com/attachment.php?attachmentid=6125&d=1176478436
greets BassFan
England