Sim City 4 Devotion Forums

Sim City 4 Devotion Tools => Tools - General Discussion => null45's Tools => Topic started by: null45 on May 05, 2011, 07:39:24 PM

Title: Fsh Format Plugin for Adobe® Photoshop®
Post by: null45 on May 05, 2011, 07:39:24 PM
This plugin allows Adobe® Photoshop® 5.0 or later to load and save Fsh files.

Images containing an alpha channel are handled differently depending on the version of Photoshop.
Photoshop 5.5 or earlier will add the alpha channel to the channels palette.
Photoshop 6.0 or later will use the alpha channel as the layer transparency.

When compressing certain Maxis files (e.g. the base texture 0x258E3004) the resulting image is darker than it looks under Photoshop, this is an issue with the color matching algorithm that Squish (http://code.google.com/p/libsquish/) uses.

Download: FshFormat (http://sc4devotion.com/csxlex/lex_filedesc.php?lotGET=2623).

I hope it is useful.  ;)
Title: Re: Fsh Format Plugin for Adobe® Photoshop®
Post by: jdenm8 on May 05, 2011, 09:26:05 PM
Oh cool! It supports my version too!  :)
Title: Re: Fsh Format Plugin for Adobe® Photoshop®
Post by: jdenm8 on May 20, 2011, 09:47:23 AM
It's been a fortnight and I've got a bug to report, so I guess a double-post isn't too bad.

FSHes don't save properly in Photoshop 6, it seems to corrupt them somehow.
Title: Re: Fsh Format Plugin for Adobe® Photoshop®
Post by: null45 on May 20, 2011, 10:04:25 AM
Could you upload the images that it saves?

Does it give any error messages?

I tested the saving functionality of this plugin under the Photoshop CS2 demo as the demo of Photoshop 6 does not allow you to use the save command.  :(
Title: Re: Fsh Format Plugin for Adobe® Photoshop®
Post by: jdenm8 on May 20, 2011, 10:20:46 AM
This one was exported from Reader using Decoded File exportation, I used the eraser tool to remove some of the garbage texture, then saved it using Ctrl-S.

When I try to re-open it, I get the error message "Could not open:'{directory}.fsh' because the file-format module cannot parse the file.

Title: Re: Fsh Format Plugin for Adobe® Photoshop®
Post by: null45 on May 22, 2011, 01:52:19 AM
That issue should now be fixed.
File version updated to 1.0.0.1.  :thumbsup:
Title: Re: Fsh Format Plugin for Adobe® Photoshop®
Post by: dobdriver on August 12, 2011, 01:31:56 AM

G'Day Null this is a very useful item, thanks mate.

Is there any possibility of you doing a a 64bit version? Thanks.

cheers
dobs
Title: Re: Fsh Format Plugin for Adobe® Photoshop®
Post by: vester on August 12, 2011, 10:49:03 AM
Fantastic! Very useful indeed.

Thank you.
Title: Re: Fsh Format Plugin for Adobe® Photoshop®
Post by: null45 on August 12, 2011, 02:14:11 PM
Is there any possibility of you doing a a 64bit version? Thanks.

The 64-bit plugin is up on the LEX.
File version updated to 1.0.0.2.   :)
Title: Re: Fsh Format Plugin for Adobe® Photoshop®
Post by: dobdriver on August 12, 2011, 11:47:55 PM

G'Day Null,

Thanks a lot mate, that was quick. Talk about great service.

Thanks and cheers
dobs
Title: Re: Fsh Format Plugin for Adobe® Photoshop®
Post by: vester on May 13, 2012, 05:57:33 PM
Have a small request if posible.

When saving to fsh, to have it ask for the size of the file.

Works with graphics in bigger size like 1024x1024 px, but would love to be able to resize in the process of saving to fsh.

At the moment, I save to png, then open the png, resize it and save as fsh.
Title: Re: Fsh Format Plugin for Adobe® Photoshop®
Post by: null45 on May 13, 2012, 11:14:49 PM
Have a small request if posible.

