The Last of Us Model/Animation Tools (PS4)

Post questions about game models here, or help out others!
roodythepoo
ultra-n00b
Posts: 1
Joined: Tue Feb 28, 2017 11:52 am

Re: Last of Us Model Viewer/Extractor (PS4)

Post by roodythepoo » Wed Mar 01, 2017 4:52 am

This is an excellent tool, thanks!

I am new at this, but how do I view models from Luxox's thread ( viewtopic.php?f=10&t=15801 )? The smaller < 10mb files work fine on the tool, but the 300mb file does not work.

Just not sure how to work the pak files

akderebur
ultra-veteran
ultra-veteran
Posts: 621
Joined: Fri Jul 08, 2011 10:36 am
Has thanked: 65 times
Been thanked: 777 times

Re: Last of Us Model Viewer/Extractor (PS4)

Post by akderebur » Fri Mar 03, 2017 6:29 pm

roodythepoo wrote:This is an excellent tool, thanks!

I am new at this, but how do I view models from Luxox's thread ( viewtopic.php?f=10&t=15801 )? The smaller < 10mb files work fine on the tool, but the 300mb file does not work.

Just not sure how to work the pak files
The viewer works for separate actor50 files (characters, props etc). That common file is a collection of bunch of stuff from the game and it won't open with this tool. I am even not sure if there are models in it, it contains mostly textures for different models. Even if there is mesh data in it, this tool won't be able to load it.

daemon1
M-M-M-Monster veteran
M-M-M-Monster veteran
Posts: 2343
Joined: Tue Mar 24, 2015 8:12 pm
Has thanked: 55 times
Been thanked: 2022 times

Re: Last of Us Model Viewer/Extractor (PS4)

Post by daemon1 » Sat Mar 04, 2017 9:04 am

I wanted to take a look at this.

Image

daemon1
M-M-M-Monster veteran
M-M-M-Monster veteran
Posts: 2343
Joined: Tue Mar 24, 2015 8:12 pm
Has thanked: 55 times
Been thanked: 2022 times

Re: Last of Us Model Viewer/Extractor (PS4)

Post by daemon1 » Sat Mar 04, 2017 10:38 pm

Finally got the bones working. It took long: almost whole day.

Image

User avatar
volfin
ultra-veteran
ultra-veteran
Posts: 452
Joined: Sun Jul 06, 2014 6:30 am
Has thanked: 109 times
Been thanked: 312 times

Re: Last of Us Model Viewer/Extractor (PS4)

Post by volfin » Sat Mar 04, 2017 11:17 pm

nice :) , so you're pulling this from original data?

akderebur
ultra-veteran
ultra-veteran
Posts: 621
Joined: Fri Jul 08, 2011 10:36 am
Has thanked: 65 times
Been thanked: 777 times

Re: Last of Us Model Viewer/Extractor (PS4)

Post by akderebur » Sat Mar 04, 2017 11:21 pm

daemon1 wrote:Finally got the bones working. It took long: almost whole day.
Nice to see that you managed to read the skeleton data. Did you take a look at the animation files?

daemon1
M-M-M-Monster veteran
M-M-M-Monster veteran
Posts: 2343
Joined: Tue Mar 24, 2015 8:12 pm
Has thanked: 55 times
Been thanked: 2022 times

Re: Last of Us Model Viewer/Extractor (PS4)

Post by daemon1 » Sun Mar 05, 2017 6:19 am

volfin wrote:nice :) , so you're pulling this from original data?
Yes.
akderebur wrote:Did you take a look at the animation files?
Not yet.

User avatar
Wobble
ultra-veteran
ultra-veteran
Posts: 584
Joined: Tue Jan 04, 2005 9:47 pm
Has thanked: 43 times
Been thanked: 112 times

Re: Last of Us Model Viewer/Extractor (PS4)

Post by Wobble » Sun Mar 05, 2017 6:39 am

[out]
Last edited by Wobble on Sat Mar 11, 2017 11:19 am, edited 1 time in total.

daemon1
M-M-M-Monster veteran
M-M-M-Monster veteran
Posts: 2343
Joined: Tue Mar 24, 2015 8:12 pm
Has thanked: 55 times
Been thanked: 2022 times

Re: Last of Us Model Viewer/Extractor (PS4)

