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

Titanfall 2/Apex Legends

The Original Forum. Game archives, full of resources. How to open them? Get help here.
analblaze
ultra-n00b
Posts: 6
Joined: Thu Dec 17, 2015 10:05 am

Re: Titanfall 2/Apex Legends

Post by analblaze »

If anyone hasn't already noticed, the current version of Cra0's VPK tool can't extract a lot of changed files from Apex Legends, and repacked VPKs don't seem to want to work at all right now. There seem to still be some people on twitter opening the stuff that it can't extract though, is there another tool floating around out there or are they just working it out themselves?
cra0 wrote: Thu Feb 14, 2019 4:12 am I'm trying to form some sort of discipline and get back into this stuff.

Last I recall titanfall2 .rpak was encrypted or packed with a unique compression method.
I'll purchase the game this weekend and have a look.
Perfect news to see.
User avatar
Bigchillghost
double-veteran
double-veteran
Posts: 1024
Joined: Tue Jul 05, 2016 9:37 am
Has thanked: 31 times
Been thanked: 1210 times

Re: Titanfall 2/Apex Legends

Post by Bigchillghost »

You can use the following BMS commands to unpack the starpak archives:

Code: Select all

idstring "SRPk" # starpak
goto -8 0 SEEK_END
savepos entryOffset
get entryCount longlong
set entrySize longlong entryCount
math entrySize * 0x10
math entryOffset - entrySize
log MEMORY_FILE entryOffset entrySize
get Path basename
for i = 0 < entryCount
	get Offset longlong MEMORY_FILE
	get Size longlong MEMORY_FILE
	goto Offset
	get Magic longlong
	set Flag longlong Size
	math Flag & 0x0FFF
	if Magic == 0x1800000007
		set Ext string ".msh"
	elif Flag == 0
		set Ext string ".tex"
	else
		set Ext string ".dat"
	endif
	set Name string ""
	string Name p "%s/%08d%s" Path i Ext
	log Name Offset Size
next i
The only problem is files are output without names so there's a simple detection for the extesions.
The mesh format this game use has some optimizations on the vertex data so there're extra work to do to convert them to common format. Some simple mesh is easy to extract though.
msh.jpg
You do not have the required permissions to view the files attached to this post.
May you find peace in this puzzle-solving game. Say it with action: click the Image when you get helped.:)
User avatar
durandal217
veteran
Posts: 95
Joined: Tue Jul 17, 2012 3:52 am
Has thanked: 16 times
Been thanked: 12 times

Re: Titanfall 2/Apex Legends

Post by durandal217 »

Bigchillghost wrote: Tue Mar 05, 2019 4:52 pm You can use the following BMS commands to unpack the starpak archives:

Code: Select all

idstring "SRPk" # starpak
goto -8 0 SEEK_END
savepos entryOffset
get entryCount longlong
set entrySize longlong entryCount
math entrySize * 0x10
math entryOffset - entrySize
log MEMORY_FILE entryOffset entrySize
get Path basename
for i = 0 < entryCount
	get Offset longlong MEMORY_FILE
	get Size longlong MEMORY_FILE
	goto Offset
	get Magic longlong
	set Flag longlong Size
	math Flag & 0x0FFF
	if Magic == 0x1800000007
		set Ext string ".msh"
	elif Flag == 0
		set Ext string ".tex"
	else
		set Ext string ".dat"
	endif
	set Name string ""
	string Name p "%s/%08d%s" Path i Ext
	log Name Offset Size
next i
The only problem is files are output without names so there's a simple detection for the extesions.
The mesh format this game use has some optimizations on the vertex data so there're extra work to do to convert them to common format. Some simple mesh is easy to extract though.
NICE! Any progress/chance we can get a BMS script to unpack the .MSTR archives?
mads059k
ultra-n00b
Posts: 4
Joined: Wed Feb 20, 2019 10:07 am
Has thanked: 8 times

Re: Titanfall 2/Apex Legends

Post by mads059k »

Bigchillghost wrote: Tue Mar 05, 2019 4:52 pm You can use the following BMS commands to unpack the starpak archives:

Code: Select all

idstring "SRPk" # starpak
goto -8 0 SEEK_END
savepos entryOffset
get entryCount longlong
set entrySize longlong entryCount
math entrySize * 0x10
math entryOffset - entrySize
log MEMORY_FILE entryOffset entrySize
get Path basename
for i = 0 < entryCount
	get Offset longlong MEMORY_FILE
	get Size longlong MEMORY_FILE
	goto Offset
	get Magic longlong
	set Flag longlong Size
	math Flag & 0x0FFF
	if Magic == 0x1800000007
		set Ext string ".msh"
	elif Flag == 0
		set Ext string ".tex"
	else
		set Ext string ".dat"
	endif
	set Name string ""
	string Name p "%s/%08d%s" Path i Ext
	log Name Offset Size
next i
The only problem is files are output without names so there's a simple detection for the extesions.
The mesh format this game use has some optimizations on the vertex data so there're extra work to do to convert them to common format. Some simple mesh is easy to extract though.
msh.jpg
What program do you use for opening .msh files?
User avatar
Bigchillghost
double-veteran
double-veteran
Posts: 1024
Joined: Tue Jul 05, 2016 9:37 am
Has thanked: 31 times
Been thanked: 1210 times

Re: Titanfall 2/Apex Legends

Post by Bigchillghost »

