Jump to content

Problem with loading custom effects to Paint.NET on Windows 7


Recommended Posts

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 by cheatmaster18
Link to post
Share on other sites

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.

Link to post
Share on other sites

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.

Link to post
Share on other sites

@cheatmaster18: Are you using Codelab to build the effect or Visual Studio?

Link to post
Share on other sites

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.

Link to post
Share on other sites

What is the effect you're trying to make? Would you be willing to post the source?

Link to post
Share on other sites

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 by cheatmaster18
Link to post
Share on other sites

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

Link to post
Share on other sites

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.

Click to play:
j.pngs.pngd.pnga.pngp.png
Download: BoltBait's Plugin Pack | CodeLab | and how about a Computer Dominos Game

Link to post
Share on other sites

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 by cheatmaster18
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...