cheatmaster18 Posted May 11, 2012 Share Posted May 11, 2012 (edited) When I create Plugin effects to Paint.NET on Windows 7 it would not load into Paint.NET, this not happen in Windows Vista when I create it there. I have tried every thing that I know but it still not work. What can I have did wrong or is it a bug in Paint.NET? Edited May 11, 2012 by cheatmaster18 Quote Link to comment Share on other sites More sharing options...
Ego Eram Reputo Posted May 11, 2012 Share Posted May 11, 2012 Are you unzipping the effect first? Once unzipped, the files with the extension *.dll need to be moved to the Paint.NET/Effects/ folder (unless they are of the filetype nature, when they go in the Paint.NET/filetypes/ folder). Restart Paint.NET once you have them moved into the correct location and you should be OK. Quote ebook: Mastering Paint.NET | resources: Plugin Index | Stereogram Tut | proud supporter of Codelab plugins: EER's Plugin Pack | Planetoid | StickMan | WhichSymbol+ | Dr Scott's Markup Renderer | CSV Filetype | dwarf horde plugins: Plugin Browser | ShapeMaker Link to comment Share on other sites More sharing options...
jim100361 Posted May 11, 2012 Share Posted May 11, 2012 It is possible that he's encountering the files being blocked by Windows 7. I recall some time ago when I downloaded .zip files containing models (.mdl files) for a game I was involved in, I was having problems using them as Windows wouldn't permit it until I had the permissions adjusted for me. This could be occuring to him. Now it's been quite awhile since I've had the problem because I disabled the UAC (User Access Control) on my computer. I believe if he checks the properties on the .zip file that contained the .dll and/or the .dll itself it should indicate, "This file came from another computer and might be blocked to help protect this computer." If this is the case, and if my memory is correct, he should be able unblock the files from the same properties dialogue box. Quote Link to comment Share on other sites More sharing options...
cheatmaster18 Posted May 11, 2012 Author Share Posted May 11, 2012 No i do not have the dll file in a zip file. I created the dll file by my self. Quote Link to comment Share on other sites More sharing options...
Rick Brewster Posted May 11, 2012 Share Posted May 11, 2012 Moved to Plugin Development Center Quote The Paint.NET Blog: https://blog.getpaint.net/ Donations are always appreciated! https://www.getpaint.net/donate.html Link to comment Share on other sites More sharing options...
Ego Eram Reputo Posted May 12, 2012 Share Posted May 12, 2012 @cheatmaster18: Are you using Codelab to build the effect or Visual Studio? Quote ebook: Mastering Paint.NET | resources: Plugin Index | Stereogram Tut | proud supporter of Codelab plugins: EER's Plugin Pack | Planetoid | StickMan | WhichSymbol+ | Dr Scott's Markup Renderer | CSV Filetype | dwarf horde plugins: Plugin Browser | ShapeMaker Link to comment Share on other sites More sharing options...
cheatmaster18 Posted May 12, 2012 Author Share Posted May 12, 2012 I am using Visual Studio, the language C# Quote Link to comment Share on other sites More sharing options...
Ego Eram Reputo Posted May 13, 2012 Share Posted May 13, 2012 I take it that you're compiling the code, but cannot get it to show up in Paint.NET? The probable cause is that you have targeted .NET 4.0 when you need to target 3.5. In Visual Studio with your project open, go to the Solution Explorer double click Properties > Application tab. Under the target Framework heading, choose .NET 3.5 from the dropdown list. Save & rebuild. (Note: you may be prompted to close & reopen the project. Do so.) Please let me know if this fixes the problem. Quote ebook: Mastering Paint.NET | resources: Plugin Index | Stereogram Tut | proud supporter of Codelab plugins: EER's Plugin Pack | Planetoid | StickMan | WhichSymbol+ | Dr Scott's Markup Renderer | CSV Filetype | dwarf horde plugins: Plugin Browser | ShapeMaker Link to comment Share on other sites More sharing options...
cheatmaster18 Posted May 13, 2012 Author Share Posted May 13, 2012 I did what you say and it did not work and Paint.NET is not showing any errors with the plugins. Quote Link to comment Share on other sites More sharing options...
Ego Eram Reputo Posted May 13, 2012 Share Posted May 13, 2012 What is the effect you're trying to make? Would you be willing to post the source? Quote ebook: Mastering Paint.NET | resources: Plugin Index | Stereogram Tut | proud supporter of Codelab plugins: EER's Plugin Pack | Planetoid | StickMan | WhichSymbol+ | Dr Scott's Markup Renderer | CSV Filetype | dwarf horde plugins: Plugin Browser | ShapeMaker Link to comment Share on other sites More sharing options...
cheatmaster18 Posted May 14, 2012 Author Share Posted May 14, 2012 (edited) I am trying to create a effect that can invert colors with a slider to each color, but I will not post that part and I know I don't did anything wrong there, so I am posting the most important part of my script. using System; using System.Drawing; using PaintDotNet; using PaintDotNet.Effects; namespace ModelEffect { [EffectCategory(EffectCategory.Effect)] public class EffectPlugin : Effect { public EffectPlugin() : base("Invert Colors", null,"CustomEffects", EffectFlags.Configurable) { } public override void Render(EffectConfigToken parameters, PaintDotNet.RenderArgs dstArgs, PaintDotNet.RenderArgs srcArgs, System.Drawing.Rectangle[] rois, int startIndex, int length) { // My code is here } public override EffectConfigDialog CreateConfigDialog() { return new CreateEffectConfigDialog(); } } } Edited May 14, 2012 by cheatmaster18 Quote Link to comment Share on other sites More sharing options...
Ego Eram Reputo Posted May 14, 2012 Share Posted May 14, 2012 Um.... why not use codelab to get it working and then port it to Visual Studio? I seem to recall BoltBait uses this development method. You can cut & paste the source from Codelab. Have you followed these steps? http://forums.getpaint.net/index.php?/topic/2248-visual-studio-2005-effect-plugin-template/#entry21968 Quote ebook: Mastering Paint.NET | resources: Plugin Index | Stereogram Tut | proud supporter of Codelab plugins: EER's Plugin Pack | Planetoid | StickMan | WhichSymbol+ | Dr Scott's Markup Renderer | CSV Filetype | dwarf horde plugins: Plugin Browser | ShapeMaker Link to comment Share on other sites More sharing options...
BoltBait Posted May 15, 2012 Share Posted May 15, 2012 Unless you're using Clouds, random numbers, or custom controls, there is really no reason to code your plugin outside of CodeLab. Download CodeLab here: http://boltbait.com/pdn/codelab/ Read the help file here: http://boltbait.com/pdn/codelab/help/ it includes LOTS of examples to get you started. Quote Click to play: Download: BoltBait's Plugin Pack | CodeLab | and how about a Computer Dominos Game Link to comment Share on other sites More sharing options...
cheatmaster18 Posted May 15, 2012 Author Share Posted May 15, 2012 (edited) Have you followed these steps? http://forums.getpai...ate/#entry21968 Thanks Ego Eram Reputo, the EffectPlugin-Template in the link you posted fixed the problem, now everything works again, I only had to do some modifications in the EffectPlugin-Template to do so it works correctly. And thanks BoltBait, for the instructions that was in the link. Edited May 15, 2012 by cheatmaster18 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.