(Old) My Emulators (3 Viewers)

Zappza

MP Donator
  • Premium Supporter
  • December 10, 2006
    176
    9
    Home Country
    Norway Norway
    Hi!

    I am customizing a couple of menus to better fit my HTPC, and I have a dedicated menu for my Games; Suduko, Simon Says, Tetris, Minesweeper and of course My Emulators.

    The only thing I am encountering problems with, is that My Emulators and the "MyAlarmDetails.xml" have the same ID so I can't link to the My Emulators plugin by using hyperlink in the skin files. I have tried to change the ID in the MyEmulators.xml file to a different value, without luck.

    The plugin works great if I choose it from the My Plugins menu by the way.

    So, two questions.

    Why have you used the ID of a bundeled plugin for yours? I guess you based you skinfile on the MyAlarmPlugin, but you should have changed the values.

    And, how can I fix this?

    Regards,
    Bjarte
     

    Chreekar

    Community Plugin Dev
    November 11, 2006
    234
    52
    Stockholm
    Home Country
    Sweden Sweden
    I thought I fixed this... I used the ID from the skin making tutorial, but I think I have changed it to something else. Are you using the latest SVN version of the plugin?
     

    Zappza

    MP Donator
  • Premium Supporter
  • December 10, 2006
    176
    9
    Home Country
    Norway Norway
    I guess not?
    I just downloaded the version from the MediaPortal pluginsite.

    Will download the latest SVN now =)

    Hmm, seems like the problem lied in the fact that I used the version that was included in the Monochrome skin, which probably is outdated.
     

    mironicus

    Portal Pro
    March 9, 2008
    688
    44
    MyEmulator plugin won't work in Mediaportal 1.0 RC1, I get an MySQL-Error if I want to configure the plugin in Mediaportal Setup.

    Code:
    Informationen über das Aufrufen von JIT-Debuggen
    anstelle dieses Dialogfelds finden Sie am Ende dieser Meldung.
    
    ************** Ausnahmetext **************
    SQLite.NET.SQLiteException: Failed to open database, SQLite said: C:\Program Files (x86)\Team MediaPortal\MediaPortal\database\myEmulators.db3 CANTOPEN
       bei SQLite.NET.SQLiteClient..ctor(String dbName)
       bei myEmulators.DB.launch()
       bei myEmulators.Class1.ShowPlugin()
       bei MediaPortal.Configuration.Sections.PluginsNew.itemConfigure_Click(Object sender, EventArgs e)
       bei System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
       bei System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
       bei System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
       bei System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
       bei System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
       bei System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
       bei System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
       bei System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
       bei System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
       bei System.Windows.Forms.Control.WndProc(Message& m)
       bei System.Windows.Forms.ScrollableControl.WndProc(Message& m)
       bei System.Windows.Forms.ToolStrip.WndProc(Message& m)
       bei System.Windows.Forms.ToolStripDropDown.WndProc(Message& m)
       bei System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
       bei System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
       bei System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
    
    
    ************** Geladene Assemblys **************
    mscorlib
        Assembly-Version: 2.0.0.0.
        Win32-Version: 2.0.50727.1434 (REDBITS.050727-1400).
        CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll.
    ----------------------------------------
    Configuration
        Assembly-Version: 0.9.2.40388.
        Win32-Version: 0.9.2.0.
        CodeBase: file:///C:/Program%20Files%20(x86)/Team%20MediaPortal/MediaPortal/Configuration.exe.
    ----------------------------------------
    System.Windows.Forms
        Assembly-Version: 2.0.0.0.
        Win32-Version: 2.0.50727.1434 (REDBITS.050727-1400).
        CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll.
    ----------------------------------------
    System
        Assembly-Version: 2.0.0.0.
        Win32-Version: 2.0.50727.1434 (REDBITS.050727-1400).
        CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll.
    ----------------------------------------
    System.Drawing
        Assembly-Version: 2.0.0.0.
        Win32-Version: 2.0.50727.1434 (REDBITS.050727-1400).
        CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll.
    ----------------------------------------
    Core
        Assembly-Version: 0.9.2.40361.
        Win32-Version: 0.9.2.0.
        CodeBase: file:///C:/Program%20Files%20(x86)/Team%20MediaPortal/MediaPortal/Core.DLL.
    ----------------------------------------
    Utils
        Assembly-Version: 0.9.2.40359.
        Win32-Version: 0.9.2.0.
        CodeBase: file:///C:/Program%20Files%20(x86)/Team%20MediaPortal/MediaPortal/Utils.DLL.
    ----------------------------------------
    System.Xml
        Assembly-Version: 2.0.0.0.
        Win32-Version: 2.0.50727.1434 (REDBITS.050727-1400).
        CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll.
    ----------------------------------------
    System.Configuration
        Assembly-Version: 2.0.0.0.
        Win32-Version: 2.0.50727.1434 (REDBITS.050727-1400).
        CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll.
    ----------------------------------------
    BassRegistration
        Assembly-Version: 1.0.0.0.
        Win32-Version: 1.0.0.0.
        CodeBase: file:///C:/Program%20Files%20(x86)/Team%20MediaPortal/MediaPortal/BassRegistration.DLL.
    ----------------------------------------
    Databases
        Assembly-Version: 0.9.2.32247.
        Win32-Version: 0.9.2.19010.
        CodeBase: file:///C:/Program%20Files%20(x86)/Team%20MediaPortal/MediaPortal/Databases.DLL.
    ----------------------------------------
    DirectShowLib
        Assembly-Version: 2.0.0.19010.
        Win32-Version: 2.0.0.0.
        CodeBase: file:///C:/Program%20Files%20(x86)/Team%20MediaPortal/MediaPortal/DirectShowLib.DLL.
    ----------------------------------------
    ffeipojq
        Assembly-Version: 0.9.2.40359.
        Win32-Version: 2.0.50727.1434 (REDBITS.050727-1400).
        CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll.
    ----------------------------------------
    Microsoft.DirectX.Direct3D
        Assembly-Version: 1.0.2902.0.
        Win32-Version: 9.05.132.0000.
        CodeBase: file:///C:/Windows/assembly/GAC/Microsoft.DirectX.Direct3D/1.0.2902.0__31bf3856ad364e35/Microsoft.DirectX.Direct3D.dll.
    ----------------------------------------
    Bass.Net
        Assembly-Version: 2.3.1.2.
        Win32-Version: 2.3.1.2.
        CodeBase: file:///C:/Program%20Files%20(x86)/Team%20MediaPortal/MediaPortal/Bass.Net.DLL.
    ----------------------------------------
    System.ServiceProcess
        Assembly-Version: 2.0.0.0.
        Win32-Version: 2.0.50727.1434 (REDBITS.050727-1400).
        CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.ServiceProcess/2.0.0.0__b03f5f7f11d50a3a/System.ServiceProcess.dll.
    ----------------------------------------
    RemotePlugins
        Assembly-Version: 0.9.2.40365.
        Win32-Version: 0.9.2.0.
        CodeBase: file:///C:/Program%20Files%20(x86)/Team%20MediaPortal/MediaPortal/RemotePlugins.DLL.
    ----------------------------------------
    MPInstaller.Library
        Assembly-Version: 0.9.2.32254.
        Win32-Version: 0.9.2.19010.
        CodeBase: file:///C:/Program%20Files%20(x86)/Team%20MediaPortal/MediaPortal/MPInstaller.Library.DLL.
    ----------------------------------------
    Microsoft.DirectX
        Assembly-Version: 1.0.2902.0.
        Win32-Version: 5.04.00.2904.
        CodeBase: file:///C:/Windows/assembly/GAC/Microsoft.DirectX/1.0.2902.0__31bf3856ad364e35/Microsoft.DirectX.dll.
    ----------------------------------------
    System.Data
        Assembly-Version: 2.0.0.0.
        Win32-Version: 2.0.50727.1434 (REDBITS.050727-1400).
        CodeBase: file:///C:/Windows/assembly/GAC_32/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll.
    ----------------------------------------
    System.Windows.Forms.resources
        Assembly-Version: 2.0.0.0.
        Win32-Version: 2.0.50727.1434 (REDBITS.050727-1400).
        CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms.resources/2.0.0.0_de_b77a5c561934e089/System.Windows.Forms.resources.dll.
    ----------------------------------------
    CSScriptLibrary
        Assembly-Version: 1.9.0.0.
        Win32-Version: 1.9.0.0.
        CodeBase: file:///C:/Program%20Files%20(x86)/Team%20MediaPortal/MediaPortal/CSScriptLibrary.DLL.
    ----------------------------------------
    0c719680-6c20-4c09-910a-174b88a789b5
        Assembly-Version: 0.0.0.0.
        Win32-Version: 0.0.0.0.
        CodeBase: file:///C:/Users/Rene/AppData/Local/Temp/0c719680-6c20-4c09-910a-174b88a789b5.tmp.
    ----------------------------------------
    9d61abf2-2ae2-4f20-90f8-19d843302d11
        Assembly-Version: 0.0.0.0.
        Win32-Version: 0.0.0.0.
        CodeBase: file:///C:/Users/Rene/AppData/Local/Temp/9d61abf2-2ae2-4f20-90f8-19d843302d11.tmp.
    ----------------------------------------
    mscorlib.resources
        Assembly-Version: 2.0.0.0.
        Win32-Version: 2.0.50727.1434 (REDBITS.050727-1400).
        CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll.
    ----------------------------------------
    00ea8708-1cbf-467e-9ff2-51b46a08f60c
        Assembly-Version: 0.0.0.0.
        Win32-Version: 0.0.0.0.
        CodeBase: file:///C:/Users/Rene/AppData/Local/Temp/00ea8708-1cbf-467e-9ff2-51b46a08f60c.tmp.
    ----------------------------------------
    e4e515f0-f03f-4c16-b143-b3bd66c5b36d
        Assembly-Version: 0.0.0.0.
        Win32-Version: 0.0.0.0.
        CodeBase: file:///C:/Users/Rene/AppData/Local/Temp/e4e515f0-f03f-4c16-b143-b3bd66c5b36d.tmp.
    ----------------------------------------
    453908bc-d951-4fcf-8af4-4138cc7d9a3b
        Assembly-Version: 0.0.0.0.
        Win32-Version: 0.0.0.0.
        CodeBase: file:///C:/Users/Rene/AppData/Local/Temp/453908bc-d951-4fcf-8af4-4138cc7d9a3b.tmp.
    ----------------------------------------
    ddcb3bf3-0484-4a36-b9b4-ecc2af76f229
        Assembly-Version: 0.0.0.0.
        Win32-Version: 0.0.0.0.
        CodeBase: file:///C:/Users/Rene/AppData/Local/Temp/ddcb3bf3-0484-4a36-b9b4-ecc2af76f229.tmp.
    ----------------------------------------
    0492f98b-0bb1-4642-b009-41bff6695704
        Assembly-Version: 0.0.0.0.
        Win32-Version: 0.0.0.0.
        CodeBase: file:///C:/Users/Rene/AppData/Local/Temp/0492f98b-0bb1-4642-b009-41bff6695704.tmp.
    ----------------------------------------
    System.Runtime.Serialization.Formatters.Soap
        Assembly-Version: 2.0.0.0.
        Win32-Version: 2.0.50727.1434 (REDBITS.050727-1400).
        CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Runtime.Serialization.Formatters.Soap/2.0.0.0__b03f5f7f11d50a3a/System.Runtime.Serialization.Formatters.Soap.dll.
    ----------------------------------------
    7ildw3kj
        Assembly-Version: 0.9.2.40361.
        Win32-Version: 2.0.50727.1434 (REDBITS.050727-1400).
        CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll.
    ----------------------------------------
    TvLibrary.Interfaces
        Assembly-Version: 0.9.2.32330.
        Win32-Version: 0.9.2.19010.
        CodeBase: file:///C:/Program%20Files%20(x86)/Team%20MediaPortal/MediaPortal/TvLibrary.Interfaces.DLL.
    ----------------------------------------
    Interop.X10
        Assembly-Version: 1.0.0.0.
        Win32-Version: 1.0.0.0.
        CodeBase: file:///C:/Program%20Files%20(x86)/Team%20MediaPortal/MediaPortal/Interop.X10.DLL.
    ----------------------------------------
    Microsoft.DirectX.DirectInput
        Assembly-Version: 1.0.2902.0.
        Win32-Version: 5.04.00.2904.
        CodeBase: file:///C:/Windows/assembly/GAC/Microsoft.DirectX.DirectInput/1.0.2902.0__31bf3856ad364e35/Microsoft.DirectX.DirectInput.dll.
    ----------------------------------------
    Dialogs
        Assembly-Version: 0.9.2.32248.
        Win32-Version: 0.9.2.19010.
        CodeBase: file:///C:/Program%20Files%20(x86)/Team%20MediaPortal/MediaPortal/Plugins/windows/Dialogs.dll.
    ----------------------------------------
    myEmulators
        Assembly-Version: 0.1.9.0.
        Win32-Version: 0.1.9.0.
        CodeBase: file:///C:/Program%20Files%20(x86)/Team%20MediaPortal/MediaPortal/Plugins/windows/myEmulators.dll.
    ----------------------------------------
    ShoutcastDirectoryPlugin
        Assembly-Version: 0.0.0.3.
        Win32-Version: 0.0.0.3.
        CodeBase: file:///C:/Program%20Files%20(x86)/Team%20MediaPortal/MediaPortal/Plugins/windows/ShoutcastDirectoryPlugin.dll.
    ----------------------------------------
    TvPlugin
        Assembly-Version: 0.9.2.32333.
        Win32-Version: 0.9.2.19010.
        CodeBase: file:///C:/Program%20Files%20(x86)/Team%20MediaPortal/MediaPortal/Plugins/windows/TvPlugin.dll.
    ----------------------------------------
    TVDatabase
        Assembly-Version: 0.9.2.32330.
        Win32-Version: 0.9.2.19010.
        CodeBase: file:///C:/Program%20Files%20(x86)/Team%20MediaPortal/MediaPortal/TVDatabase.DLL.
    ----------------------------------------
    Gentle.Framework
        Assembly-Version: 1.2.9.1286.
        Win32-Version: 1.2.9.1286.
        CodeBase: file:///C:/Program%20Files%20(x86)/Team%20MediaPortal/MediaPortal/Gentle.Framework.DLL.
    ----------------------------------------
    Gentle.Common
        Assembly-Version: 1.2.9.1285.
        Win32-Version: 1.2.9.1285.
        CodeBase: file:///C:/Program%20Files%20(x86)/Team%20MediaPortal/MediaPortal/Gentle.Common.DLL.
    ----------------------------------------
    TvControl
        Assembly-Version: 0.9.2.32331.
        Win32-Version: 0.9.2.19010.
        CodeBase: file:///C:/Program%20Files%20(x86)/Team%20MediaPortal/MediaPortal/TvControl.DLL.
    ----------------------------------------
    TvBusinessLayer
        Assembly-Version: 0.9.2.32331.
        Win32-Version: 0.9.2.19010.
        CodeBase: file:///C:/Program%20Files%20(x86)/Team%20MediaPortal/MediaPortal/TvBusinessLayer.DLL.
    ----------------------------------------
    System.Runtime.Remoting
        Assembly-Version: 2.0.0.0.
        Win32-Version: 2.0.50727.1434 (REDBITS.050727-1400).
        CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Runtime.Remoting/2.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll.
    ----------------------------------------
    System.Web
        Assembly-Version: 2.0.0.0.
        Win32-Version: 2.0.50727.1434 (REDBITS.050727-1400).
        CodeBase: file:///C:/Windows/assembly/GAC_32/System.Web/2.0.0.0__b03f5f7f11d50a3a/System.Web.dll.
    ----------------------------------------
    Gentle.Provider.MySQL
        Assembly-Version: 1.2.9.1288.
        Win32-Version: 1.2.9.1288.
        CodeBase: file:///C:/Program%20Files%20(x86)/Team%20MediaPortal/MediaPortal/Gentle.Provider.MySQL.DLL.
    ----------------------------------------
    Gentle.Provider.SQLServer
        Assembly-Version: 1.2.9.1289.
        Win32-Version: 1.2.9.1289.
        CodeBase: file:///C:/Program%20Files%20(x86)/Team%20MediaPortal/MediaPortal/Gentle.Provider.SQLServer.DLL.
    ----------------------------------------
    log4net
        Assembly-Version: 1.2.9.0.
        Win32-Version: 1.2.9.0.
        CodeBase: file:///C:/Program%20Files%20(x86)/Team%20MediaPortal/MediaPortal/log4net.DLL.
    ----------------------------------------
    System.Transactions
        Assembly-Version: 2.0.0.0.
        Win32-Version: 2.0.50727.1434 (REDBITS.050727-1400).
        CodeBase: file:///C:/Windows/assembly/GAC_32/System.Transactions/2.0.0.0__b77a5c561934e089/System.Transactions.dll.
    ----------------------------------------
    System.EnterpriseServices
        Assembly-Version: 2.0.0.0.
        Win32-Version: 2.0.50727.1434 (REDBITS.050727-1400).
        CodeBase: file:///C:/Windows/assembly/GAC_32/System.EnterpriseServices/2.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll.
    ----------------------------------------
    WindowPlugins
        Assembly-Version: 0.9.2.32266.
        Win32-Version: 0.9.2.19010.
        CodeBase: file:///C:/Program%20Files%20(x86)/Team%20MediaPortal/MediaPortal/Plugins/windows/WindowPlugins.dll.
    ----------------------------------------
    TVCapture
        Assembly-Version: 0.9.2.32249.
        Win32-Version: 0.9.2.19010.
        CodeBase: file:///C:/Program%20Files%20(x86)/Team%20MediaPortal/MediaPortal/TVCapture.DLL.
    ----------------------------------------
    XihSolutions.DotMSN
        Assembly-Version: 2.0.1.15051.
        Win32-Version: 2.0.1.15051.
        CodeBase: file:///C:/Program%20Files%20(x86)/Team%20MediaPortal/MediaPortal/Plugins/windows/XihSolutions.DotMSN.DLL.
    ----------------------------------------
    SubtitlePlugins
        Assembly-Version: 0.9.2.32263.
        Win32-Version: 0.9.2.19010.
        CodeBase: file:///C:/Program%20Files%20(x86)/Team%20MediaPortal/MediaPortal/Plugins/subtitle/SubtitlePlugins.dll.
    ----------------------------------------
    ASIO.Interop
        Assembly-Version: 1.0.0.0.
        Win32-Version: .
        CodeBase: file:///C:/Program%20Files%20(x86)/Team%20MediaPortal/MediaPortal/Plugins/externalplayers/ASIO.Interop.dll.
    ----------------------------------------
    ExternalPlayers
        Assembly-Version: 0.9.2.32255.
        Win32-Version: 0.9.2.19010.
        CodeBase: file:///C:/Program%20Files%20(x86)/Team%20MediaPortal/MediaPortal/Plugins/externalplayers/ExternalPlayers.dll.
    ----------------------------------------
    Interop.iTunesLib
        Assembly-Version: 1.7.0.0.
        Win32-Version: 1.7.0.0.
        CodeBase: file:///C:/Program%20Files%20(x86)/Team%20MediaPortal/MediaPortal/Interop.iTunesLib.DLL.
    ----------------------------------------
    PureAudio
        Assembly-Version: 0.2.0.0.
        Win32-Version: 0.2.0.0.
        CodeBase: file:///C:/Program%20Files%20(x86)/Team%20MediaPortal/MediaPortal/Plugins/externalplayers/PureAudio.dll.
    ----------------------------------------
    PowerSchedulerClientPlugin
        Assembly-Version: 0.9.2.32334.
        Win32-Version: 0.9.2.19010.
        CodeBase: file:///C:/Program%20Files%20(x86)/Team%20MediaPortal/MediaPortal/plugins/process/PowerSchedulerClientPlugin.DLL.
    ----------------------------------------
    PowerScheduler.Interfaces
        Assembly-Version: 0.9.2.32331.
        Win32-Version: 0.9.2.19010.
        CodeBase: file:///C:/Program%20Files%20(x86)/Team%20MediaPortal/MediaPortal/PowerScheduler.Interfaces.DLL.
    ----------------------------------------
    ProcessPlugins
        Assembly-Version: 0.9.2.32257.
        Win32-Version: 0.9.2.19010.
        CodeBase: file:///C:/Program%20Files%20(x86)/Team%20MediaPortal/MediaPortal/plugins/process/ProcessPlugins.DLL.
    ----------------------------------------
    MusicShareWatcherHelper
        Assembly-Version: 0.9.2.32253.
        Win32-Version: 0.9.2.19010.
        CodeBase: file:///C:/Program%20Files%20(x86)/Team%20MediaPortal/MediaPortal/MusicShareWatcherHelper.DLL.
    ----------------------------------------
    
    ************** JIT-Debuggen **************
    Um das JIT-Debuggen (Just-In-Time) zu aktivieren, muss in der
    Konfigurationsdatei der Anwendung oder des Computers
    (machine.config) der jitDebugging-Wert im Abschnitt system.windows.forms festgelegt werden.
    Die Anwendung muss mit aktiviertem Debuggen kompiliert werden.
    
    Zum Beispiel:
    
    <configuration>
        <system.windows.forms jitDebugging="true" />
    </configuration>
    
    Wenn das JIT-Debuggen aktiviert ist, werden alle nicht behandelten
    Ausnahmen an den JIT-Debugger gesendet, der auf dem
    Computer registriert ist, und nicht in diesem Dialogfeld behandelt.
     

    Kingfisher

    MP Donator
  • Premium Supporter
  • March 16, 2008
    26
    6
    Bedfordshire
    Home Country
    England England
    You haven't said what OS you are using, but I suspect it is Vista as I had this problem.

    Because the MyEmulators plugin doesn't use the correct folders under Vista, it is trying to write to a directory it doesn't have the rights to (ie c:\Program Files).

    What you need to do is this :

    Under Folder Options, turn on Show Hidden Files and Folders
    Browse to C:\users\{your windows username here}\AppData\Local\VirtualStore\ProgramFiles\Team Mediaportal\Mediaportal
    Create a new folder called database

    Next time you try to configure the plugin, it will have the folder it needs to write to to create the database file.
     

    gerikes

    New Member
    May 11, 2008
    2
    0
    Home Country
    United States of America United States of America
    CANTOPEN change

    Hi all.

    Thanks for all the work Chreekar, been using your plugin for a few months now, runs well.

    I switched over to RC1 and I'm getting that same CANTOPEN problem. Here's what I did to fix it...

    Code:
    Index: myEmulators/DB.cs
    ===================================================================
    --- myEmulators/DB.cs	(revision 1775)
    +++ myEmulators/DB.cs	(working copy)
    @@ -40,7 +40,7 @@
     
             public static void launch()
             {
    -            String path = Options.getMainFolder() + @"\database\" + dbName;            
    +			String path = Config.GetFile(Config.Dir.Database, dbName);
                 sqlDB = new SQLiteClient(path);
                 createDBs();
                 try

    Of course, the problem is that if someone is using an old database and switches to the new version, the path is changed and so their new database will not be found. Not sure how you want to go about this, maybe checking the old path for an existing database and copying it if found?


    Update

    Maybe even something like this?

    Code:
    Index: myEmulators/DB.cs
    ===================================================================
    --- myEmulators/DB.cs	(revision 1775)
    +++ myEmulators/DB.cs	(working copy)
    @@ -21,7 +21,10 @@
             private static String tableOptionsName = "myEmulatorsOptions";
             private static SQLiteClient sqlDB;
     
    -        public enum SaveInfo
    +        private static String oldDatabaseFilename = Options.getMainFolder() + @"\database\" + dbName;
    +        private static String newDatabaseFilename = Config.GetFile(Config.Dir.Database, dbName);
    +
    +    	public enum SaveInfo
             {
                 ALL,
                 ONLY_VERSION_INFO,
    @@ -40,8 +43,9 @@
     
             public static void launch()
             {
    -            String path = Options.getMainFolder() + @"\database\" + dbName;            
    -            sqlDB = new SQLiteClient(path);
    +        	CopyOldDatabaseIfFound();
    +
    +            sqlDB = new SQLiteClient(newDatabaseFilename);
                 createDBs();
                 try
                 {
    @@ -146,6 +150,16 @@
                 }
             }
     
    +        // Copy a users database from the old place where databases were found.
    +        private static void CopyOldDatabaseIfFound()
    +        {
    +            if (File.Exists(oldDatabaseFilename) &&
    +                File.Exists(newDatabaseFilename) == false)
    +            {
    +                File.Copy(oldDatabaseFilename, newDatabaseFilename);
    +            }
    +        }
    +
             private static void createDBs()
             {
                 //DatabaseUtility.SetPragmas(sqlDB);
     

    Chreekar

    Community Plugin Dev
    November 11, 2006
    234
    52
    Stockholm
    Home Country
    Sweden Sweden
    gerikes: Thanks for the proposal! I've already switched to using Mediaportal.Configuration.Config.GetFile() in the latest version, but I haven't uploaded it to the SVN yet. Good idea on the copying!
     

    donpablito

    Portal Member
    January 14, 2007
    17
    0
    56
    hi,,,,,

    with mediaportal rc1 and mame32, when i try to game any games, i have this error:
    unable to create the Direct3D device (88760868)

    Can you help me, please?
     

    Users who are viewing this thread

    Top Bottom