Menu

LEX File Exchange
EA Support Files
SC4 Wikipedia
Network Addon Mod
Dependencies
Chat

Author Topic: Paint.NET Fsh Filetype Plugin  (Read 9073 times)

0 Members and 1 Guest are viewing this topic.

Offline null45

  • Lex Certified
  • Forums Mayor
  • *
  • Posts: 221
  • Total likes: 27
  • Reputation: 18
  • CL:
    All formats lead to FSH
Paint.NET Fsh Filetype Plugin
« 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

I hope it will be useful.  :thumbsup:
« Last Edit: August 27, 2017, 08:46:35 AM by null45 »

Offline CasperVg

  • Administrator
  • Forums Guru
  • *
  • Posts: 2886
  • Total likes: 429
  • Reputation: 47
  • CL:
    The Go-To Guy!!
Re: Paint.NET Fsh Filetype Plugin
« Reply #1 on: September 02, 2009, 12:04:14 AM »
Hey, thanks! I'm sure that'll be very useful.
Follow my SimCity 4 Let's play on YouTube

Offline null45

  • Lex Certified
  • Forums Mayor
  • *
  • Posts: 221
  • Total likes: 27
  • Reputation: 18
  • CL:
    All formats lead to FSH
Re: Paint.NET Fsh Filetype Plugin
« Reply #2 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:


Offline null45

  • Lex Certified
  • Forums Mayor
  • *
  • Posts: 221
  • Total likes: 27
  • Reputation: 18
  • CL:
    All formats lead to FSH
Re: Paint.NET Fsh Filetype Plugin
« Reply #3 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

Offline null45

  • Lex Certified
  • Forums Mayor
  • *
  • Posts: 221
  • Total likes: 27
  • Reputation: 18
  • CL:
    All formats lead to FSH
Re: Paint.NET Fsh Filetype Plugin
« Reply #4 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  ;)

Offline ltrskn

Re: Paint.NET Fsh Filetype Plugin
« Reply #5 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--

Offline null45

  • Lex Certified
  • Forums Mayor
  • *
  • Posts: 221
  • Total likes: 27
  • Reputation: 18
  • CL:
    All formats lead to FSH
Re: Paint.NET Fsh Filetype Plugin
« Reply #6 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

Offline redscope53

Re: Paint.NET Fsh Filetype Plugin
« Reply #7 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
ąDriverą

Offline null45

  • Lex Certified
  • Forums Mayor
  • *
  • Posts: 221
  • Total likes: 27
  • Reputation: 18
  • CL:
    All formats lead to FSH
Re: Paint.NET Fsh Filetype Plugin
« Reply #8 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.

Offline null45

  • Lex Certified
  • Forums Mayor
  • *
  • Posts: 221
  • Total likes: 27
  • Reputation: 18
  • CL:
    All formats lead to FSH
Re: Paint.NET Fsh Filetype Plugin
« Reply #9 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.
« Last Edit: March 25, 2012, 12:43:36 AM by null45 »

Offline null45

  • Lex Certified
  • Forums Mayor
  • *
  • Posts: 221
  • Total likes: 27
  • Reputation: 18
  • CL:
    All formats lead to FSH
Re: Paint.NET Fsh Filetype Plugin
« Reply #10 on: March 26, 2012, 01:27:48 AM »
Added support for the FSH attachments.

File version updated to 1.2.2.3.

Offline null45

  • Lex Certified
  • Forums Mayor
  • *
  • Posts: 221
  • Total likes: 27
  • Reputation: 18
  • CL:
    All formats lead to FSH
Re: Paint.NET Fsh Filetype Plugin
« Reply #11 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.

Offline null45

  • Lex Certified
  • Forums Mayor
  • *
  • Posts: 221
  • Total likes: 27
  • Reputation: 18
  • CL:
    All formats lead to FSH
Re: Paint.NET Fsh Filetype Plugin
« Reply #12 on: May 12, 2012, 02:50:38 PM »
Fixed a crash in the DXT1 compression, File version updated to 1.2.2.5.

Offline null45

  • Lex Certified
  • Forums Mayor
  • *
  • Posts: 221
  • Total likes: 27
  • Reputation: 18
  • CL:
    All formats lead to FSH
Re: Paint.NET Fsh Filetype Plugin
« Reply #13 on: July 30, 2014, 06:57:28 PM »
Fixed a number of attachment handling bugs, file version updated to 1.2.2.6.

Offline catty

Re: Paint.NET Fsh Filetype Plugin
« Reply #14 on: July 31, 2014, 05:22:29 AM »
 &apls  for continuing to update this, its much appreciated
I meant," said Ipslore bitterly, "what is there in this world that truly makes living worthwhile?" DEATH thought about it. "CATS," he said eventually, "CATS ARE NICE.

Offline null45

  • Lex Certified
  • Forums Mayor
  • *
  • Posts: 221
  • Total likes: 27
  • Reputation: 18
  • CL:
    All formats lead to FSH
Re: Paint.NET Fsh Filetype Plugin
« Reply #15 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.

Offline null45

  • Lex Certified
  • Forums Mayor
  • *
  • Posts: 221
  • Total likes: 27
  • Reputation: 18
  • CL:
    All formats lead to FSH
Re: Paint.NET Fsh Filetype Plugin
« Reply #16 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.