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

The Original Forum. Game archives, full of resources. How to open them? Get help here.
User avatar
ikskoks
mega-veteran
mega-veteran
Posts: 294
Joined: Thu Jul 26, 2012 5:06 pm
Location: Poland, Łódź
Has thanked: 365 times
Been thanked: 92 times
Contact:

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

Post by ikskoks » Tue Jan 29, 2013 5:38 pm

Image

Hello. I need help with unpacking and repacking archives in this game. Can someone look at this files and create quick bms script or tool/unpacker? Please :)
In "p" files there are content of the game (like textures)
In "h" files there are file names

I uploaded files for analysis to this post.

Image

Image
You do not have the required permissions to view the files attached to this post.

Ekey
M-M-M-Monster veteran
M-M-M-Monster veteran
Posts: 1638
Joined: Wed Mar 31, 2010 6:54 am
Has thanked: 62 times
Been thanked: 820 times

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

Post by Ekey » Tue Jan 29, 2013 5:52 pm


User avatar
ikskoks
mega-veteran
mega-veteran
Posts: 294
Joined: Thu Jul 26, 2012 5:06 pm
Location: Poland, Łódź
Has thanked: 365 times
Been thanked: 92 times
Contact:

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

Post by ikskoks » Tue Jan 29, 2013 5:58 pm

Thank you. I'll try this ^^

I searched with wrong method ;p

User avatar
Haoose
mega-veteran
mega-veteran
Posts: 277
Joined: Tue Mar 01, 2011 9:34 pm
Has thanked: 68 times
Been thanked: 181 times
Contact:

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

Post by Haoose » Tue Jan 29, 2013 6:03 pm

File format is similar to the format of game "Stacking".
Also like format of game "Costume Quest", with some modifications.
-= GP-team =-
Image

User avatar
delutto
veteran
Posts: 156
Joined: Sat Apr 16, 2011 5:20 am
Has thanked: 49 times
Been thanked: 12 times

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

Post by delutto » Tue Jan 29, 2013 11:57 pm

These files seem to have a small difference, none of the above methods worked.

User avatar
Haoose
mega-veteran
mega-veteran
Posts: 277
Joined: Tue Mar 01, 2011 9:34 pm
Has thanked: 68 times
Been thanked: 181 times
Contact:

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

Post by Haoose » Wed Jan 30, 2013 10:13 am

Double_Fine_Unpacker
Test Version
Image
Double_Fine_Unpacker.rar
You do not have the required permissions to view the files attached to this post.
-= GP-team =-
Image

User avatar
ikskoks
mega-veteran
mega-veteran
Posts: 294
Joined: Thu Jul 26, 2012 5:06 pm
Location: Poland, Łódź
Has thanked: 365 times
Been thanked: 92 times
Contact:

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

Post by ikskoks » Wed Jan 30, 2013 5:28 pm

I searched in the internet for the tools to this game and I found new version of Double Fine tool that can support files from The Cave. We can unpack/repack files or strings with text to translate. Enjoy :)

Example unpacking command: C:\Users\ikskoks>C:\Users\ikskoks\Desktop\DoubleFineTool\DoubleFineTool.exe -u "
D:\The Cave\Win\Packs\Loc_enUS.~h" C:\Users\ikskoks\Desktop\DoubleFineTool


DoubleFineTool.exe - name of the tool
-u - unpacking option
"D:\The Cave\Win\Packs\Loc_enUS.~h" - path to the "h" file
C:\Users\ikskoks\Desktop\DoubleFineTool - a folder where files will be unpacked

EDIT: Download also available here --> < link expired >
You do not have the required permissions to view the files attached to this post.
Last edited by ikskoks on Sat Dec 27, 2014 2:42 pm, edited 1 time in total.

merlinsvk
ultra-veteran
ultra-veteran
Posts: 411
Joined: Mon Oct 27, 2008 12:11 am
Location: Slovakia
Has thanked: 35 times
Been thanked: 117 times

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

Post by merlinsvk » Thu Jan 31, 2013 5:52 pm

Hi guys,
Has anybody tried to edit game fonts? I tried, but without success. Game will not show letters, only white squares (like missing characters). I have used Scaleform 3.x and 4.x for generating GFx, but result is the same.

UPDATE:
Got it! Problem was in one byte. After generating GFx file, one byte was "0x03" (maybe a Scaleform version??), but original GFx file has "0x02" there. So I changed it back to 0x02 and voilà, fonts are showing :)

Highlighted byte is THAT :errr: byte:

Image

jackyjy
n00b
Posts: 12
Joined: Mon Jul 23, 2012 10:16 am
Has thanked: 2 times

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

Post by jackyjy » Fri Feb 01, 2013 7:23 am