When saving to fsh, to have it ask for the size of the file.

Works with graphics in bigger size like 1024x1024 px, but would love to be able to resize in the process of saving to fsh.

At the moment, I save to png, then open the png, resize it and save as fsh.

This will most likely not be implemented, Photoshop Actions might work to automate the PNG loading and saving.
Title: Re: Fsh Format Plugin for Adobe® Photoshop®
Post by: jdenm8 on May 14, 2012, 03:57:16 AM
I don't see why you would need that functionality, I can open the FSH, resize it using Image Size, then save it again perfectly fine in Photoshop CS6 Beta.
Title: Re: Fsh Format Plugin for Adobe® Photoshop®
Post by: vester on May 14, 2012, 08:29:26 AM
It would save a lot of time, saving, opening and resizing png/fsh files.

.... and help me avoid be resizing the psd flie, as I have done a few times.
Title: Re: Fsh Format Plugin for Adobe® Photoshop®
Post by: null45 on December 12, 2012, 01:17:45 AM
Added saving of embedded mipmaps and FSHWrite compression is now optional.
Additionally this plugin is now scriptable using Photoshop Actions, file version updated to 1.0.0.3.  ;)

Title: Re: Fsh Format Plugin for Adobe® Photoshop®
Post by: vortext on December 12, 2012, 05:57:58 AM
Awesome new features, especially it can now be used in Actions. Thanks.  &apls
Title: Re: Fsh Format Plugin for Adobe® Photoshop®
Post by: vester on March 04, 2013, 08:42:04 AM
Thank you for the update.


Have an question about the differences between the save options:
(http://i40.photobucket.com/albums/e242/vester_DK/Div/FSHOptions_zps7cea88a3.jpg)
What to choice for what ?


Specific I have nigthlight texture for an automata. I don't need an alpha channel. Not sure what to save it as of 3 first options.
Title: Re: Fsh Format Plugin for Adobe® Photoshop®
Post by: JoeST on March 04, 2013, 09:19:24 AM
the 24bit RGB has no alpha and is uncompressed, whereas the DXT1 will be compressed so may lose quality
Title: Re: Fsh Format Plugin for Adobe® Photoshop®
Post by: vester on July 30, 2013, 05:00:03 PM
Its me again :P

Have now installed Windows 7, 64 bits and PS CS6 64bits.

Got this error (system info):

Plug-ins that failed to load:

   FshFormat NO VERSION -  - from the file “FshFormat64.8bi”

I have Microsoft Visual C++ 2010 SP1 Redistributable Package (x64) installed.
Just repair it for just to eliminate it.

Not sure what to do. Place a copy of it in both folders:
C:\Program Files\Adobe\Adobe Photoshop CS6 (64 Bit)\Plug-ins\File Formats
C:\Program Files (x86)\Adobe\Adobe Photoshop CS6\Plug-ins\File Formats
Title: Re: Fsh Format Plugin for Adobe® Photoshop®
Post by: null45 on July 30, 2013, 08:36:56 PM
That issue should be fixed, file version updated to 1.0.0.4.  ;)
Title: Re: Fsh Format Plugin for Adobe® Photoshop®
Post by: vester on July 31, 2013, 07:59:42 AM
Yep that did the trick. Now I can open FSH in PS.  &apls &apls &apls

Thank you.
Title: Re: Fsh Format Plugin for Adobe® Photoshop®
Post by: null45 on November 19, 2014, 06:41:18 AM
Fixed a memory leak when saving images, file version updated to 1.0.0.5.
Title: Re: Fsh Format Plugin for Adobe® Photoshop®
Post by: c.p. on November 19, 2014, 11:06:07 AM
Thank you for this.  It looks like it could be very useful. :thumbsup:
Title: Re: Fsh Format Plugin for Adobe® Photoshop®
Post by: null45 on January 20, 2015, 11:30:02 AM
Added support for Photoshop 5.0.
Fixed a bug with DXT1 images that do not have an alpha channel, various other bugs fixed.

File version updated to 1.1.0.0.