Peria Chronicles .tarc files

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
Velosity
Posts: 10
Joined: Mon Jan 07, 2019 10:28 am

Peria Chronicles .tarc files

Post by Velosity »

Samples: https://mega.nz/#!dsMDiSzC!lrpG95ivr6ui ... UsX_-ZlhDI

Coding Language is Python afaik. Would be great if anyone could help unpacking them.
tachiorz
Posts: 2
Joined: Sun Aug 28, 2016 6:44 pm

Re: Peria Chronicles .tarc files

Post by tachiorz »

https://gist.github.com/Tachiorz/2dec93 ... b905095103
I'm guessing archive is read recursively from the end of list to the beginning. For example archives in quest.tpk have different count of elements, but last one always is an array object with length of 45 elements that is populated with values, arrays and dicts before it.
I would really appreciate help with type 7 element that is object description I guess.
tachiorz
Posts: 2
Joined: Sun Aug 28, 2016 6:44 pm

Re: Peria Chronicles .tarc files

Post by tachiorz »

byte type; // 7
short index_of_classname;
int count_or_size; // depends on classname?
// rest is if Dict - count of pairs of uints that are indexes to key/values
// if Array - count of uints that are indexes to values
// if Canvas_Static - size bytes that is blob with image
// etc
if count_or_size == -1 { // this case I still don't get
byte unknown1
byte unknown2
int count_or_size
}
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Peria Chronicles .tarc files

Post by aluigi »

http://aluigi.org/bms/thing_archive_tarc.bms

But I think that some files may be compressed, for example there are PNG files but they have some bytes on front and aren't correctly visualized.
Give me your feedback.