Important information: this site is currently scheduled to go offline indefinitely by end of the year.

[PC] The Cave - *.~h and *.~p archives

The Original Forum. Game archives, full of resources. How to open them? Get help here.
ivanovjohn
ultra-n00b
Posts: 3
Joined: Thu Sep 11, 2014 10:41 am

Re: [PC] The Cave - *.~h and *.~p archives

Post by ivanovjohn »

merlinsvk wrote:Try

Code: Select all

DoubleFineTool.exe –u "Loc_enUS.~h" "11"
But it's weird, because it should work anyway.

And than you can make a batch file (.bat or .cmd) with this command and see if there is any difference.
As the team in cmd correctly has to look
write as at you looks
sigmagamma
ultra-n00b
Posts: 3
Joined: Fri Feb 04, 2022 5:53 pm

Re: [PC] The Cave - *.~h and *.~p archives

Post by sigmagamma »

Hi, I'm looking for some information on translating Stacking, and came upon this post. There were some details here suggesting people may be able to help (assuming anyone from the time of the original thread is still here) - I'm seeing some of the same issues and using some of the same tools.

For one I have no idea how to convert a font to the GFX format. I got as far as creating an SWF file with the font using Adobe Animate, and then using gfxexport to convert it. A file gets created alright, but it seems to be somewhat different than the original game file. I saw the comment about changing a byte but I'm not sure which byte (the image is gone by now) and judging by the differences compared to the original file I'm not sure that's the issue - yet.
https://drive.google.com/file/d/1qgTDaO ... sp=sharing
https://drive.google.com/file/d/1EBH7vC ... sp=sharing

The game itself shows squares for the Hebrew characters as well as the English characters - Since the font contains both the best case scenario is that I didn't create the gfx file correctly. So what's the correct way to go about creating the gfx file?

Something else that may be an issue has to do with the text itself.
I'm following the (google translate of) the instructions here:
https://sites.google.com/site/jpmodfile ... e/stacking

Texttool seems to be doing it's job, but after repacking I'm observing weird signs in the packed file using Double Fine Explorer. I can't be sure at this point that's actually an issue with the game due to the font issue, but that's usually a a sign of something going wrong with Hebrew letters.
It also occurs to me it may be a problem with Double Fine Explorer and not with the game itself.
https://drive.google.com/file/d/158ThGQ ... sp=sharing

Any help would be appreciated :)

- Sigmagamma
User avatar
ikskoks
Moderator
Posts: 1666
Joined: Thu Jul 26, 2012 5:06 pm
Location: Poland, Łódź
Has thanked: 647 times
Been thanked: 431 times
Contact:

Re: [PC] The Cave - *.~h and *.~p archives

Post by ikskoks »

So what's the correct way to go about creating the gfx file?
There are some tools for creating and editing GFX files like JPEXS Free Flash Decompiler.
Maybe you can try it first. But I'm not sure if it's a correct way in this case.

Also for viewing end editing binary files you can use some hex editor like Hex Workshop.
It will allow you to change this version byte to the one you need.
If GFX is similar to SWF, then version byte should be the one at offset 0x03, right after signature.


As for text issue, you can double check your encoding. I'm not sure if Stacking uses UTF-8 or something else.


Edit: Also check this article
http://wiki.xentax.com/index.php/Macrom ... leform_GFX
sigmagamma
ultra-n00b
Posts: 3
Joined: Fri Feb 04, 2022 5:53 pm

Re: [PC] The Cave - *.~h and *.~p archives

Post by sigmagamma »

ikskoks wrote: Sat Feb 05, 2022 12:27 am There are some tools for creating and editing GFX files like JPEXS Free Flash Decompiler.
Maybe you can try it first. But I'm not sure if it's a correct way in this case.
Thanks ikskoks! it was.
Post Reply