Page 1 of 1

Haunting Ground .PCK format

Posted: Wed May 01, 2013 6:04 pm
by aagems
Hi,I successful to open DATA.CVM from this game by cutting the file header and convert it to iso,so it readable via virtual drive. i want to extract fiona model or (if can) other character too. The game model seems use .PCK format and the texture in .TEX and the stage use .PAC format. I try to open .TEX file in noesis but no luck. Is there anyone can help me,so the PCK file readable and i can extract the texture too. Thanks

BTW,i attach some sample (is it violate against forum rules or not??)

Re: Haunting Ground .PCK format

Posted: Thu May 02, 2013 3:54 am
by aagems
Looking the file again in hex editor,still got no clue.I'm totally lost here.I heard in other forum,someone successfully extract it,but sadly his trick not shareable :(

Re: Haunting Ground .PCK format

Posted: Sat May 04, 2013 4:35 pm
by aagems
Anyone?please help..

Re: Haunting Ground .PCK format

Posted: Mon May 20, 2013 7:56 pm
by FurryFan
aagems wrote:Anyone?please help..
Here is a quickbms script to convert the texture(s) inside a .TEX file:
http://ps23dformat.wikispaces.com/file/ ... undTEX.bms
The script must be run using the Microsoft Windows Command prompt (it will will not work by clicking quickbms.exe), you can get quickbms here:
http://aluigi.altervista.org/quickbms.htm
Use the script as follows and note the w in -w must be lowercase:
C:\quickbms\quickbms.exe -w C:\quickbms\HauntingGroundTEX.bms C:\HauntingGround\FIO_000.TEX C:\HauntingGround
The script will then output one txd file for each of the textures inside the .TEX file.
Use this program to then view and convert the textures (but turn the filter off, and the alpha maps off, and use the "several textures" option when exporting even though there is only one texture in each txd):
http://www.thegtaplace.com/downloads/f4 ... txd-viewer

As for the format of the TEX files:
The first 4ByteInteger is the number of textures in the TEX file
Then every texture's header which is 0x10 bytes in length is present.
The first 4Bytes in the header are unknown
The next 2 are the X Length
The next 2 are the Y Width
The next 4 are unknown
The next 4 is the position of the data relative to the start of the header.
Format of the data:
The first part of the data are the bitmap pixels So if X=4 and Y=4 there would be decimal 16 bytes in this section.
Then after all the pixels, is the 256 color palate:
1Byte Red, 1Byte Green, 1ByteBlue, 1Byte something (usually FF, or 80 I forgot the name for it).
However the palate uses 8x2 tiles, which my quickbms scripts compenstates for.

Re: Haunting Ground .PCK format

Posted: Mon May 20, 2013 9:03 pm
by aagems
Thanks for your response furryfan, but why its not work? i use command prompt as you said but quickbms found nothing. Or maybe im doing wrong step? Here's a screenshot


Image

Re: Haunting Ground .PCK format

Posted: Tue May 21, 2013 12:52 pm
by FurryFan
aagems wrote:Thanks for your response furryfan, but why its not work? i use command prompt as you said but quickbms found nothing. Or maybe im doing wrong step? Here's a screenshot


Image
You used D: for your output file. Change it to something else like
C:\sample

Re: Haunting Ground .PCK format

Posted: Mon Oct 07, 2013 12:01 am
by kasake
FurryFan wrote:
aagems wrote:Thanks for your response furryfan, but why its not work? i use command prompt as you said but quickbms found nothing. Or maybe im doing wrong step? Here's a screenshot


Image
You used D: for your output file. Change it to something else like
C:\sample
This isn't working for me either. I get the exact same message as aagems with 0 outputted files, even after changing the output folder to C:\

Re: Haunting Ground .PCK format

Posted: Mon Oct 07, 2013 12:47 am
by FurryFan
kasake wrote:
FurryFan wrote:
aagems wrote:Thanks for your response furryfan, but why its not work? i use command prompt as you said but quickbms found nothing. Or maybe im doing wrong step? Here's a screenshot


