home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
MediaPortal 1 Plugins
[Plugin] Chess
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="huha" data-source="post: 839050" data-attributes="member: 63847"><p>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.</p><p>All the credit goes to kroko. </p><p>You have to use kroko´s original plugin and just substitute Chess.dll for MP1.2 </p><p>Please understand that i cannot do any more support for the plugin if this should not work for you.</p><p>Greetings, huha</p><p></p><p>Update: Below I am documenting the code changes i did in the plugin:</p><p></p><p>MyChess.cs:</p><p></p><p>line 45:</p><p>//huha changes:</p><p>// 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</p><p>// added assembly plugin compatibilty in assembly.cs</p><p>// changed version number from 0.4.0.0 to 0.4.0.1</p><p></p><p>// changed project properties .net framework to 3.5 </p><p>// unchecked project properties build code optimization</p><p>// unchecked project properties build trace</p><p>// one of the latter three caused for me an "image could not be loaded" exception of the plugin </p><p></p><p>Line 60:</p><p>if (File.Exists(MediaPortal.Configuration.Config.GetFolder(MediaPortal.Configuration.Config.Dir.Config) + "\\chess.sav"))</p><p></p><p>Line 270:</p><p>string path = MediaPortal.Configuration.Config.GetFolder(MediaPortal.Configuration.Config.Dir.Config) + @"\chess\";</p><p></p><p>Line 551:</p><p>if (File.Exists(MediaPortal.Configuration.Config.GetFolder(MediaPortal.Configuration.Config.Dir.Config) + "\\chess.sav"))</p><p></p><p>Line555:</p><p>StreamReader sr = new StreamReader(MediaPortal.Configuration.Config.GetFolder(MediaPortal.Configuration.Config.Dir.Config) + "\\chess.sav", false);</p><p></p><p>Line 766:</p><p>StreamWriter sw = new StreamWriter(MediaPortal.Configuration.Config.GetFolder(MediaPortal.Configuration.Config.Dir.Config) + "\\chess.sav", false);</p><p> </p><p></p><p>ChessSetupForm.cs:</p><p>Line143:</p><p>string path = MediaPortal.Configuration.Config.GetFolder(MediaPortal.Configuration.Config.Dir.Config);</p><p></p><p>AssemblInfo.cs:</p><p>// Sie können alle Werte angeben oder die standardmäßigen Revisions- und Buildnummern </p><p>// übernehmen, indem Sie "*" eingeben:</p><p>[assembly: AssemblyVersion("0.4.0.1")]</p><p>[assembly: AssemblyFileVersion("0.4.0.1")]</p><p></p><p></p><p>[assembly: CompatibleVersion("1.1.6.27652")]</p><p>[assembly: UsesSubsystem("MP.SkinEngine")]</p><p>[assembly: UsesSubsystem("MP.Config")]</p></blockquote><p></p>
[QUOTE="huha, post: 839050, member: 63847"] 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")] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
[Plugin] Chess
Contact us
RSS
Top
Bottom