All posts by cultofbyron (3)

topic: GHF Heightfield Data (Analysis of ghf file)  in the forum: Archive
cultofbyron #1
Member since Jul 2013 · 3 posts · Location: Ilkley, West Yorkshire
Group memberships: Members
Show profile · Link to this post
So I've managed to make some headway with these heightmap files so that I am now able to convert most of the .ghf files exported from levels.bnk into usable greyscale images*.

Brightwood (Spring):
[Image: https://i.ibb.co/KLTQtn0/Brightwood.jpg]

This was achieved by renaming the uncompressed .ghf file to a .raw and opening in Photoshop with the previously mentioned settings.

Selecting the Channels tab revealed 3 channels for RGB, in this case the greyscale channel was G, and there followed several other layers which seem to contain texture information and paths, which will probably be useful when creating world and local maps.

I then deleted every channel but the greyscale.  However, this still needed some work.
It seemed that at the midpoint (128)  maybe due to the way the file is structured/endianness(?)/decompression, with high and low points rendered as 0-255 separately:
[Image: https://i.ibb.co/g7wtYQY/brightwoodglitch.jpg]

So all I did here was select the darker portions first, paste to a new layer and lighten them, then darken the lighter portions.  Then I flipped vertically to get the first image in this post.

As you can see, there is still a little glitching at the bottom right but as this is not a traversable part of the Brightwood region, I can fix this either by smoothing in Photoshop before exporting the final .bmp or .raw file, or by smoothing the terrain in the Construction Set/Creation Kit.

Right, on to Fable 3 and the rest of the Fable 2 .mdls I need!

  • - Not all of the .ghf files exported from levels.bnk were usable so I went into Hex Workshop and just exported them manually, which has so far worked fine with Westcliff and Wraithmarsh.
topic: GHF Heightfield Data (Analysis of ghf file)  in the forum: Archive
cultofbyron #2
Member since Jul 2013 · 3 posts · Location: Ilkley, West Yorkshire
Group memberships: Members
Show profile · Link to this post
Subject: GHF Heightfield Data
So, after 11 years of tinkering and bimbling around and pestering coders who had long since moved on from this, I've managed to get something sensible out of the ghf heightfield files.

Focusing on the Brightwood ghf (ch3heightfieldabandfarm_id_926492ed.ghf) I could not see any discernible pattern in the data.  So on a whim I decided to open it in 7zip and voila: export360/data/worlds/albion/brightwood/heightfields/ch3heightfieldabandfarm_id_926492ed.ghf about 8Mb.

First 14 bytes of nowt, then two integers of 769 (suspiciously like image dimensions) followed by a repeating pattern of 14 bytes throughout the file neatly organised into two columns.

*Cracks knuckles and opens Photoshop, 5 minutes later...:*

I renamed the extracted ghf file as a raw and with the following settings:

Dimensions
Width: 769
Height: 769

Channels
Count: 14
Interleaved: ✓
Depth: 8-bits

Header Size: 20 bytes

[Image: https://i.ibb.co/Pm33Twk/Brightwood-Heightmap.jpg]

 :cool:

Ok, so not perfect, but usable and a massive step in the right direction, another 11 years and it'll be about there!

I can probably work with this for what I need to do, and I will get onto the Fable 3 ones once I've done these.
topic: Music.bnk (Having trouble extracting and playing music files.)  in the forum: Archive
cultofbyron #3
Member since Jul 2013 · 3 posts · Location: Ilkley, West Yorkshire
Group memberships: Members
Show profile · Link to this post
Subject: Music.bnk
Hi there,

I've just registered here after developing an interest in the Fable series and its potential for modding.  I am at the moment attempting to extract the music.bnk file in order to listen to all the wav files therein, however no media player seems to be able to read them, despite apparently all of them being wav files.  I have read elsewhere that Xbox game audio is usually in the .xma format, but that doesn't seem to be the case here.

I'm wondering if this is an issue with the Hunter/Silver BNKExplorer program that has been posted on this site? Or is there a step I am missing in order to correctly decompress the bnk file?  Perhaps there is a codec I need to obtain so that I can play them/convert them to something that IS playable?

Many thanks for any help that anyone can provide ;)

CultofByron
Close Smaller – Larger + Reply to this post:
Special characters:
Special queries
Go to forum
Not logged in. · Lost password · Registration disabled
This board is powered by the Unclassified NewsBoard software, 20150713-dev, © 2003-2015 by Yves Goergen
Page created in 343.9 ms (71.5 ms) · 38 database queries in 312.7 ms
Current time: 2024-04-24, 17:22:08 (UTC -07:00)