Sim City 4 Devotion Forums

Sim City 4 Devotion Tools => Tools - General Discussion => null45's Tools => Topic started by: null45 on September 01, 2009, 07:43:25 PM

Title: Paint.NET Fsh Filetype Plugin
Post by: null45 on September 01, 2009, 07:43:25 PM
This is a Filetype plug-in I wrote to allow Paint.NET to load / save fsh files.

When saving an options dialog will allow you to set the type of Fsh and if Fshwrite compression is used.

The "Fshwrite compression" option compresses the image with higher quality compression than FSHLib uses.

To install place all three dlls in the FileTypes directory where Paint.NET is installed.

Download: FshFiletype (https://www.dropbox.com/s/iswbodbelkc0zzu/FshFiletype.zip?dl=1)

I hope it will be useful.  :thumbsup:
Title: Re: Paint.NET Fsh Filetype Plugin
Post by: CasperVg on September 02, 2009, 12:04:14 AM
Hey, thanks! I'm sure that'll be very useful.
Title: Re: Paint.NET Fsh Filetype Plugin
Post by: null45 on February 22, 2010, 11:15:08 PM
The plugin now uses the Paint.NET save dialog and the higher quality Fshwrite compression is used when writing DXT1 or DXT3 fsh files.  :thumbsup:

Title: Re: Paint.NET Fsh Filetype Plugin
Post by: null45 on May 19, 2010, 04:31:00 PM
The Fshwrite compression is now a selectable option, a few other bugs fixed.

File version updated to 1.2.0.0
Title: Re: Paint.NET Fsh Filetype Plugin
Post by: null45 on June 29, 2010, 11:20:20 PM
The Paint.NET resize function is now used for resizing the Mipmaps, File version updated to 1.2.1.0  ;)
Title: Re: Paint.NET Fsh Filetype Plugin
Post by: ltrskn on June 30, 2010, 05:44:22 PM
Thank you for this plugin. It helps me out to be able to open the files directly into Paint.NET instead of converting them first using various utility programs like fshtool.

I am having trouble, however, with saving in the fsh format. I receive the following error popup:

Error Saving Fsh: An attempt was made to load a program with an incorrect format. (Exception from HRESULT:0x8007000B)

I am using Paint.NET 3.5.5 (latest version) on Windows 7 64-bit.

The plugin does allow saving to other formats like png, so it is still very useful for me. Just thought you might like to know about the error messages.

Thanks again and best regards--
Title: Re: Paint.NET Fsh Filetype Plugin
Post by: null45 on June 30, 2010, 09:21:34 PM
That is what I get for using copy and paste and not testing on a 64-bit machine after I added Fshwrite compression. ::)

That bug has been fixed, File version updated to 1.2.2.0
Title: Re: Paint.NET Fsh Filetype Plugin
Post by: redscope53 on August 21, 2010, 12:48:15 PM
Oh wow thanks. This is awesome and I use it all the time. Thanks so much!  &hlp &apls ;D :D
Title: Re: Paint.NET Fsh Filetype Plugin
Post by: null45 on July 18, 2011, 11:31:16 PM
The DXT1 fsh files should now load the alpha channel correctly.

File version updated to 1.2.2.1.
Title: Re: Paint.NET Fsh Filetype Plugin
Post by: null45 on March 25, 2012, 12:40:10 AM
Support for re-saving existing multi-scale images added, FSHLib dependency removed.

File version updated to 1.2.2.2. :)

Additionally this plugin is now also on the main Paint.Net plugins forum.
Title: Re: Paint.NET Fsh Filetype Plugin
Post by: null45 on March 26, 2012, 01:27:48 AM
Added support for the FSH attachments.

File version updated to 1.2.2.3.
Title: Re: Paint.NET Fsh Filetype Plugin
Post by: null45 on March 30, 2012, 11:00:51 AM
Fixed a few bugs in the mipmap and attachment support, file version updated to 1.2.2.4.
Title: Re: Paint.NET Fsh Filetype Plugin
Post by: null45 on May 12, 2012, 02:50:38 PM
Fixed a crash in the DXT1 compression, File version updated to 1.2.2.5.
Title: Re: Paint.NET Fsh Filetype Plugin
Post by: null45 on July 30, 2014, 06:57:28 PM
Fixed a number of attachment handling bugs, file version updated to 1.2.2.6.
Title: Re: Paint.NET Fsh Filetype Plugin
Post by: catty on July 31, 2014, 05:22:29 AM
 &apls  for continuing to update this, its much appreciated
Title: Re: Paint.NET Fsh Filetype Plugin
Post by: null45 on February 15, 2015, 06:32:28 PM
Fixed a bug with the decompression of some DXT images, a few more attachment handling bugs fixed.
File version updated to 1.2.4.0.
Title: Re: Paint.NET Fsh Filetype Plugin
Post by: null45 on August 27, 2017, 08:48:57 AM
Use static linking on squish_Win32.dll and squish_x64.dll to remove the Visual C++ runtime dependency.