midora Posted November 4, 2021 Author Share Posted November 4, 2021 New release 1.3 (2.11.2021) - Modified to support paint.net 4.3 and .NETCore 5 1.4 (4.11.2021) - Replaced ionic zip class with .net ZipArchive class Quote Link to comment Share on other sites More sharing options...
Rle Posted November 4, 2021 Share Posted November 4, 2021 Doesn't work. 🤔 Plugin Error : D:\Program Files\paint.net\FileTypes\ImZIP.FileType\ImZIP.FileType.dll, Version 1.4.0.0 System.IO.FileNotFoundException: Could not load file or assembly 'PaintDotNet.Data, Version=4.303.7965.39135, Culture=neutral, PublicKeyToken=null'. Das System kann die angegebene Datei nicht finden. File name: 'PaintDotNet.Data, Version=4.303.7965.39135, Culture=neutral, PublicKeyToken=null' ---> System.IO.FileNotFoundException: Could not load file or assembly 'PaintDotNet.Data, Version=4.303.7965.39135, Culture=neutral, PublicKeyToken=null'. Das System kann die angegebene Datei nicht finden. File name: 'PaintDotNet.Data, Version=4.303.7965.39135, Culture=neutral, PublicKeyToken=null' at System.Reflection.RuntimeAssembly.InternalLoad(ObjectHandleOnStack assemblyName, ObjectHandleOnStack requestingAssembly, StackCrawlMarkHandle stackMark, Boolean throwOnFileNotFound, ObjectHandleOnStack assemblyLoadContext, ObjectHandleOnStack retAssembly) at System.Reflection.RuntimeAssembly.InternalLoad(AssemblyName assemblyName, RuntimeAssembly requestingAssembly, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, AssemblyLoadContext assemblyLoadContext) at System.Runtime.Loader.AssemblyLoadContext.LoadFromAssemblyName(AssemblyName assemblyName) at PaintDotNet.Runtime.Loader.TrustedPlatformAssemblyResolver.Load(ILoadContext loadContext, AssemblyName assemblyName, String assemblyPath) in D:\src\pdn\src\PaintDotNet\Runtime\Loader\TrustedPlatformAssemblyResolver.cs:line 101 at PaintDotNet.Runtime.Loader.CombinedAssemblyLoader.Load(ILoadContext loadContext, AssemblyName assemblyName, String assemblyPath) in D:\src\pdn\src\PaintDotNet\Runtime\Loader\CombinedAssemblyLoader.cs:line 47 at PaintDotNet.Runtime.Loader.AssemblyResolver.ResolveAssembly(ILoadContext loadContext, AssemblyName assemblyName) in D:\src\pdn\src\PaintDotNet\Runtime\Loader\AssemblyResolver.cs:line 68 at PaintDotNet.Runtime.Loader.LoadContext.AssemblyLoadContextImpl.Load(AssemblyName assemblyName) in D:\src\pdn\src\PaintDotNet\Runtime\Loader\LoadContext.cs:line 168 at System.Runtime.Loader.AssemblyLoadContext.ResolveUsingLoad(AssemblyName assemblyName) at System.Runtime.Loader.AssemblyLoadContext.Resolve(IntPtr gchManagedAssemblyLoadContext, AssemblyName assemblyName) System.IO.FileNotFoundException: Could not load file or assembly 'PaintDotNet.Core, Version=4.303.7965.39135, Culture=neutral, PublicKeyToken=null'. Das System kann die angegebene Datei nicht finden. File name: 'PaintDotNet.Core, Version=4.303.7965.39135, Culture=neutral, PublicKeyToken=null' ---> System.IO.FileNotFoundException: Could not load file or assembly 'PaintDotNet.Core, Version=4.303.7965.39135, Culture=neutral, PublicKeyToken=null'. Das System kann die angegebene Datei nicht finden. File name: 'PaintDotNet.Core, Version=4.303.7965.39135, Culture=neutral, PublicKeyToken=null' at System.Reflection.RuntimeAssembly.InternalLoad(ObjectHandleOnStack assemblyName, ObjectHandleOnStack requestingAssembly, StackCrawlMarkHandle stackMark, Boolean throwOnFileNotFound, ObjectHandleOnStack assemblyLoadContext, ObjectHandleOnStack retAssembly) at System.Reflection.RuntimeAssembly.InternalLoad(AssemblyName assemblyName, RuntimeAssembly requestingAssembly, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, AssemblyLoadContext assemblyLoadContext) at System.Runtime.Loader.AssemblyLoadContext.LoadFromAssemblyName(AssemblyName assemblyName) at PaintDotNet.Runtime.Loader.TrustedPlatformAssemblyResolver.Load(ILoadContext loadContext, AssemblyName assemblyName, String assemblyPath) in D:\src\pdn\src\PaintDotNet\Runtime\Loader\TrustedPlatformAssemblyResolver.cs:line 101 at PaintDotNet.Runtime.Loader.CombinedAssemblyLoader.Load(ILoadContext loadContext, AssemblyName assemblyName, String assemblyPath) in D:\src\pdn\src\PaintDotNet\Runtime\Loader\CombinedAssemblyLoader.cs:line 47 at PaintDotNet.Runtime.Loader.AssemblyResolver.ResolveAssembly(ILoadContext loadContext, AssemblyName assemblyName) in D:\src\pdn\src\PaintDotNet\Runtime\Loader\AssemblyResolver.cs:line 68 at PaintDotNet.Runtime.Loader.LoadContext.AssemblyLoadContextImpl.Load(AssemblyName assemblyName) in D:\src\pdn\src\PaintDotNet\Runtime\Loader\LoadContext.cs:line 168 at System.Runtime.Loader.AssemblyLoadContext.ResolveUsingLoad(AssemblyName assemblyName) at System.Runtime.Loader.AssemblyLoadContext.Resolve(IntPtr gchManagedAssemblyLoadContext, AssemblyName assemblyName) Quote Link to comment Share on other sites More sharing options...
midora Posted November 4, 2021 Author Share Posted November 4, 2021 Thanks for the hint. And sorry it seems to require paint.net 4.3.3 which is not available now. I had no idea that the loader checks for more than 4.3. Quote Link to comment Share on other sites More sharing options...
Rle Posted November 4, 2021 Share Posted November 4, 2021 👍 don't worry be happy 😉 Quote Link to comment Share on other sites More sharing options...
midora Posted November 4, 2021 Author Share Posted November 4, 2021 Replaced the download with a v1.4 referencing paint.net 4.3.2. Quote Link to comment Share on other sites More sharing options...
Rle Posted November 4, 2021 Share Posted November 4, 2021 Thanks, it works. 👍😎 Quote Link to comment Share on other sites More sharing options...
dotcobalt Posted December 28, 2021 Share Posted December 28, 2021 Is code avaliable? I just want to make a little mod to it. Thanks in advance. Quote Link to comment Share on other sites More sharing options...
midora Posted December 28, 2021 Author Share Posted December 28, 2021 No. But you can ask for a feature or use dotPeek to get the source for your private usage. Quote Link to comment Share on other sites More sharing options...
dotcobalt Posted December 28, 2021 Share Posted December 28, 2021 Oh, ok. I'd like to be able to change the names of the files saved at the zip one. Something like "{layer_name}-{layer_number}.png" (layer-1.png) for example. I'll try to make it decompiling the .dll by myself but I think it would be a nice update to the plugin itself. By the way, I wasn't able to find a nice guide for making my own "FileType" plugin, could you give me a hint? Thanks again. Quote Link to comment Share on other sites More sharing options...
midora Posted December 28, 2021 Author Share Posted December 28, 2021 Rick prefers that save plugins can also load the written files. That's the reason why the names are fixed in the moment. But it may be solved by creating an additional file in the zip defining how the image can be recreated. In this case a pattern (including keywords) for the filenames may be possible. Please use the Plugin Developer's Central to ask questions about developing plugins. Quote Link to comment Share on other sites More sharing options...
Rare Posted January 7 Share Posted January 7 If I may request a feature, I would love to see a feature that leaves layer names intact. In general the plugin works great, renaming all the files is just a bit annoying. Thanks for all the effort regardless! Quote Link to comment Share on other sites More sharing options...
midora Posted January 7 Author Share Posted January 7 Hi @Rarethe main issue with this request is that layer names may not be unique or they may be empty or they contain characters which are not allowed in file names. So some renaming may be necessary. The additional infos required to restore the pdn content could be stored in the PaintDotNet.txt file in the zip. Quote Link to comment Share on other sites More sharing options...
Rare Posted January 10 Share Posted January 10 @midora Makes sense. I appreciate the work you did to bring us what we have already . Cheers! Quote Link to comment Share on other sites More sharing options...
fnab_West Posted March 30 Share Posted March 30 I am getting an error when installing: C:\Program Files\paint.net\FileTypes\ImZIP.FileType.dll, version 1.4.0.0 System.IO.FileNotFoundException: Could not load file or assembly 'System.Runtime, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. File name: 'System.Runtime, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WRN: Assembly binding logging is turned OFF. To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1. Note: There is some performance penalty associated with assembly bind failure logging. To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog]. any help? Quote Link to comment Share on other sites More sharing options...
otuncelli Posted March 31 Share Posted March 31 @fnab_West You're probably using an old version of Paint.NET. ⚙ Settings -> Updates -> Check Now. 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.