mads059k wrote: Tue Mar 12, 2019 12:07 pm What program do you use for opening .msh files?
It's hex2obj that I used to load one of the meshes. But thing is getting more complicated than I expected. Might take a little while to figure out the relation between the vertex IDs and the data.
May you find peace in this puzzle-solving game. Say it with action: click the Image when you get helped.:)
FunGames
ultra-n00b
Posts: 1
Joined: Wed Feb 28, 2018 5:46 pm

Re: Titanfall 2/Apex Legends

Post by FunGames »

How would you read the tex files? Is it a dxt format or sth else?
silverm9
ultra-n00b
Posts: 2
Joined: Mon Feb 12, 2018 1:39 pm
Been thanked: 1 time

Re: Titanfall 2/Apex Legends

Post by silverm9 »

FunGames wrote: Tue Mar 12, 2019 5:59 pm How would you read the tex files? Is it a dxt format or sth else?
The textures seem to be DXT for the most part
Image
mads059k
ultra-n00b
Posts: 4
Joined: Wed Feb 20, 2019 10:07 am
Has thanked: 8 times

Re: Titanfall 2/Apex Legends

Post by mads059k »

silverm9 wrote: Tue Mar 12, 2019 10:44 pm
FunGames wrote: Tue Mar 12, 2019 5:59 pm How would you read the tex files? Is it a dxt format or sth else?
The textures seem to be DXT for the most part
Image
But how did you open them?
User avatar
Bigchillghost
double-veteran
double-veteran
Posts: 1024
Joined: Tue Jul 05, 2016 9:37 am
Has thanked: 31 times
Been thanked: 1210 times

Re: Titanfall 2/Apex Legends

Post by Bigchillghost »

The latest progress:
Image

All LODs:
Image
May you find peace in this puzzle-solving game. Say it with action: click the Image when you get helped.:)
exhaleme
ultra-n00b
Posts: 6
Joined: Tue Jan 10, 2017 3:59 am
Been thanked: 3 times

Re: Titanfall 2/Apex Legends

Post by exhaleme »

Legion has been released for Apex by DTZxPorter & id-daemon: https://wiki.modme.co/wiki/apps/Legion.html

Models + textures and eventually animations.

Fully rigged + materials in SEModel, OBJ, SMD, XNALara Text, XNALara Binary.
SETools: https://github.com/dtzxporter/SETools
BigBangYourMother
ultra-n00b
Posts: 4
Joined: Fri Mar 15, 2019 3:33 am
Has thanked: 1 time

Re: Titanfall 2/Apex Legends

Post by BigBangYourMother »

exhaleme wrote: Thu Mar 14, 2019 9:07 pm Legion has been released for Apex by DTZxPorter & id-daemon: https://wiki.modme.co/wiki/apps/Legion.html

Models + textures and eventually animations.

Fully rigged + materials in SEModel, OBJ, SMD, XNALara Text, XNALara Binary.
SETools: https://github.com/dtzxporter/SETools
So ive unpacked the starpack files and as asked above all the files are .tex or .msh. How does the Autodesk + the plugins open these files? Usually pretty good with this stuff but im stumped
exhaleme
ultra-n00b
Posts: 6
Joined: Tue Jan 10, 2017 3:59 am
Been thanked: 3 times

Re: Titanfall 2/Apex Legends

Post by exhaleme »

BigBangYourMother wrote: Fri Mar 15, 2019 3:36 am So ive unpacked the starpack files and as asked above all the files are .tex or .msh. How does the Autodesk + the plugins open these files? Usually pretty good with this stuff but im stumped
This is completely useless, follow the instructions on usage of Legion from the link, it uses the rpaks to extract all the assets. The starpaks are merely a bank of data which is used by the rpaks.
User avatar
Bigchillghost
double-veteran
double-veteran
Posts: 1024
Joined: Tue Jul 05, 2016 9:37 am
Has thanked: 31 times
Been thanked: 1210 times

Re: Titanfall 2/Apex Legends

Post by Bigchillghost »

BigBangYourMother wrote: Fri Mar 15, 2019 3:36 amSo ive unpacked the starpack files and as asked above all the files are .tex or .msh.
Here is a msh to FBX convertor if it's needed. All meshes of all LODs are preserved and grouped like this in a scene:

Image

Tested on msh files from pc_all(01).starpak only.
You do not have the required permissions to view the files attached to this post.
May you find peace in this puzzle-solving game. Say it with action: click the Image when you get helped.:)
BigBangYourMother
ultra-n00b
Posts: 4
Joined: Fri Mar 15, 2019 3:33 am
Has thanked: 1 time

Re: Titanfall 2/Apex Legends

Post by BigBangYourMother »

Bigchillghost wrote: Fri Mar 15, 2019 1:09 pm
BigBangYourMother wrote: Fri Mar 15, 2019 3:36 amSo ive unpacked the starpack files and as asked above all the files are .tex or .msh.
Here is a msh to FBX convertor if it's needed. All meshes of all LODs are preserved and grouped like this in a scene:

Image

Tested on msh files from pc_all(01).starpak only.
this is what i was after! thanks.
mads059k
ultra-n00b
Posts: 4
Joined: Wed Feb 20, 2019 10:07 am
Has thanked: 8 times

Re: Titanfall 2/Apex Legends

Post by mads059k »

Bigchillghost wrote: Fri Mar 15, 2019 1:09 pm
BigBangYourMother wrote: Fri Mar 15, 2019 3:36 amSo ive unpacked the starpack files and as asked above all the files are .tex or .msh.
Here is a msh to FBX convertor if it's needed. All meshes of all LODs are preserved and grouped like this in a scene:

Image

Tested on msh files from pc_all(01).starpak only.
But is it possible to apply the textures to the models yet? And if so how?
Post Reply