Post by daemon1 » Sun Mar 05, 2017 7:42 am

Wobble wrote:You can identity a lot of data in these files, but with all the offsets being screwed up, I find it to be a complete time waster.
That's why I'm here :) I can do things nobody else can do. I've seen this many times: first it looks like madness, but then, when you find the answer, it seems so obvious.

p.s. I already found how to fix the offsets.

User avatar
Wobble
ultra-veteran
ultra-veteran
Posts: 584
Joined: Tue Jan 04, 2005 9:47 pm
Has thanked: 43 times
Been thanked: 112 times

Re: Last of Us Model Viewer/Extractor (PS4)

Post by Wobble » Sun Mar 05, 2017 10:28 pm

[out]
Last edited by Wobble on Sat Mar 11, 2017 11:19 am, edited 1 time in total.

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

Re: Last of Us Model Viewer/Extractor (PS4)

Post by chrrox » Mon Mar 06, 2017 12:52 am

just print this info and it becomes easy to read the file.

Code: Select all

	info3 = []
	bs.seek(info2[1], NOESEEK_ABS)
	for a in range(0, info2[2]):
		info3.append(bs.read(endian + "2HI"))
	#for a in range(0, info2[2]):
	#	print(("0x%0.10X" % info3[a][2]))
	texList = []
	matList = []
	for a in range(0, header[3]):
		bs.seek(info1[a][0], NOESEEK_ABS)
		print(bs.tell())
		info4 = bs.read(endian +  "4I2H")
		info5 = []
		print("Group" + str(a))
		for b in range(0, info4[5]):
			info5.append(bs.read(endian + "4I"))
			#for c in range(0, 4):
			#	print(("0x%0.10X" % info5[b][c]))
		for b in range(0, info4[5]):
			bs.seek(info1[a][0] + info5[b][0], NOESEEK_ABS)
			mainStr = bs.readString()
			#print(mainStr)
			bs.seek(info1[a][0] + info5[b][2], NOESEEK_ABS)
			info6 = bs.read(endian + "8I")
			bs.seek(info1[a][0] + info6[0], NOESEEK_ABS)
			mainStr = bs.readString()
			bs.seek(info1[a][0] + info6[2], NOESEEK_ABS)
			typeStr = bs.readString()
			print(str(b), mainStr, " - ", typeStr, str(info1[a][0] + info5[b][2]))

daemon1
M-M-M-Monster veteran
M-M-M-Monster veteran
Posts: 2343
Joined: Tue Mar 24, 2015 8:12 pm
Has thanked: 55 times
Been thanked: 2022 times

Re: Last of Us Model Viewer/Extractor (PS4)

Post by daemon1 » Mon Mar 06, 2017 5:23 am

chrrox wrote:just print this info and it becomes easy to read the file.
Oh, it was all in the script? Then I completely can't understand why so many people here was unable to correct the offsets, having all this information.

User avatar
volfin
ultra-veteran
ultra-veteran
Posts: 452
Joined: Sun Jul 06, 2014 6:30 am
Has thanked: 109 times
Been thanked: 312 times

Re: Last of Us Model Viewer/Extractor (PS4)

Post by volfin » Mon Mar 06, 2017 6:34 am

no, that code is new, wasn't in the script.

User avatar
Wobble
ultra-veteran
ultra-veteran
Posts: 584
Joined: Tue Jan 04, 2005 9:47 pm
Has thanked: 43 times
Been thanked: 112 times

Re: Last of Us Model Viewer/Extractor (PS4)

Post by Wobble » Mon Mar 06, 2017 1:22 pm

[out]
Last edited by Wobble on Sat Mar 11, 2017 11:19 am, edited 2 times in total.

daemon1
M-M-M-Monster veteran
M-M-M-Monster veteran
Posts: 2343
Joined: Tue Mar 24, 2015 8:12 pm
Has thanked: 55 times
Been thanked: 2022 times

Re: Last of Us Model Viewer/Extractor (PS4)

Post by daemon1 » Mon Mar 06, 2017 5:41 pm

I'm gonna make a free tool to extract models with bones and a new video tutorial explaining how to research such a format. This I think will be interesting, because it will show how one thing leads to another, and how step by step you can explore the whole file.

Post Reply