ReMake Posted October 13, 2015 Share Posted October 13, 2015 When you run these two effects (Strange Bulger & Strange Bulger B from the Asmageddon Tools Pack v3) you get the following error message (also in PDN 3.5.11): I slightly modified script of effects and recompiled them (edit: I made it after reading Incompatible Plugins - an incomplete list (updated for 4.0.5284) topic). Now, each of them has a new interface: You can find it under Effects-> Asmageddon Tools For PDN 4.X.X Strange Bulger & Strange Bulger B.zip Below the sourse code for CodeLab. // Name: Strange Bulger // Submenu: Asmageddon Tools // Author: Asmageddon Prince // Title: Strange Bulger // Desc: // Keywords: strange|bulger // URL: http://www.getpaint.net/redirect/plugins.html // Help: Makes strange looking bulge.\n\nRecompiled by ReMake. #region UICode double Amount1 = 45; // [-180,180] Angle Chooser #endregion void Render(Surface dst, Surface src, Rectangle rect) { int vy,vx; int xOffset=0,yOffset=0; int Zoom; bool Tiled; double Variant=Amount1*Math.PI/180; Rectangle selection = EnvironmentParameters.GetSelection(src.Bounds).GetBoundsInt(); Zoom=1000; Tiled=true; int cX = ((selection.Right - selection.Left) / 2)+selection.Left; int cY = ((selection.Bottom - selection.Top) / 2)+selection.Top; if(Zoom<=0){Zoom=1;} for(int y = rect.Top; y < rect.Bottom; y++) { for (int x = rect.Left; x < rect.Right; x++) { vx=cX-x; vy=y; vx=vx*vx/cX; vy=vy*vy/cY; vx=(int)(x+(x-vx)*Math.Cos(Variant)+(y-vy)*Math.Sin(Variant)); vy=(int)(y+(x-vx)*Math.Sin(Variant)+(y-vy)*Math.Cos(Variant)); vx=((vx-xOffset)*1000)/Zoom; vy=((vy-yOffset)*1000)/Zoom; if(Tiled==true) { while(vx<selection.Left) {vx=vx+selection.Right;} while(vx>(selection.Right-1)) {vx=vx-selection.Right;} while(vy<selection.Top) {vy=vy+selection.Bottom;} while(vy>(selection.Bottom-1)) {vy=vy-selection.Bottom;} } dst[x,y]=src.GetBilinearSample(vx,vy); } } } // Name: Strange Bulger B // Submenu: Asmageddon Tools // Author: Asmageddon Prince // Title: Strange Bulger B // Desc: // Keywords: strange|bulger // URL: http://www.getpaint.net/redirect/plugins.html // Help: Makes strange looking bulge.\n\nRecompiled by ReMake. #region UICode double Amount1 = 20; // [-180,180] Angle Chooser #endregion void Render(Surface dst, Surface src, Rectangle rect) { int vy,vx; int xOffset=0,yOffset=0; int Zoom; bool Tiled; double Variant=Amount1*Math.PI/180; Rectangle selection = EnvironmentParameters.GetSelection(src.Bounds).GetBoundsInt(); Zoom=1000; Tiled=true; int cX = ((selection.Right - selection.Left) / 2)+selection.Left; int cY = ((selection.Bottom - selection.Top) / 2)+selection.Top; if(Zoom<=0){Zoom=1;} for(int y = rect.Top; y < rect.Bottom; y++) { for (int x = rect.Left; x < rect.Right; x++) { vx=x; vy=cY-y; vx=vx*vx/cX; vy=vy*vy/cY; vx=(int)(x+(x-vx)*Math.Cos(Variant)+(y-vy)*Math.Sin(Variant)); vy=(int)(y+(x-vx)*Math.Sin(Variant)+(y-vy)*Math.Cos(Variant)); vx=((vx-xOffset)*1000)/Zoom; vy=((vy-yOffset)*1000)/Zoom; if(Tiled==true) { while(vx<selection.Left) {vx=vx+selection.Right;} while(vx>(selection.Right-1)) {vx=vx-selection.Right;} while(vy<selection.Top) {vy=vy+selection.Bottom;} while(vy>(selection.Bottom-1)) {vy=vy-selection.Bottom;} } dst[x,y]=src.GetBilinearSample(vx,vy); } } } This is the icon for both effects: For CodeLab v1.8 remove these three lines: // Desc: // Keywords: strange|bulger // Help: Makes strange looking bulge.\n\nRecompiled by ReMake. For PDN 3.5.11 (also compatible with PDN 4.X.X) Strange Bulger & Strange Bulger B 3.5.11.zip P.S. The author of these effects - Asmageddon Prince, I only recompiled them. 5 Quote Link to comment Share on other sites More sharing options...
david.atwell Posted October 13, 2015 Share Posted October 13, 2015 (edited) This forum is for publishing only. Please post this error in the Asmageddon pack thread. Thanks. Locked. Edited October 14, 2015 by david.atwell Redacted! My apologies. Reading too quickly and thought it was just an error report! Quote The Doctor: There was a goblin, or a trickster, or a warrior... A nameless, terrible thing, soaked in the blood of a billion galaxies. The most feared being in all the cosmos. And nothing could stop it, or hold it, or reason with it. One day it would just drop out of the sky and tear down your world.Amy: But how did it end up in there?The Doctor: You know fairy tales. A good wizard tricked it.River Song: I hate good wizards in fairy tales; they always turn out to be him. Link to comment Share on other sites More sharing options...
BoltBait Posted October 13, 2015 Share Posted October 13, 2015 I'm going to unlock this. David, he actually is publishing a revised version. 1 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...
Maximilian Posted October 13, 2015 Share Posted October 13, 2015 Thank you very much for the correction, ReMake! (first time I check these plugins but surely not the last one!) 1 Quote Link to comment Share on other sites More sharing options...
ReMake Posted October 13, 2015 Author Share Posted October 13, 2015 (edited) Thank you very much ... You are welcome! Edited October 14, 2015 by ReMake Quote Link to comment Share on other sites More sharing options...
Red ochre Posted October 13, 2015 Share Posted October 13, 2015 Will try this later, Thank you! Quote Red ochre Plugin pack.............. Diabolical Drawings ................Real Paintings Link to comment Share on other sites More sharing options...
Ego Eram Reputo Posted October 14, 2015 Share Posted October 14, 2015 Thank you for reviving these plugins ReMake! I edited the link to the list of incompatible plugins - it was pointing to the CodeLab thread. 1 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...
ReMake Posted October 14, 2015 Author Share Posted October 14, 2015 I edited the link to the list of incompatible plugins - it was pointing to the CodeLab thread. I wasn't very attentive. Thank You. Quote Link to comment Share on other sites More sharing options...
david.atwell Posted October 14, 2015 Share Posted October 14, 2015 Redacted my original post! My apologies. Reading too quickly and thought it was just an error report! 1 Quote The Doctor: There was a goblin, or a trickster, or a warrior... A nameless, terrible thing, soaked in the blood of a billion galaxies. The most feared being in all the cosmos. And nothing could stop it, or hold it, or reason with it. One day it would just drop out of the sky and tear down your world.Amy: But how did it end up in there?The Doctor: You know fairy tales. A good wizard tricked it.River Song: I hate good wizards in fairy tales; they always turn out to be him. Link to comment Share on other sites More sharing options...
ReMake Posted October 14, 2015 Author Share Posted October 14, 2015 ...Reading too quickly... There is no problem! Quote Link to comment Share on other sites More sharing options...
Seerose Posted October 15, 2015 Share Posted October 15, 2015 (edited) Remake! Thanks for the beautiful plugin. It is awesome. Edited October 15, 2015 by Seerose 2 Quote Live as if you were to die tomorrow. Learn as if you were to live forever. Gandhi Link to comment Share on other sites More sharing options...
ReMake Posted October 15, 2015 Author Share Posted October 15, 2015 Excellent applying of effect, Seerose! Thank you. 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.