Menu

LEX File Exchange
EA Support Files
SC4 Wikipedia
Network Addon Mod
Dependencies
Chat
Welcome, Guest. Please login or register.
Did you miss your activation email?

July 27, 2021, 08:38:23 PM

Login with username, password and session length

Author Topic: Gimp Fsh Filetype plugin  (Read 12723 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
Gimp Fsh Filetype plugin
« on: August 01, 2009, 02:09:30 PM »
This is a Filetype plug-in I wrote to allow The Gimp to load and save Fsh Files.



It will load all the images in the fsh file as layers.
The files will be alpha blended unless the file name contains "noblend" then it will disable alpha blending on that file.

When saving a file an options dialog will allow you to set the type of Fsh and if Mipmaps are to be generated for the zoom levels.

To install place all of the files in the folder into the Gimp's plug-ins directory (typically lib\gimp\2.0\plug-ins), they all must be in the main plug-ins folder not a subfolder. 

The "Generate Mipmaps" function requires Gimp 2.6.0 or later.

Download: GimpsharpFsh

File version should be 1.2.2.6

I hope it is useful.  ;)
« Last Edit: May 31, 2011, 11:21:14 PM by null45 »

Offline sithlrd98

Re: Gimp Fsh Filetype plugin
« Reply #1 on: August 01, 2009, 02:18:40 PM »
Do I need this one or is version I got the other day OK? Works great BTW!

Jayson

Offline Tarkus

  • Administrator
  • Forums Legend
  • *
  • Posts: 11670
  • Total likes: 5789
  • Reputation: 75
  • NAM Team Tankadillo
    • NAM HQ
  • CL: Dr. PuzzlePiece
Re: Gimp Fsh Filetype plugin
« Reply #2 on: August 01, 2009, 02:47:49 PM »
null45, thank you so much for this!  It'll be an absolute lifesaver for me, and I'm sure many others. 

-Alex

Offline null45

  • Lex Certified
  • Forums Mayor
  • *
  • Posts: 221
  • Total likes: 27
  • Reputation: 18
  • CL:
    All formats lead to FSH
Re: Gimp Fsh Filetype plugin
« Reply #3 on: August 01, 2009, 04:09:12 PM »
A bug in the save dialog fixed, File version updated to 1.2.1.0.

Do I need this one or is version I got the other day OK? Works great BTW!

This version allows you to select the type of fsh to save in a dialog rather than a command prompt console.
It also allows you to automatically generate the Mipmaps during saving.  :thumbsup:

Offline sithlrd98

Re: Gimp Fsh Filetype plugin
« Reply #4 on: August 01, 2009, 04:14:35 PM »
 :thumbsup: Thanks...I'll check it out. As I have said before , thank you for these awesome tools...they make modding so much faster!

Jayson

Offline dragonshardz

  • 3RR Team
  • Forums Parliamentarian
  • *
  • Posts: 1385
  • Total likes: 1
  • Reputation: 1
  • Feel free to call me Patrick.
Re: Gimp Fsh Filetype plugin
« Reply #5 on: August 10, 2009, 05:04:41 PM »
Quick question: Where would the plugins directory we need to place it in be located? I've found 3, one in my Program Files folder and two in my Documents folder

Offline sithlrd98

Re: Gimp Fsh Filetype plugin
« Reply #6 on: August 10, 2009, 05:27:46 PM »
This is the one I added it to :C:\Program Files (x86)\GIMP-2.0\lib\gimp\2.0\plug-ins . Keep in mind I am using a x64 OS , so it may just be Program Files\Gimp\*

Jayson

Offline dragonshardz

  • 3RR Team
  • Forums Parliamentarian
  • *
  • Posts: 1385
  • Total likes: 1
  • Reputation: 1
  • Feel free to call me Patrick.
Re: Gimp Fsh Filetype plugin
« Reply #7 on: August 10, 2009, 06:32:40 PM »
Jayson, my OS is x64 as well, so thank you for clearing that up.

Offline null45

  • Lex Certified
  • Forums Mayor
  • *
  • Posts: 221
  • Total likes: 27
  • Reputation: 18
  • CL:
    All formats lead to FSH
Re: Gimp Fsh Filetype plugin
« Reply #8 on: August 10, 2009, 10:55:25 PM »
Yes the correct path is
Code: [Select]
lib\gimp\2.0\plug-ins Although the Gimp has another plug-ins directory the main one is the easiest to use.  ;)

Offline vil

Re: Gimp Fsh Filetype plugin
« Reply #9 on: August 11, 2009, 04:16:16 AM »
Doesnt work for me (Win XP)  %confuso any ideas? Its there it just wont load or save.

