READ THE RULES: Click here

Follow us on Facebook: https://www.facebook.com/xentax/ :)

Peria Chronicles

Post questions about game models here, or help out others!
Post Reply
User avatar
Mrtest
beginner
Posts: 37
Joined: Tue Aug 23, 2011 8:11 pm
Location: Russia, Moscow
Has thanked: 23 times
Contact:

Peria Chronicles

Post by Mrtest » Wed May 08, 2019 12:09 am

Need help to extracting all meshes. 3D Model Researcher working fine, but need batch script.
Sample: https://yadi.sk/d/o7MxUJnr0xKaPQ

akderebur
ultra-veteran
ultra-veteran
Posts: 398
Joined: Fri Jul 08, 2011 10:36 am
Has thanked: 50 times
Been thanked: 397 times

Re: Peria Chronicles

Post by akderebur » 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.

User avatar
chrrox
Moderator
Posts: 2552
Joined: Sun May 18, 2008 3:01 pm
Has thanked: 57 times
Been thanked: 1286 times

Re: Peria Chronicles

Post by chrrox » 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

User avatar
Mrtest
beginner
Posts: 37
Joined: Tue Aug 23, 2011 8:11 pm
Location: Russia, Moscow
Has thanked: 23 times
Contact:

Re: Peria Chronicles

Post by Mrtest » Thu May 09, 2019 12:42 am

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
ultra-veteran
ultra-veteran
Posts: 398
Joined: Fri Jul 08, 2011 10:36 am
Has thanked: 50 times
Been thanked: 397 times

Re: Peria Chronicles

Post by akderebur » Thu May 09, 2019 9:27 am

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