Well... the topic sums up the problem somewhat. It's with me running Windows Vista and trying to run some FSH editing programs on it.
Lately, I've been wanting to edit some FSH files in some SimCity DATs. Opening them in LE, ILive Reader, and ingame all work well, and all textures are displayed. However, the issue comes when I try to open FSHs in both FiSHMan and SC4Tool.
In SC4Tool, the exemplars show, but no image of the texture is displayed.
In FiSHMan, the program displays an error when trying to open the file.
In both cases I am unable to edit, modify, or extract any textures. I have ideas on editing them, and I've tried to find solutions, but this has gone on for some time. I'd really appreciate it if someone could help me become a more active texture maker again like I was before my complete move over to Windows Vista from Windows XP.
- Allan Kuan
(still stuck in the dark)
- Allan Kuan
Could you try to attach the FSH to the post.
If you're running any 64 bit variant, you're out of luck. 16 bit programs won't run, unless you use an emulator. If you're using a 32 bit system, try running it in compatibility mode with administrator rights, (the same applies to SC4Tool) and see if that helps. Dos Box works with Vista (both x86 and x64) and is the emulator I use most. Cheers!
Thanks Jestarr. Good to know. Am thinking of buying a 64 bit system at one point.
very still stuck in the dark. >.<
even though there is a workaround from Wou, it's impossible to use the workaround to create alpha textures.
So far compatibility mode doesn't work, even though I'm running 32-bit Windows Vista Home Premium.
And do you want me to attach every texture that I want to convert? There's a lot. :D
- Allan Kuan
I've been working a lot with converting textures from and to fsh, and it seems to work OK. I have Vista 64bits. My only problem, common to everyone else is the TE editor of SC4Tool. I still work with it, but I'm not able to see the base textures, which doesn't stop me from still working it around.
By the way, I don't use FSHMan, but another 32bits application, SC4FSHConverter. :)
SC4FSHConverter, you say???
And where one could be found?
I'd REALLY love to know where to get a program equivalent to FiSHMan that works with Vista. I used to be able to crank out police car skins like they were nothing - see the links in my signature - but I used a piece-of-crap laptop running Windows 2000 for that. (It didn't even meet the minimum requirements for SC4) But now I have a much better computer which has Windows Vista x64 and so of course I'm stuck without FiSHMan. I think SimFox's latest post in this thread sums up my thoughts nicely:
Quote from: SimFox on August 30, 2008, 08:20:05 AM
SC4FSHConverter, you say???
And where one could be found?
Well... uh... i dunno if i should mention it... $%Grinno$%
Umm I think Wou wanted us to keep it a secret...
However the workaround found doesn't work with alpha textures. &mmm And that's where I am stuck right now... because I got some PNG files that I want to convert into alpha overlay SC4FSH texture files.
- Allan Kuan
Ahh, the joys of continuing to run Windows XP Pro.
I never thought I'd say that, but the only thing that shuts off the 'puter these days, going back maybe a year and a half, are power failures and trips away when we more or less shut up the house. So we're what, into XP about six, seven years now? Hard to go wrong at this point.
David
There is also the EA Graphics Editor (http://www.nba-live.com/eagraph/). The page says "NBA Live Series", but it creates FSH files, which are common to many EA games, actually.
I'd also have to concur with David here about XP. I just bought a new laptop a couple weeks ago, and it had Vista Home Premium on it--quite sluggish. However, I immediately pulled it off and put XP SP2 on it. Runs like a charm--just make sure you can find the XP drivers for all your devices first.
-Alex (Tarkus)
Oooh I MUST try this EA graphics editor...
WOW, this thing is AWESOME! it is a freaking drawing program that woks on FSH files, it doesn't just convert to and from FSH and it supports a lot more image formats than just PNG... daaaamn I can definitely get back on re-skinning cop cars with this! Thanks a million tarkus!
Hey if I play wth this enough I might make a tutorial out of it...
Hmmm very sluggish menus... and I don't know how to save the alpha map as a separate image... But I did get the skin of one of my police cars saved as a PNG.
(https://www.sc4devotion.com/forums/proxy.php?request=http%3A%2F%2Fi220.photobucket.com%2Falbums%2Fdd138%2Fnerdly_dood%2FBluewhitecopcar-1.png&hash=9833aad370ed730558e8cca9bf1f66252e2db763) You can see that quality was reduced at some point, and I'm reasonably sure that the muddling of the image is an artifact of the way FiSHMan works with them, because if I look closely at the car in SC4, it looks muddled in places, the very same places where it's muddled here.
Okay so I have the image edited somewhat so I'll try and see if I can use this EA program to put the new skin in-game... I already have some suitable alpha maps that survived the death of my laptop so I can use those when the time comes. Aaaand somehow I managed to turn the entire FSH transparent... I really do have some tinkering to do with this thing.
Sorry for bumping but I found a tool that works while FiSHMan, SC4Tool and EaGraph don't on my PC.
It's here: http://www.nba2kstuff.org/nba/download/2006/setup_wDOLFFIN.exe.htm
It's from this website and was on a lot of the NHL websites (EA hockey game that uses FSH as well)
http://www.nba2kstuff.org/nba/download/home2k56.html
If you get an error message needing a dll you can get it here:
http://www.dlldump.com/dllfiles/D/dx8vb.dll
Put that in C:\Windows\System
You need to export the fsh from the dat (as usual)
open it in the Dolffin, then click on the texture in the left list box, and then click the blue circle with yellow X in it in the toolbar and the rest should be obvious.
I've tried and it seems to work great, Also can convert back to FSH and supports alphas :)
EDIT: There are a few bugs such as you can't create new FSH, so you to convert from png to fsh you have to export from the reader a random FSH then replace the blob in that.
Also don't save it ust wait till a filename.bak.fsh file appears in the folder that you opened the FSH in and then close the program Without saving and filename.fsh will be the png you converted into fsh while the .bak.fsh will be the one you replaced. Saving corrupts the fsh file.
Also don't click import or export without selecting a blob, or it will crash.
Jonathan
I think the problem is not the Tools them selves, but the dll called FSHLib, I'm not "hot" on programming, only tools that use this dll have a problem, I tried programming a VB app that uses it and it came up with the same problem, also the reader and dolffin don't use this dll and they work.
So I'm guessing it tries to reference/use something that was removed in Vista?
Where does this dll come from and is there source code that could be fixed?
Jonathan
Quote from: WarriorWhere does this dll come from and is there source code that could be fixed?
The dll is part of DatGen 4.
The source code can be obtained by using .NET Reflector (http://www.red-gate.com/products/reflector/)
the problem in the code is i think it tries to set the color palette to one that has 0 colors.
the code
colorArray.Length
would be zero colors unless it is a 8 Bit Indexed fsh, then the
colorArray.Length
would be greater than zero
null45, so you could fix this?
If you can please do it would be a massive help to everyone with Vista.
Jonathan
(https://www.sc4devotion.com/forums/proxy.php?request=http%3A%2F%2Fimg149.imageshack.us%2Fimg149%2F771%2Ffbe5e57bfb6.png&hash=a1405d31ec20ad7f5bcc89af62e3e69088360c78)
It works
WOW... nice fix =O
Now... can you also patch SC4Tool? =)
- Allan Kuan
The SC4Tool problem is with fsh textures?
In that case the problem may be fixed by replacing the FSHLib dll with the vista friendly version.
FSHLib vista: http://sc4devotion.com/csxlex/lex_filedesc.php?lotGET=2250 (http://sc4devotion.com/csxlex/lex_filedesc.php?lotGET=2250)
it should overwrite the old version
The file version number on the vista friendly version should be: 0.3.1.32186
Requirements: Microsoft .NET Framework Version 2.0 (http://www.microsoft.com/downloads/details.aspx?familyid=0856eacb-4362-4b0d-8edd-aab15c5e04f5&displaylang=en)
you just fixed it... :o, thank you so much, this is a great help.
Jonathan
I'm surprised. Really.
Because you have just fixed one of the most annoying bugs ever to hit my computer. xD
Now with SC4Tool running with administrative privileges (to allow saving to Program Files (x86)/SC4Tool/Export) and with the new DLL applied, everything works like a charm.
THANK YOU SO MUCH! I'll be looking forward to using it during the weekend. =)
- Allan Kuan
It recalls me one of Einstein's thoughts:
Everyone knows that it can't be done. And then comes one, who doesn't know, that it can't be done and does that.
Although there were some other options to manage problems, this is a milestone job :thumbsup:.
oh btw, if you check "desktop Composition" it will turn off Aero when you run SC4Tool, so the menus don't take forever to load the shadows.
I think this should be like uploaded to the LEX.
Jonathan
Quote from: null45 on February 11, 2009, 07:36:15 PM
The SC4Tool problem is with fsh textures?
In that case the problem may be fixed by replacing the FSHLib dll with the vista friendly version.
FSHLib vista: http://www.mediafire.com/download.php?wfnylitwmmy (http://www.mediafire.com/download.php?wfnylitwmmy)
it should overrite the old version
Requirements: Microsoft .NET Framework Version 2.0 (http://www.microsoft.com/downloads/details.aspx?familyid=0856eacb-4362-4b0d-8edd-aab15c5e04f5&displaylang=en)
Thx a lot, it works %BUd%
(https://www.sc4devotion.com/forums/proxy.php?request=http%3A%2F%2Fimg3.imageshack.us%2Fimg3%2F9545%2Fsc4toolupdatednk9.th.jpg&hash=149b1796c22329ac5fc4e82ed6089c070ff32bc0) (http://img3.imageshack.us/my.php?image=sc4toolupdatednk9.jpg)
I believe that this thread is important enough to warrant pin status for future reference xD
- Allan Kuan
Agreed. Pin this gem, please!
Now my Lone Star Mod can move along! :D
Thank you so much!
Done. null45, thank you for all your hard work on this fix! A lot of Vista users are going to be very happy.
-Alex (Tarkus)
Just like that.
Wow! Thanks, null45. You've made a lot of folks happy in the last day or so.
David
Wow, someones fixed it after all this time? awsome
somebody should attachify that zip to the first post, and make an explanation, or maybe upload it to the lex/somewhere more long lasting than a file hosting site.
was there any other vista related problems? i cant remember
Joe
To isolate the problem I obtained the source using .NET Reflector. I simply built the code in debug mode & ran it in Vista.
The problem with the colorArray became apparent when I ran fshlib under the IDE's debugger while it was being run on vista. >:D
Thank you soo much for fixing this! I finally upgraded from a POS xp2500 1.5 gig system to a quad4 phenom with 6 gigs , and have had zero problems with SC4 or any of the tools (that were having problems). Now I can mod faster!
Jayson
Sorry for bumping this thread but I have a problem with the updated FSHLib.dll file for Vista.
Before the update I couldn't see the textures in SC4Tool, but after the update I get this error message when trying to open a file:
(https://www.sc4devotion.com/forums/proxy.php?request=http%3A%2F%2Fimg237.imageshack.us%2Fimg237%2F6923%2Ferrore.jpg&hash=5f989f21bdcfc11e841af41b7314282f87393fd0)
Help is really much appreciated, thanks!
But before you updated the FSHLib you could open the file?
Jonathan
Yes but I couldn't see the textures..
I got this message after overwriting the old FSHLib file with the new one for Vista.
Before the update, SC4Tool worked but the textures didn't. I've tried it several times now but it still doesn't work.
When I try to open a texture in the texture scanner I get this message
(https://www.sc4devotion.com/forums/proxy.php?request=http%3A%2F%2Fimg211.imageshack.us%2Fimg211%2F8889%2Fproblemsop.jpg&hash=4b527efd2b0470fe893624eb829543c99d424993)
This is what is says in the details tab:
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.BadImageFormatException: The format of the file 'FSHLib' is invalid.
File name: "FSHLib"
at sr_SC4Lib.TextureReader.GetBitmap(Byte[] ByteListe)
at sr_SC4Lib.TextureReader.GetTextureImage(cTexture& contents)
at SC4Tool.FormTM.TreeView1_AfterSelect(Object sender, TreeViewEventArgs e)
at System.Windows.Forms.TreeView.OnAfterSelect(TreeViewEventArgs e)
at System.Windows.Forms.TreeView.TvnSelected(NMTREEVIEW* nmtv)
at System.Windows.Forms.TreeView.WmNotify(Message& m)
at System.Windows.Forms.TreeView.WndProc(Message& m)
at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
=== Pre-bind state information ===
LOG: DisplayName = FSHLib, Version=0.3.2.41616, Culture=neutral, PublicKeyToken=null
(Fully-specified)
LOG: Appbase = C:\Program Files\SC4Tool\
LOG: Initial PrivatePath = NULL
Calling assembly : sr_SC4Lib, Version=2.1.3.0, Culture=neutral, PublicKeyToken=null.
===
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
LOG: Post-policy reference: FSHLib, Version=0.3.2.41616, Culture=neutral, PublicKeyToken=null
LOG: Attempting download of new URL file:///C:/Program Files/SC4Tool/FSHLib.DLL.
************** Loaded Assemblies **************
mscorlib
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.2407
CodeBase: file:///c:/windows/microsoft.net/framework/v1.1.4322/mscorlib.dll
----------------------------------------
SC4Tool
Assembly Version: 2.2.7.0
Win32 Version: 2.2.7.0
CodeBase: file:///C:/Program%20Files/SC4Tool/SC4Tool.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.2032
CodeBase: file:///c:/windows/assembly/gac/system.windows.forms/1.0.5000.0__b77a5c561934e089/system.windows.forms.dll
----------------------------------------
System
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.2407
CodeBase: file:///c:/windows/assembly/gac/system/1.0.5000.0__b77a5c561934e089/system.dll
----------------------------------------
System.Drawing
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.2032
CodeBase: file:///c:/windows/assembly/gac/system.drawing/1.0.5000.0__b03f5f7f11d50a3a/system.drawing.dll
----------------------------------------
SandBar
Assembly Version: 1.1.0.0
Win32 Version: 1.1.0.0
CodeBase: file:///C:/Program%20Files/SC4Tool/SandBar.DLL
----------------------------------------
SandDock
Assembly Version: 1.0.6.1
Win32 Version: 1.0.6.1
CodeBase: file:///C:/Program%20Files/SC4Tool/SandDock.DLL
----------------------------------------
sr_SC4Lib
Assembly Version: 2.1.3.0
Win32 Version: 2.1.3.0
CodeBase: file:///C:/Program%20Files/SC4Tool/sr_SC4Lib.DLL
----------------------------------------
System.Data
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.2032
CodeBase: file:///c:/windows/assembly/gac/system.data/1.0.5000.0__b77a5c561934e089/system.data.dll
----------------------------------------
System.Xml
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.2032
CodeBase: file:///c:/windows/assembly/gac/system.xml/1.0.5000.0__b77a5c561934e089/system.xml.dll
----------------------------------------
Microsoft.VisualBasic
Assembly Version: 7.0.5000.0
Win32 Version: 7.10.6001.4
CodeBase: file:///c:/windows/assembly/gac/microsoft.visualbasic/7.0.5000.0__b03f5f7f11d50a3a/microsoft.visualbasic.dll
----------------------------------------
sr_Resources
Assembly Version: 1.0.2205.21686
Win32 Version: 1.0.2205.21686
CodeBase: file:///C:/Program%20Files/SC4Tool/sr_Resources.DLL
----------------------------------------
Accessibility
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase: file:///c:/windows/assembly/gac/accessibility/1.0.5000.0__b03f5f7f11d50a3a/accessibility.dll
----------------------------------------
Eyefinder
Assembly Version: 1.0.4.2
Win32 Version: 1.0.4.2
CodeBase: file:///C:/Program%20Files/SC4Tool/Eyefinder.DLL
----------------------------------------
C1.Win.C1FlexGrid
Assembly Version: 2.5.20052.212
Win32 Version: 2.5.20052.213
CodeBase: file:///C:/Program%20Files/SC4Tool/C1.Win.C1FlexGrid.DLL
----------------------------------------
C1.Common
Assembly Version: 1.0.20031.116
Win32 Version: 1.0.20042.118
CodeBase: file:///C:/Program%20Files/SC4Tool/C1.Common.DLL
----------------------------------------
************** JIT Debugging **************
To enable just in time (JIT) debugging, the config file for this
application or machine (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.
For example:
<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>
When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the machine
rather than being handled by this dialog.
If someone could help me out i'd be really grateful, cause I'm really stuck. ()what()
What version is the FSHLib dll? (Go into it's propeties and the details tab, or hover the mouse over it)
it should be 0.3.1.31964.
Jonathan
Yes it is 0.3.1.31964. I already checked that, I'm pretty sure everything is correct, but it just doesn't work..
Quote=== Pre-bind state information ===
LOG: DisplayName = FSHLib, Version=0.3.2.41616, Culture=neutral, PublicKeyToken=null
(Fully-specified)
LOG: Appbase = C:\Program Files\SC4Tool\
LOG: Initial PrivatePath = NULL
Calling assembly : sr_SC4Lib, Version=2.1.3.0, Culture=neutral, PublicKeyToken=null.
===
Sorry, shoudln't have asked that as it says in the details that SC4Tool isn't using that version(bold above)?
Maybe you haven't put the FSHLib in the correct location, it needs to replace the dll in the Sc4Tools folder(generally in the Program Files folder)
Jonathan
Yes that's what I found pretty weird as well. Because I just put it in the SC4Tool folder in the Program Files folder.
Look:
(https://www.sc4devotion.com/forums/proxy.php?request=http%3A%2F%2Fimg259.imageshack.us%2Fimg259%2F9505%2Ffshlib.th.jpg&hash=9a3350d3c020c7dfbe7b54c9424a8e77774578f5) (http://img259.imageshack.us/my.php?image=fshlib.jpg)
Quotemscorlib
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.2407
CodeBase: file:///c:/windows/microsoft.net/framework/v1.1.4322/mscorlib.dll
Sc4tool is built with the net framework
1.1.4322 the fixed fshlib is built with
2.0.50727.
When Sc4tool tries to load the fixed fshlib it throws an error, because .NET version
2.0.50727 is newer and version
1.1.4322 does not know how to read it.
The vista friendly version should now work with Sc4tool as it is now built with the net framework
1.1.4322.
Fshlib vista: http://sc4devotion.com/forums/index.php?topic=5142.msg221467#msg221467 (http://sc4devotion.com/forums/index.php?topic=5142.msg221467#msg221467)
The old .NET
2.0.50727 vista friendly version was never tested with Sc4tool on vista. ::)
Also that is not the right folder, as there are many files missing including the main EXE.
Right click on the icon you use to open Sc4Tool and click Open File Location, if it opens an explorer window with another shortcut then right click and open file location again.
Jonathan
Thanks null45, you helped me out!! &apls
@Jonathan: Everything was installed in the programs folder, as you can see in my screenshot I only took a picture of the fshlib part and not the whole folder. ;)
Oops sorry didn't notice that &ops
Jonathan
The Vista patch has been updated to fix the same issue on XP.
Thank you so much for this. I can't tell you how much grief this has saved me.
It should be uploaded to the LEX, and the STEX. And the tools that uses it could be updated.
Quote from: Jonathan on October 23, 2009, 10:39:29 AM
It should be uploaded to the LEX, and the STEX. And the tools that uses it could be updated.
Yeah, I guess an update of SC4Tool would be appropriate, now that every single Windows version is affected... ::)
Quote from: geoffhaw on October 23, 2009, 10:07:43 AM
Thank you so much for this. I can't tell you how much grief this has saved me.
I first noticed the problem when trying to run one of my programs after installing the update.
The reason the old vista fix would not work on XP was that it would check the OS version before applying the fix, when I wrote the fix I assumed that the bug did not affect XP. ::)
Edit: The vista friendly version is now on the LEX.