SUBSIM Radio Room Forums



SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997

Go Back   SUBSIM Radio Room Forums > Silent Hunter 3 - 4 - 5 > SH4 Mods Workshop
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 03-28-09, 10:53 PM   #1
Webster
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default what is a ZHF file and how to open it?

in corotios truk mod he made ZHF files for the data/ terrain/ data file.

i know he made them because they arent in the stock game.

how can i open them and see whats inside and maybe do something with files like that myself?
  Reply With Quote
Old 03-29-09, 08:37 PM   #2
Webster
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

google cant find out everything so i need help here
  Reply With Quote
Old 03-29-09, 10:05 PM   #3
peabody
Admiral
 
Join Date: Jan 2008
Location: New York State, USA
Posts: 2,390
Downloads: 126
Uploads: 7
Default

Quote:
Originally Posted by WEBSTER View Post
in corotios truk mod he made ZHF files for the data/ terrain/ data file.

i know he made them because they arent in the stock game.

how can i open them and see whats inside and maybe do something with files like that myself?
I dont' know what they are either but they are in my stock game inside another folder. data/terrain/data/W158N022

Peabody
__________________

System Spec: Gigabyte GA-965P-DS3, PentiumD Dual Core Presler 945 3.4Ghz, Gigabyte Geforce 7600GS, 2-1GB Corsair XMS2 800Mhz in Dual Channel, 2-WD 250 SATA 3Gb/s, Onboard Realtek HD 7.1 Audio, DVD ROM, DVD burner, Hiper 580 Watt Power supply, WinXP SP2.

peabody is offline   Reply With Quote
Old 03-29-09, 10:38 PM   #4
Webster
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

well corotio has two brand new ones he added for the truk atol mod but i see nothing about how to open or make that file extentions


just trying to learn another area of modding if i can
  Reply With Quote
Old 03-30-09, 01:28 AM   #5
jimbob
Ensign
 
Join Date: May 2005
Location: Suomi Finland
Posts: 225
Downloads: 365
Uploads: 6
Right-click and try to open with other common programs.

Like Notepad, 7zip etc mediaplayers and whathaveyous..
I'd try even S3D, hehe...

If its a packed file most likely 7zip will be able to open it and extract it.

Or with the notepad you can read whats innit. Should give you something.

Maybe remove it and see if it affects the game somehow,
thought it is hard to tell without knowing what its spose to do...

Also, with Hex editor you could probably see the header which might tell you
more about the file.

Experiment!

That's all she wrote.

jimbob is offline   Reply With Quote
Old 03-30-09, 03:04 AM   #6
jimbob
Ensign
 
Join Date: May 2005
Location: Suomi Finland
Posts: 225
Downloads: 365
Uploads: 6
Default

Allrite, did a check and I got 2 files on the backup folders.
Both 1.4 and 1.5 version stock has these files.

\Terrain\Data\W158N022\W158N022.ZHF
\Terrain\Data\W158N022\W178N029.ZHF

I did check out them but they didn't have any meaningfull words innit.
Not with Hex editor atleast. 7zip failed also so I don't think they are packed
any normal way, if at all.

So, 1 folder up there's files like:

\Terrain\Data\TerrainData.BFD
\Terrain\Data\TerrainData.BFI

BFD search.

BFI search.

I guess so the 1gig file TerrainData.BFD holds the data.
and TerrainData.BFI might be some sorta index for it.

Check this out.

Im no real hacker so im just guessing here.

I suppose these are files (data library) for the terrain editor or somesuch
that Ubisoft used.

Question is, what app did they use?

Might be home brew apps.

jimbob is offline   Reply With Quote
Old 03-30-09, 04:02 AM   #7
Nisgeis
Ocean Warrior
 
Join Date: Jan 2008
Posts: 2,909
Downloads: 77
Uploads: 11
Default

The ZHF are the height files for the terrain. Ref did a really nice terrain editor which he released for everyone to use. I'll see if I can find it.

EDIT: OK, here it is, I *think* ZHF files are the terrain files, it's been a long time... http://www.subsim.com/radioroom/show...terrain+editor
Better be quick though, it's only up on FF and it's the 30th!
__________________
--------------------------------
This space left intentionally blank.

Last edited by Nisgeis; 03-30-09 at 04:19 AM.
Nisgeis is offline   Reply With Quote
Old 03-30-09, 04:17 AM   #8
jimbob
Ensign
 
Join Date: May 2005
Location: Suomi Finland
Posts: 225
Downloads: 365
Uploads: 6
Default

Allrite, mystery solved.

jimbob is offline   Reply With Quote
Old 03-30-09, 04:24 AM   #9
Nisgeis
Ocean Warrior
 
Join Date: Jan 2008
Posts: 2,909
Downloads: 77
Uploads: 11
Default

I'm not 100% sure, but I'm fairly sure.

The W158N022.ZHF is a location on the globe, ie W158 is West 158 degrees and N022 is North 22 degrees. There's a main data file which is over a gig and is the whole world and any patches you want to make to the world you put in that sub folder. Each square is a one degree by one degree patch and Ref's arrange the editor so you can extract a square into a depth file (black and white values representing height) and you can change it in a paint program and then import it back in. A very clever little program and very useful if you want to do that sort of thing. to Ref.
__________________
--------------------------------
This space left intentionally blank.
Nisgeis is offline   Reply With Quote
Old 03-30-09, 06:16 AM   #10
Anvart
Admiral
 
Join Date: Jan 2006
Location: Russia ®
Posts: 2,492
Downloads: 122
Uploads: 1
Default

TerEdit:
http://www.mediafire.com/?sharekey=5...e6ba49b5870170
__________________
Alex ®


Moses said: "Don't create yourself an idol"...
Anvart is offline   Reply With Quote
Old 03-30-09, 09:04 AM   #11
Webster
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

got it, now got to find time to play with it
  Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 09:42 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 1995- 2025 Subsim®
"Subsim" is a registered trademark, all rights reserved.