Image
You used D: for your output file. Change it to something else like
C:\sample
This isn't working for me either. I get the exact same message as aagems with 0 outputted files, even after changing the output folder to C:\
First thing, you NEED to use the version of quickbms that is FOUND ON THIS PAGE, AND THIS PAGE ONLY:
http://aluigi.altervista.org/quickbms.htm
If you downloaded quickbms from a DIFFERENT website, IT WILL NOT WORK. Do you understand that I have had more then 6 people use the wrong version. USE THE LINK ABOVE. If that link is blocked on your computer tell me, I am not a mind reader

Second thing:
aagems sent me a PM saying that he finally got it to work.

Third thing, if you want me to help you,
YOU MUST SEND ME A SCREENSHOT OF
1. What you are typing in.
2. You folder setup.

If you are serious about getting the script to work, DO WHAT I SAY.

Re: Haunting Ground .PCK format

Posted: Mon Oct 07, 2013 1:12 am
by kasake
FurryFan wrote:First thing, you NEED to use the version of quickbms that is FOUND ON THIS PAGE, AND THIS PAGE ONLY:
http://aluigi.altervista.org/quickbms.htm
If you downloaded quickbms from a DIFFERENT website, IT WILL NOT WORK. Do you understand that I have had more then 6 people use the wrong version. USE THE LINK ABOVE. If that link is blocked on your computer tell me, I am not a mind reader

Second thing:
aagems sent me a PM saying that he finally got it to work.

Third thing, if you want me to help you,
YOU MUST SEND ME A SCREENSHOT OF
1. What you are typing in.
2. You folder setup.

If you are serious about getting the script to work, DO WHAT I SAY.
Sorry about that. I got my QuickBMS from that website, and I downloaded the .bms script from the link that you posted.

This is what I input in command prompt:
C:\quickbms\quickbms.exe -w C:\quickbms\HauntingGroundTEX.bms C:\hg\FIO_000.TEX C:\hg

Here is a pic of what I get (the Yen signs are "\", I'm on a Japanese computer):
Image

Re: Haunting Ground .PCK format

Posted: Mon Oct 07, 2013 2:40 am
by FurryFan
It may be the Japanese Characters (I had this problem with Chinese characters), or it may be the same problem the other user had (his PM did not mention the exact reason), so you should also try contacting him/her. I would also recommend the following:
Have someone that you know very well that has an English version of Windows test out the script, and ask them what they did.
See me PM that I am sending you.

Re: Haunting Ground .PCK format

Posted: Sat Jan 06, 2018 9:13 am
by roocker666
FurryFan wrote:
aagems wrote:Anyone?please help..
Here is a quickbms script to convert the texture(s) inside a .TEX file:
http://ps23dformat.wikispaces.com/file/ ... undTEX.bms
The script must be run using the Microsoft Windows Command prompt (it will will not work by clicking quickbms.exe), you can get quickbms here:
http://aluigi.altervista.org/quickbms.htm
Use the script as follows and note the w in -w must be lowercase:
C:\quickbms\quickbms.exe -w C:\quickbms\HauntingGroundTEX.bms C:\HauntingGround\FIO_000.TEX C:\HauntingGround
The script will then output one txd file for each of the textures inside the .TEX file.
Use this program to then view and convert the textures (but turn the filter off, and the alpha maps off, and use the "several textures" option when exporting even though there is only one texture in each txd):
http://www.thegtaplace.com/downloads/f4 ... txd-viewer

As for the format of the TEX files:
The first 4ByteInteger is the number of textures in the TEX file
Then every texture's header which is 0x10 bytes in length is present.
The first 4Bytes in the header are unknown
The next 2 are the X Length
The next 2 are the Y Width
The next 4 are unknown
The next 4 is the position of the data relative to the start of the header.
Format of the data:
The first part of the data are the bitmap pixels So if X=4 and Y=4 there would be decimal 16 bytes in this section.
Then after all the pixels, is the 256 color palate:
1Byte Red, 1Byte Green, 1ByteBlue, 1Byte something (usually FF, or 80 I forgot the name for it).
However the palate uses 8x2 tiles, which my quickbms scripts compenstates for.

Hello, I did that and it WORKS!!, thank you. BTW, I want to make a mod in one texture, Can I edit texture,1.0.TXD and then repack that in FIO_000.TEX??

Thanks

Re: Haunting Ground .PCK format

Posted: Fri Jan 12, 2018 9:54 pm
by shadowmoy
5 years later ....