Important information: this site is currently scheduled to go offline indefinitely by end of the year.

Peria Chronicles

Post questions about game models here, or help out others!
Post Reply
Mrtest
advanced
Posts: 43
Joined: Tue Aug 23, 2011 8:11 pm
Location: Russia, Moscow
Has thanked: 33 times
Been thanked: 2 times
Contact:

Peria Chronicles

Post by Mrtest »

Need help to extracting all meshes. 3D Model Researcher working fine, but need batch script.
Sample: https://yadi.sk/d/o7MxUJnr0xKaPQ
akderebur
double-veteran
double-veteran
Posts: 640
Joined: Fri Jul 08, 2011 10:36 am
Has thanked: 65 times
Been thanked: 898 times

Re: Peria Chronicles

Post 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.
chrrox
Moderator
Posts: 2602
Joined: Sun May 18, 2008 3:01 pm
Has thanked: 57 times
Been thanked: 1422 times

Re: Peria Chronicles

Post 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
Mrtest
advanced
Posts: 43
Joined: Tue Aug 23, 2011 8:11 pm
Location: Russia, Moscow
Has thanked: 33 times
Been thanked: 2 times
Contact:

Re: Peria Chronicles

Post 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!
akderebur
double-veteran
double-veteran
Posts: 640
Joined: Fri Jul 08, 2011 10:36 am
Has thanked: 65 times
Been thanked: 898 times

Re: Peria Chronicles

Post 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.
Post Reply