« Last Edit: August 11, 2009, 04:18:50 AM by vil »

Offline null45

  • Lex Certified
  • Forums Mayor
  • *
  • Posts: 221
  • Total likes: 27
  • Reputation: 18
  • CL:
    All formats lead to FSH
Re: Gimp Fsh Filetype plugin
« Reply #10 on: August 11, 2009, 12:53:47 PM »
Did it ever display the dialog to select the type of fsh when saving?

A bug in the error catching system and a bug in the Mipmap saving fixed, file version updated to 1.2.2.0. 

It now should display the errors during loading and saving and the Mipmaps should be saved correctly.
« Last Edit: August 11, 2009, 01:19:18 PM by null45 »

Offline choco

  • NAM Team
  • Forums Senator
  • *
  • Posts: 783
  • Total likes: 19
  • Reputation: 10
  • "bridge" engineer...
  • CL: SC4 Bridgemeister
Re: Gimp Fsh Filetype plugin
« Reply #11 on: August 11, 2009, 01:22:53 PM »
will give it a try....thanks null45!  :thumbsup:

Offline vil

Re: Gimp Fsh Filetype plugin
« Reply #12 on: August 12, 2009, 03:09:13 AM »
Ah, now it tells me whats wrong, the notorious "non-english character in pathname" problem, I will need to re-install gimp.

Offline cogeo

  • NAM Team
  • Forums Parliamentarian
  • *
  • Posts: 1160
  • Total likes: 38
  • Reputation: 18
  • CL:
    SC4 Station Master
Re: Gimp Fsh Filetype plugin
« Reply #13 on: August 13, 2009, 11:49:59 AM »
Great work here!  &apls

I have an idea: something that could be very useful to texture makers (I'm sure the NAM Team members will appreciate it A LOT) would be a FSH thumbnail extractor. Ie not an application, but instead a plugin that's installed under Windows and allows previewing certain file types (in our case .FSH files) in thumbnail view in the Windows Explorer.

I have to clarify though, that this isn't a "request", neither a "wish" from me, just an idea. You will have to ask more members (esp from NAM) to verify if there's really a need for this.

Offline null45

  • Lex Certified
  • Forums Mayor
  • *
  • Posts: 221
  • Total likes: 27
  • Reputation: 18
  • CL:
    All formats lead to FSH
Re: Gimp Fsh Filetype plugin
« Reply #14 on: February 22, 2010, 11:18:37 PM »
Updated to use the higher quality Fshwrite compression when writing DXT1 or DXT3 fsh files, a few bugs fixed.
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: Gimp Fsh Filetype plugin
« Reply #15 on: May 19, 2010, 04:57:30 PM »
A bug in the fsh type selection and a few other bugs fixed, Fshwrite compression is now a selectable option.

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: Gimp Fsh Filetype plugin
« Reply #16 on: June 29, 2010, 11:30:15 PM »
Updated to use The Gimp's image resize function when resizing the mipmaps, File version updated to 1.2.2.5.  :thumbsup:

Offline null45

  • Lex Certified
  • Forums Mayor
  • *
  • Posts: 221
  • Total likes: 27
  • Reputation: 18
  • CL:
    All formats lead to FSH
Re: Gimp Fsh Filetype plugin
« Reply #17 on: May 31, 2011, 11:23:14 PM »
DXT1 images will now load the alpha channel correctly, File version updated to 1.2.2.6.

Offline Nijomi

Re: Gimp Fsh Filetype plugin
« Reply #18 on: June 01, 2011, 09:41:04 AM »
Quote from: Cogeo
I have an idea: something that could be very useful to texture makers (I'm sure the NAM Team members will appreciate it A LOT) would be a FSH thumbnail extractor. Ie not an application, but instead a plugin that's installed under Windows and allows previewing certain file types (in our case .FSH files) in thumbnail view in the Windows Explorer.
Is this what you had in mind Fsh file Thumbnails for Windows. I have used this but removed it as it does not seem to be compatable with FSH2PNG MkII it seems to make FSH2PNG MkII crash when converting fsh to png in some cases.

Offline null45

  • Lex Certified
  • Forums Mayor
  • *
  • Posts: 221
  • Total likes: 27
  • Reputation: 18
  • CL:
    All formats lead to FSH
Re: Gimp Fsh Filetype plugin
« Reply #19 on: June 01, 2011, 10:48:19 PM »
What OS are you using?

Under Windows 7 there is a bug that causes the files to be locked by Windows. :thumbsdown:

Could you upload a sample file that makes FSH2PNG MkII crash?