Jump to content

(PS2) GvG: Rengou VS ZAFT II PLUS .pzz format


Go to solution Solved by BloodRaynare,

Recommended Posts

Posted

Hi! I would like some help regarding .pzz format from the game Gundam vs Gundam Rengou VS ZAFT II PLUS
I know the models and game is old but they are retro and still look good.

Thanks

AFS_DATA.7z

  • Solution
Posted

Here's BMS script to extracting your files:

## Kidou Senshi Gundam Seed Destiny: Rengou vs. Z.A.F.T. II Plus (PS2) - PZZ extraction script by BloodRaynare
## For use with QuickBMS

math ENTRY_OFFSET = 0x800

comtype pzz

get FILES long
for i = 0 < FILES
	get ENTRY long
	math ENTRY_SIZE = ENTRY
	math ENTRY_SIZE & 0xffffff
	math ENTRY_SIZE * 0x800
	math ENTRY_FLAG = ENTRY
	math ENTRY_FLAG >> 24
	string NAME p "%03d.bin" i
	if ENTRY_FLAG == 0x40
		savepos TMP
		goto ENTRY_OFFSET
		get SIZE long
		get ZSIZE long
		savepos OFFSET
		clog NAME OFFSET ZSIZE SIZE
		goto TMP
	else
		log NAME ENTRY_OFFSET ENTRY_SIZE
	endif
	math ENTRY_OFFSET + ENTRY_SIZE
next i

The model file are 000.bin while 001.bin contains a TM2 texture file.
However, that's only as far as I could help.

  • Like 1
  • Thanks 1
Posted
38 minutes ago, BloodRaynare said:

Here's BMS script to extracting your files:

## Kidou Senshi Gundam Seed Destiny: Rengou vs. Z.A.F.T. II Plus (PS2) - PZZ extraction script by BloodRaynare
## For use with QuickBMS

math ENTRY_OFFSET = 0x800

comtype pzz

get FILES long
for i = 0 < FILES
	get ENTRY long
	math ENTRY_SIZE = ENTRY
	math ENTRY_SIZE & 0xffffff
	math ENTRY_SIZE * 0x800
	math ENTRY_FLAG = ENTRY
	math ENTRY_FLAG >> 24
	string NAME p "%03d.bin" i
	if ENTRY_FLAG == 0x40
		savepos TMP
		goto ENTRY_OFFSET
		get SIZE long
		get ZSIZE long
		savepos OFFSET
		clog NAME OFFSET ZSIZE SIZE
		goto TMP
	else
		log NAME ENTRY_OFFSET ENTRY_SIZE
	endif
	math ENTRY_OFFSET + ENTRY_SIZE
next i

The model file are 000.bin while 001.bin contains a TM2 texture file.
However, that's only as far as I could help.

Thank you so much!

That's a big help already and I can take it from there

Posted (edited)
Quote

while 001.bin contains a TM2 texture file.

😎

Quote

That's a big help already and I can take it from there

Eraea: I'm curious what tool(s) you'll use for the rest? For PS2 data, I've found Console Texture Explorer useful, but in this case for pl00-001.bin's texture (8bpp 512x512 pix@900h), I can't seem to get it to display the palette (r5g5b5x1 x 256 @0x40900 with 8x2 swizzle), despite providing the correct base offset as I did in my tiny test app.

image.png.7d04b3d4453f48eb41629723d8f27a8c.png

Edited by piken
Posted
1 hour ago, piken said:

😎

Eraea: I'm curious what tool(s) you'll use for the rest? For PS2 data, I've found Console Texture Explorer useful, but in this case for pl00-001.bin's texture (8bpp 512x512 pix@900h), I can't seem to get it to display the palette (r5g5b5x1 x 256 @0x40900 with 8x2 swizzle), despite providing the correct base offset as I did in my tiny test app.

image.png.7d04b3d4453f48eb41629723d8f27a8c.png

I think the problem is Console Texture Explorer doesn't support 2-bytes (16-bit) CLUT, only 4-bytes (32-bit) are supported.

  • Like 1
  • 3 months later...
Posted
On 3/10/2024 at 1:26 PM, BloodRaynare said:

Here's BMS script to extracting your files:

## Kidou Senshi Gundam Seed Destiny: Rengou vs. Z.A.F.T. II Plus (PS2) - PZZ extraction script by BloodRaynare
## For use with QuickBMS

math ENTRY_OFFSET = 0x800

comtype pzz

get FILES long
for i = 0 < FILES
	get ENTRY long
	math ENTRY_SIZE = ENTRY
	math ENTRY_SIZE & 0xffffff
	math ENTRY_SIZE * 0x800
	math ENTRY_FLAG = ENTRY
	math ENTRY_FLAG >> 24
	string NAME p "%03d.bin" i
	if ENTRY_FLAG == 0x40
		savepos TMP
		goto ENTRY_OFFSET
		get SIZE long
		get ZSIZE long
		savepos OFFSET
		clog NAME OFFSET ZSIZE SIZE
		goto TMP
	else
		log NAME ENTRY_OFFSET ENTRY_SIZE
	endif
	math ENTRY_OFFSET + ENTRY_SIZE
next i

The model file are 000.bin while 001.bin contains a TM2 texture file.
However, that's only as far as I could help.

Thanks for making a very nice script.
I was able to use it with gundam vs gundam and gundam next.
Is there any way to compress tm2 files into pzz format?

  • 7 months later...
Posted

Hi guys, it's been a while

I've finally been able to write an initial code to parse the 000.bin files, Also the extension probably is .PMF as I checked other games from the same series (Mainly Gundam Vs Zeta Gundam for the PS2) and the .PMF files were exactly the same type as the extracted 000.bin.

Anyways here's a Blender 3.3-3.6 or 4.1+ addon to load them.
in regards to TIM2 I was able to extract them via the Noesis TexFinder tool but I am currently looking into the tim2 extension and possibly modify it to support the game's tim2 structure.

from Alliance Vs Zaft 2
image.thumb.png.065118877427a7719b21149f2ec966eb.png

From Gundam Vs Zeta Gundam
image.thumb.png.d0ea51892654bbe6819871d80b251b87.png

PZZImporter.zip

  • Like 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...