One Piece Pirate Warriors 3 .gt1

Textures, recreate headers, conversions, algorithms and parsing of image files
troler11
Posts: 65
Joined: Sat Aug 29, 2015 1:13 am

One Piece Pirate Warriors 3 .gt1

Post by troler11 »

gt1 files texture please.GT1G0600
transform .dss please
Filecutter http://www.4shared.com/rar/gMeVB5qace/Desktop.html
telespentry
Posts: 1
Joined: Tue May 17, 2016 8:19 pm

Re: One Piece Pirate Warriors 3 .gt1

Post by telespentry »

Also looking to open this format. Hyrule Warriors Legends uses the same format. I can provide samples if needed.
Doctor Loboto
Posts: 376
Joined: Sun May 31, 2015 2:23 am

Re: One Piece Pirate Warriors 3 .gt1

Post by Doctor Loboto »

Well I have samples from Hyrule Warriors Legends.

https://www.dropbox.com/s/2o9yu4t8jeow1ox/GT1.zip?dl=0

I really need these figured out.
sigroon365
Posts: 330
Joined: Fri Nov 21, 2014 4:03 am

Re: One Piece Pirate Warriors 3 .gt1

Post by sigroon365 »

Ues my bms script.

Code: Select all

idstring GT1G0600
set MEMORY_FILE binary "\x44\x44\x53\x20\x7C\x00\x00\x00\x07\x10\x08\x00\x80\x00\x00\x00\x80\x00\x00\x00\x00\x20\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x20\x00\x00\x00\x04\x00\x00\x00\x44\x58\x54\x31\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x10\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"

get dataSize long
get dataOffset long
get texCount long
goto dataOffset
savepos OFFTABLE

set NUM 0
for i = 0 < texCount
math NUM + 1
get NAME BASENAME
string NAME + "_"
string NAME += NUM
string NAME + ".dds"
goto OFFTABLE

set JUMP 0
get JUMP long

savepos OFFTABLE
math JUMP + dataOffset
goto JUMP
get ukn4 byte   #0x10
get texC byte   #0x06
get texD byte   #0x99
get NULL byte

set set1 texD   #0x99
set set2 texD   #0x99

math set1 & 0xF0   #0x99 to 0x90 = 144
print "%set1% 1st set1"
math set1 / 16      #144 / 16 = 9
print "%set1% 2nd set1"
math set2 & 0x0F   #0x99 to 0x09 = 9

get unk5 longlong
get unk6 longlong
savepos OFFSET

set texH 2
set texW 2
Math texW p set1   #2^9 = 512
Math texH p set2   #2^9 = 512

putVarChr MEMORY_FILE 0x0C texH short
putVarChr MEMORY_FILE 0x10 texW short

if texC == 0x06
print "{0x06} DXT1 Found!"
set bbp 4
math MAGIC = texW
math MAGIC * texH
putVarChr MEMORY_FILE 0x14 MAGIC long
putVarChr MEMORY_FILE 0x50 0x04 long
putVarChr MEMORY_FILE 0x54 0x44 byte
putVarChr MEMORY_FILE 0x55 0x58 byte
putVarChr MEMORY_FILE 0x56 0x54 byte
putVarChr MEMORY_FILE 0x57 0x31 byte
putVarChr MEMORY_FILE 0x58 0x00 long
putVarChr MEMORY_FILE 0x5E 0x00 Short
putVarChr MEMORY_FILE 0x61 0x00 Short
putVarChr MEMORY_FILE 0x64 0x00 Short
putVarChr MEMORY_FILE 0x6B 0x00 Short
endif

if texC == 0x08
print "{0x08} DXT5 Found!"
set bbp 8
math MAGIC = texW
math MAGIC * texH
putVarChr MEMORY_FILE 0x14 MAGIC long
putVarChr MEMORY_FILE 0x50 0x04 long
putVarChr MEMORY_FILE 0x54 0x44 byte
putVarChr MEMORY_FILE 0x55 0x58 byte
putVarChr MEMORY_FILE 0x56 0x54 byte
putVarChr MEMORY_FILE 0x57 0x35 byte
putVarChr MEMORY_FILE 0x58 0x00 long
putVarChr MEMORY_FILE 0x5E 0x00 Short
putVarChr MEMORY_FILE 0x61 0x00 Short
putVarChr MEMORY_FILE 0x64 0x00 Short
putVarChr MEMORY_FILE 0x6B 0x00 Short
endif

set SIZE texH      #0x200 = 512
math SIZE * texW   #SIZE = 0x200 * 0x200 = 0x40000
math SIZE / 8
math SIZE * bbp

log NAME 0 0x80 MEMORY_FILE
append
log NAME OFFSET SIZE
append
next i
Doctor Loboto
Posts: 376
Joined: Sun May 31, 2015 2:23 am

Re: One Piece Pirate Warriors 3 .gt1

Post by Doctor Loboto »

Doesn't seem to work. All output files are just 1kb unreadable DDS.
TheUkrainianBard
Posts: 121
Joined: Sun May 01, 2016 10:06 pm

Re: One Piece Pirate Warriors 3 .gt1

Post by TheUkrainianBard »

I haven't seen such texture data, so I can't convert to DDS for ex., just extract.
Any more samples?
Doctor Loboto
Posts: 376
Joined: Sun May 31, 2015 2:23 am

Re: One Piece Pirate Warriors 3 .gt1

Post by Doctor Loboto »

https://www.dropbox.com/s/2o9yu4t8jeow1ox/GT1.zip?dl=0

There's all the GT1's, take your pick, haha...
sigroon365
Posts: 330
Joined: Fri Nov 21, 2014 4:03 am

Re: One Piece Pirate Warriors 3 .gt1

Post by sigroon365 »

Doctor Loboto wrote:https://www.dropbox.com/s/2o9yu4t8jeow1ox/GT1.zip?dl=0

There's all the GT1's, take your pick, haha...


Your GT1 file is not extracted correctly from Linkdata.
My script works perfectly for PC version of Pirate Warriors 3
Doctor Loboto
Posts: 376
Joined: Sun May 31, 2015 2:23 am

Re: One Piece Pirate Warriors 3 .gt1

Post by Doctor Loboto »

Then I apparently need a new script to extract Linkdata too.
sigroon365
Posts: 330
Joined: Fri Nov 21, 2014 4:03 am

Re: One Piece Pirate Warriors 3 .gt1

Post by sigroon365 »

Doctor Loboto wrote:Then I apparently need a new script to extract Linkdata too.


Use this tool which is made from Russian forum. It also convert g1t to dds however, it does not extract whole g1t. This is because there are several different type of g1t. Some block data contains g1t files, so if you also want to handle that hidden image, you have to unpack block data into g1t files and then get that kind of image by using my bms script.
Last edited by sigroon365 on Tue Sep 06, 2016 7:26 am, edited 1 time in total.
Doctor Loboto
Posts: 376
Joined: Sun May 31, 2015 2:23 am

Re: One Piece Pirate Warriors 3 .gt1

Post by Doctor Loboto »

And how does one operate this tool? Seems no matter what I do it just errors and does nothing.