[Plugin] Chess (1 Viewer)

catch22

MP Donator
  • Premium Supporter
  • May 28, 2006
    89
    6
    Sydney, Australia
    Country flag
    Hi
    Im running chess 0.3 on windows 7 with BlueSkinWide and I get the floowing error and MP is trashed I have o kill it form the task manager.

    See the end of this message for details on invoking
    just-in-time (JIT) debugging instead of this dialog box.

    ************** Exception Text **************
    System.NullReferenceException: Object reference not set to an instance of an object.
    at MediaPortal.GUI.MyChess.MyChessGUI._Game_Tick(Object sender, EventArgs e)
    at System.Windows.Forms.Timer.OnTick(EventArgs e)
    at System.Windows.Forms.Timer.TimerNativeWindow.WndProc(Message& m)
    at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

    Any ideas what is going on?

    Cheers
     

    huha

    Extension Developer
    January 3, 2008
    890
    556
    Germany Germany
    I recompiled Kroko´s version with 1.2. It is working fine for me. As I have not seen a response I assume it is no more supported, so i am uploading my recompiled version.
    All the credit goes to kroko.
    You have to use kroko´s original plugin and just substitute Chess.dll for MP1.2
    Please understand that i cannot do any more support for the plugin if this should not work for you.
    Greetings, huha

    Update: Below I am documenting the code changes i did in the plugin:

    MyChess.cs:

    line 45:
    //huha changes:
    // replaced MediaPortal.Configuration.Config.Dir.Base by MediaPortal.Configuration.Config.Dir.Config to avoid Windows Vista UAC access rights to program folder for saving and loading games
    // added assembly plugin compatibilty in assembly.cs
    // changed version number from 0.4.0.0 to 0.4.0.1

    // changed project properties .net framework to 3.5
    // unchecked project properties build code optimization
    // unchecked project properties build trace
    // one of the latter three caused for me an "image could not be loaded" exception of the plugin

    Line 60:
    if (File.Exists(MediaPortal.Configuration.Config.GetFolder(MediaPortal.Configuration.Config.Dir.Config) + "\\chess.sav"))

    Line 270:
    string path = MediaPortal.Configuration.Config.GetFolder(MediaPortal.Configuration.Config.Dir.Config) + @"\chess\";

    Line 551:
    if (File.Exists(MediaPortal.Configuration.Config.GetFolder(MediaPortal.Configuration.Config.Dir.Config) + "\\chess.sav"))

    Line555:
    StreamReader sr = new StreamReader(MediaPortal.Configuration.Config.GetFolder(MediaPortal.Configuration.Config.Dir.Config) + "\\chess.sav", false);

    Line 766:
    StreamWriter sw = new StreamWriter(MediaPortal.Configuration.Config.GetFolder(MediaPortal.Configuration.Config.Dir.Config) + "\\chess.sav", false);


    ChessSetupForm.cs:
    Line143:
    string path = MediaPortal.Configuration.Config.GetFolder(MediaPortal.Configuration.Config.Dir.Config);

    AssemblInfo.cs:
    // Sie können alle Werte angeben oder die standardmäßigen Revisions- und Buildnummern
    // übernehmen, indem Sie "*" eingeben:
    [assembly: AssemblyVersion("0.4.0.1")]
    [assembly: AssemblyFileVersion("0.4.0.1")]


    [assembly: CompatibleVersion("1.1.6.27652")]
    [assembly: UsesSubsystem("MP.SkinEngine")]
    [assembly: UsesSubsystem("MP.Config")]
     

    Attachments

    catavolt

    Design Group Manager
  • Team MediaPortal
  • August 13, 2007
    12,912
    9,272
    Lanzarote
    Germany Germany
    Country flag
    AW: [Plugin] Chess

    Long awaited - finally there! Big :D huha!
    And now: Could you recompile the other games of kroko as well - seems he is not very active here...
     

    catavolt

    Design Group Manager
  • Team MediaPortal
  • August 13, 2007
    12,912
    9,272
    Lanzarote
    Germany Germany
    Country flag
    AW: [Plugin] Chess

    Hi huha, put the dll into plugin\windows, and I also have the old Chess folder in MP base folder (because the My+Chess.mpi form archive won´t install). But when starting Chess, I don´t get the message from the program (AFAIK something Hello from the chess engine or similiar), and I also can´t make any move.
    Any ideas/hints?
     

    huha

    Extension Developer
    January 3, 2008
    890
    556
    Germany Germany
    Hi Catavolt,
    I have not used any other games from kroko and do not have the time to follow that up - sorry. I hope someone else can recompile.
    On chess I did change the save folder to ProgramData (like described here in my previous post). I have installed the chess engine in
    C:\ProgramData\Team MediaPortal\MediaPortal\Chess
    and do get the window message at the beginning. I am using your skin PureVisionHD.
    The chess engine i got from the source code of kroko in the release folder
     

    catavolt

    Design Group Manager
  • Team MediaPortal
  • August 13, 2007
    12,912
    9,272
    Lanzarote
    Germany Germany
    Country flag
    AW: [Plugin] Chess

    Hi huha, found it out by myself where to put the Chess engines (from the error message in Config referring to a path not found) ;)
    Again :D for your efforts. Maybe I provide a MPEI for Chess here later ;)
     

    huha

    Extension Developer
    January 3, 2008
    890
    556
    Germany Germany
    Chess for MP1.3 alfa
    I recompiled for 1.3 alfa. This version should work for both MP1.2 and Mp1.3 alfa.
    I also added a few error messages if the chess engine is not found and the settings are now stored in a separate xml file, as i had issues before.

    The .dll file is in Chess.zip and needs to replace the old version chess.dll.
    Please provide some testing.

    Update: zappa needs version 2 protocol, ufim needs version 1
     

    Attachments

    Last edited:

    Users Who Are Viewing This Thread (Users: 0, Guests: 1)

    OP Similar threads Forum Replies Date
    joecrow 1.25.0 Radio Time plugin fails after Resume from Sleep with MP 1.25 Bugreports 4
    P MP2: US user, OTA - can NOT get SchedulesDirect plugin to work on MP1 or MP2 --> how do I get OTA schedule? General 5
    E aktuelle englische Forums Webseite von - Showtime Plugin v3 Plugins & Erweiterungen 4
    mrmojo666 [Tv Server Plugin ]Direct Show Video Control Plugin 0.0.0.1 for Hauppauge PVR cards MediaPortal 1 Plugins 0
    joecrow MultiShortcut Plugin (Uavailable) in DWHD skin General Support 58
    vapourEyes Building TV Plugin General Development (no feature request here!) 49
    Golf4 Nach Windows-Updates läuft TV-Plugin nicht mehr Allgemeines Support- und Diskussionsforum 0
    joecrow How about a Launcher plugin for MP1? MediaPortal 1 6
    D [solved] TVServer Plugin must be missing something. General Development (no feature request here!) 1
    framug Nouveau plugin XmlTvFR pour récupérer le guide télé français Kazer / ZguideTv (WebEPGfr) 11
    emphatic Allow remote control mapping of all plugins Improvement Suggestions 0
    D Where should plugins be located on hard drive? General Support 0
    D how to disengage from one version of a plugin to use another Newcomers Forum 0
    cbr954rr How to disable a pre-configured plugin? General 2
    mrmojo666 [Plugin]Marantz Control Plugin 0.0.0.2 MediaPortal 1 Plugins 2
    mrmojo666 beginner: trying to write a plugin, need help to catch event General Development (no feature request here!) 3
    framug [Rejected] Fix PowerScheduler plugin for MP2 single seat Submit: Code Patches 9
    doskabouter [Question] Stale plugins Developer Discussions 9
    M MP1 stops responding after Starting Plugins General Support 14
    Terra LAVFilter Plugin cannot be updated (MP1.23) MediaPortal 1 Plugins 10
    L Mediaportal 1.21 and Windows 10: user schedules de-activated when powerscheduler plugin is selected General Support 1
    C Can the XmlTv Plugin handle 600+ channels? General 3
    M Online Video Plugin V.2.32 keine Installtion unter MediaPortal 1.22 ? TV / Streaming 3
    emphatic Pictures in the cloud - would a plugin be possible for services like Google Photos MediaPortal 1 Plugins 1
    C where is the Online Videos plugin General Support 1
    Similar threads

























    Top Bottom