Page 1 of 1

Peria Chronicles

Posted: Wed May 08, 2019 12:09 am
by Mrtest
Need help to extracting all meshes. 3D Model Researcher working fine, but need batch script.
Sample: https://yadi.sk/d/o7MxUJnr0xKaPQ

Re: Peria Chronicles

Posted: Wed May 08, 2019 11:52 am
by akderebur
I will take a look when I get back tonight. Currently working on another project, but I can do this after that.

In the meantime can you post some model researcher screenshots, if you have extracted anything? At least it would save some time on research.

Re: Peria Chronicles

Posted: Wed May 08, 2019 11:15 pm
by chrrox

Code: Select all

#Peria Chronicles quickbms script
#http://aluigi.altervista.org/quickbms.htm
#by chrrox
get TPK basename
string TPK R ".tpk" ""
set TBL TPK
set REP TPK
string TPK + ".tpk"
string TBL + ".tpk.table"
open FDSE TBL
open FDSE TPK 1 
get FILES long
get NULL long
for i = 0 < files
get NSIZE long
getdstring NULL 6
math NSIZE - 1
getdstring NAME NSIZE
string NAME R "cache" REP
string NAME + ".TARC"
get OFFSET long
get SIZE long
log NAME OFFSET SIZE 1
next i

Re: Peria Chronicles

Posted: Thu May 09, 2019 12:42 am
by Mrtest
akderebur wrote:
Wed May 08, 2019 11:52 am
I will take a look when I get back tonight. Currently working on another project, but I can do this after that.

In the meantime can you post some model researcher screenshots, if you have extracted anything? At least it would save some time on research.
https://imgur.com/a/Z8g9oVw
file: https://yadi.sk/d/B4xJCF8AMRjg8A
(full client downloader: https://yadi.sk/d/e-xXMnP9GF12kQ)
chrrox wrote:
Wed May 08, 2019 11:15 pm

Code: Select all

#Peria Chronicles quickbms script
#http://aluigi.altervista.org/quickbms.htm
#by chrrox
get TPK basename
string TPK R ".tpk" ""
set TBL TPK
set REP TPK
string TPK + ".tpk"
string TBL + ".tpk.table"
open FDSE TBL
open FDSE TPK 1 
get FILES long
get NULL long
for i = 0 < files
get NSIZE long
getdstring NULL 6
math NSIZE - 1
getdstring NAME NSIZE
string NAME R "cache" REP
string NAME + ".TARC"
get OFFSET long
get SIZE long
log NAME OFFSET SIZE 1
next i
thx!

Re: Peria Chronicles

Posted: Thu May 09, 2019 9:27 am
by akderebur
Weird format, especially faces. You first need to reorder the vertices with an index list, then there is another index list for actual triangles. I don't really get the point of that. Here is a face mesh extracted.

Image

I can probably make a tool, but need to investigate a bit more. I will start with extracting static meshes, and will continue with skinned if I I have the time.