ikskoks wrote:I searched in the internet for the tools to this game and I found new version of Double Fine tool that can support files from The Cave. We can unpack/repack files or strings with text to translate. Enjoy :)

Example unpacking command: C:\Users\ikskoks>C:\Users\ikskoks\Desktop\DoubleFineTool\DoubleFineTool.exe -u "
D:\The Cave\Win\Packs\Loc_enUS.~h" C:\Users\ikskoks\Desktop\DoubleFineTool


DoubleFineTool.exe - name of the tool
-u - unpacking option
"D:\The Cave\Win\Packs\Loc_enUS.~h" - path to the "h" file
C:\Users\ikskoks\Desktop\DoubleFineTool - a folder where files will be unpacked

EDIT: Download also available here --> DOWNLOAD DOUBLE FINE TOOL
Sadly it still can't unpack XBOX360 version file.

Rjack
n00b
Posts: 19
Joined: Thu Jun 14, 2012 9:53 am
Has thanked: 3 times
Been thanked: 3 times

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

Post by Rjack » Fri Feb 01, 2013 7:50 am

merlinsvk wrote:Hi guys,
Has anybody tried to edit game fonts? I tried, but without success. Game will not show letters, only white squares (like missing characters). I have used Scaleform 3.x and 4.x for generating GFx, but result is the same.

UPDATE:
Got it! Problem was in one byte. After generating GFx file, one byte was "0x03" (maybe a Scaleform version??), but original GFx file has "0x02" there. So I changed it back to 0x02 and voilà, fonts are showing :)

Highlighted byte is THAT :errr: byte:

Image
Hello, merlinsvk.
Could you tell me how to use the Scaleform 3.x or 4.x to generate the GFx?
I want to translate the game to my own language, already know how to unpack/pack the *.P files.
Could you help me, please?

michalss
Moderator
Posts: 941
Joined: Sun Mar 27, 2011 8:42 pm
Has thanked: 10 times
Been thanked: 131 times

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

Post by michalss » Fri Feb 01, 2013 11:30 am

yeah x360 support would be great :) PC is zlib but X360 is lzx
Quick BMS Editor GUI - simple easy to use
Goto : viewtopic.php?uid=34229&f=29&t=6797&start=0

Downloads from DropBox : https://dl.dropboxusercontent.com/u/

Ekey
M-M-M-Monster veteran
M-M-M-Monster veteran
Posts: 1638
Joined: Wed Mar 31, 2010 6:54 am
Has thanked: 62 times
Been thanked: 820 times

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

Post by Ekey » Fri Feb 01, 2013 1:46 pm

Rjack wrote: Hello, merlinsvk.
Could you tell me how to use the Scaleform 3.x or 4.x to generate the GFx?
I want to translate the game to my own language, already know how to unpack/pack the *.P files.
Could you help me, please?
Scaleform Gfx it's default Flash SWF with changed header CWS to GFX :)

merlinsvk
ultra-veteran
ultra-veteran
Posts: 411
Joined: Mon Oct 27, 2008 12:11 am
Location: Slovakia
Has thanked: 35 times
Been thanked: 117 times

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

Post by merlinsvk » Fri Feb 01, 2013 2:25 pm

Rjack wrote: Could you tell me how to use the Scaleform 3.x or 4.x to generate the GFx?
Scaleform SDK can be used from Adobe Flash, while you editing fonts in flash file, but it's not necessary. I'm using it from command line like:

Code: Select all

gfxexport englishfonts.swf
Then I change that one byte and pack new .gfx to .~p archive.

That's all.

User avatar
Haoose
mega-veteran
mega-veteran
Posts: 277
Joined: Tue Mar 01, 2011 9:34 pm
Has thanked: 68 times
Been thanked: 181 times
Contact:

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

Post by Haoose » Fri Feb 01, 2013 4:02 pm

merlinsvk
Does not work the way. White squares instead of letters.
How to change font in SWF-file in Adobe Flash?
-= GP-team =-
Image

Rjack
n00b
Posts: 19
Joined: Thu Jun 14, 2012 9:53 am
Has thanked: 3 times
Been thanked: 3 times

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

Post by Rjack » Fri Feb 01, 2013 4:12 pm

merlinsvk wrote:
Rjack wrote: Could you tell me how to use the Scaleform 3.x or 4.x to generate the GFx?
Scaleform SDK can be used from Adobe Flash, while you editing fonts in flash file, but it's not necessary. I'm using it from command line like:

Code: Select all

gfxexport englishfonts.swf
Then I change that one byte and pack new .gfx to .~p archive.

That's all.
Thanks for your replying. But I have one more question.
What should I do if I want to use another font? Should I change the font name?
Sorry, I'm not good at Adobe Flash. :oops:

Post Reply