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.
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:

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

Post by ikskoks »

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: 1823
Joined: Wed Mar 31, 2010 6:54 am
Has thanked: 92 times
Been thanked: 1058 times

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

Post by Ekey »

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 »

Thank you. I'll try this ^^

I searched with wrong method ;p
User avatar
Haoose
mega-veteran
mega-veteran
Posts: 280
Joined: Tue Mar 01, 2011 9:34 pm
Has thanked: 70 times
Been thanked: 193 times
Contact:

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

Post by Haoose »

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: 153
Joined: Sat Apr 16, 2011 5:20 am
Has thanked: 49 times
Been thanked: 14 times

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

Post by delutto »

These files seem to have a small difference, none of the above methods worked.
User avatar
Haoose
mega-veteran
mega-veteran
Posts: 280
Joined: Tue Mar 01, 2011 9:34 pm
Has thanked: 70 times
Been thanked: 193 times
Contact:

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

Post by Haoose »

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
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 »

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: 121 times

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

Post by merlinsvk »

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 »

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 »

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: 954
Joined: Sun Mar 27, 2011 8:42 pm
Has thanked: 10 times
Been thanked: 161 times

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

Post by michalss »

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: 1823
Joined: Wed Mar 31, 2010 6:54 am
Has thanked: 92 times
Been thanked: 1058 times

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

Post by Ekey »

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: 121 times

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

Post by merlinsvk »

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: 280
Joined: Tue Mar 01, 2011 9:34 pm
Has thanked: 70 times
Been thanked: 193 times
Contact:

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

Post by Haoose »

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 »

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