Tomb Raider Forums

Tomb Raider Forums (https://www.tombraiderforums.com/index.php)
-   Tomb Raider Modding (https://www.tombraiderforums.com/forumdisplay.php?f=42)
-   -   my own TRU data extractor (https://www.tombraiderforums.com/showthread.php?t=142318)

Dusan 17-12-08 13:45

UnpackTRU
 
[SIZE="4"][COLOR="Blue"]As of version 3.4, character models are exported with normals, bones and skinning data (vertex weights)![/COLOR][/SIZE]

Hi everyone,
I've written a program that can extract all kinds of data files from the TR: Underworld "bigfiles".

Here it is: [URL="http://www.volny.cz/pavlicd/UnpackTRU/UnpackTRU3.96.zip"]UnpackTRU3.96.zip[/URL]
And the C# source code for those interested: [URL="http://www.volny.cz/pavlicd/UnpackTRU/UnpackTRU3.96Src.zip"]UnpackTRU3.96Src.zip[/URL]

It's possible to extract geometry, normals, uvs, bones+skin, textures, sound/music files and images.



... plus, here's the [B]DLC version[/B] of the unpacker:
[url="http://www.volny.cz/pavlicd/UnpackTRU/UnpackTRU1.0DLC.zip"]UnpackTRU1.0DLC.zip[/url]

... and here's the [B]Guardian of Light version[/B] of the unpacker (provided by [B]sephiroth99[/B]):
[url="http://www.volny.cz/pavlicd/UnpackTRU/UnpackTRU1.0GoL.zip"]UnpackTRU1.0GoL.zip[/url]
([I]this version might be backward compatible with the DLC version above but I can't test it because I don't have neigther DLC nor GoL data files[/I])



[COLOR="Red"]
[B]CDRM[/B] files - character models ('meshes') and environments ('scenes') with textures
[B]MUL[/B] files - sounds and music (use program [URL="http://darkfader.net/misc/"]mul2wav[/URL] to convert them)
[B]RAW[/B], [B]PNG[/B] - bitmaps (not textures, rather artwork etc.)

[B]MUL1[/B] - one audio channel, typically dialogs
[B]MUL2[/B] - two audio channels, often music
[B]MUL4[/B], [B]MUL6[/B] - four and six audio channels, often ambient sounds
[/COLOR]

Be prepared that you'll need a lot of free harddisk space to extract everything :)

[URL="http://www.volny.cz/pavlicd/UnpackTRU/unpacktru_gui.png"][IMG]http://www.volny.cz/pavlicd/UnpackTRU/unpacktru_gui_thumb.png[/IMG][/URL]

Since the program is written in C# you'll need [URL="http://www.microsoft.com/downloads/details.aspx?familyid=333325FD-AE52-4E35-B531-508D977D32A6&displaylang=en"]Microsoft .NET Framework[/URL] to run it.
Don't forget to put the [B]zlib.net.dll[/B] library (located in the zip archive) to the same directory as your program.

To import bones and skinning data (Collada/DAE format) to 3ds MAX, install the [URL="http://sourceforge.net/project/showfiles.php?group_id=136478"]Collada importer plugin for 3ds MAX[/URL].


Here are [SIZE="4"][COLOR="Red"]lists of hashcodes[/COLOR][/SIZE] of various models and scenes for different language versions of the game:

[SIZE="4"][COLOR="Blue"]English/Multi6[/COLOR][/SIZE]: [URL="http://www.volny.cz/pavlicd/UnpackTRU/hashcodes_en_multi.txt"]hashcodes_en_multi.txt[/URL]
[SIZE="4"][COLOR="Blue"]Polish/Czech/Hungarian[/COLOR][/SIZE]: [URL="http://www.volny.cz/pavlicd/UnpackTRU/hashcodes_pl_cz_hu.txt"]hashcodes_pl_cz_hu.txt[/URL]
[SIZE="4"][COLOR="Blue"]Russian[/COLOR][/SIZE]: [URL="http://www.volny.cz/pavlicd/UnpackTRU/hashcodes_ru.txt"]hashcodes_ru.txt[/URL]


[URL="http://www.volny.cz/pavlicd/UnpackTRU/lara_xna1.jpg"][IMG]http://www.volny.cz/pavlicd/UnpackTRU/lara_xna1_thumb.jpg[/IMG][/URL]


[URL="http://www.volny.cz/pavlicd/UnpackTRU/lara_xna2.jpg"][IMG]http://www.volny.cz/pavlicd/UnpackTRU/lara_xna2_thumb.jpg[/IMG][/URL]

[URL="http://www.volny.cz/pavlicd/UnpackTRU/lara_xna3.jpg"][IMG]http://www.volny.cz/pavlicd/UnpackTRU/lara_xna3_thumb.jpg[/IMG][/URL]

Here are a few screenshots of the models I extracted with UnpackTRU (imported to Blender or 3ds max):

[URL="http://www.volny.cz/pavlicd/UnpackTRU/normals2.png"][IMG]http://www.volny.cz/pavlicd/UnpackTRU/normals2_thumb.png[/IMG][/URL]

[URL="http://www.volny.cz/pavlicd/UnpackTRU/tru_mesh_amanda.jpg"][IMG]http://www.volny.cz/pavlicd/UnpackTRU/tru_mesh_amanda_thumb.jpg[/IMG][/URL] [URL="http://www.volny.cz/pavlicd/UnpackTRU/tru_mesh_thrall.jpg"][IMG]http://www.volny.cz/pavlicd/UnpackTRU/tru_mesh_thrall_thumb.jpg[/IMG][/URL]

[URL="http://www.volny.cz/pavlicd/UnpackTRU/unpacktru1.jpg"][IMG]http://www.volny.cz/pavlicd/UnpackTRU/unpacktru1_thumb.jpg[/IMG][/URL] [URL="http://www.volny.cz/pavlicd/UnpackTRU/unpacktru2.jpg"][IMG]http://www.volny.cz/pavlicd/UnpackTRU/unpacktru2_thumb.jpg[/IMG][/URL] [URL="http://www.volny.cz/pavlicd/UnpackTRU/unpacktru3.jpg"][IMG]http://www.volny.cz/pavlicd/UnpackTRU/unpacktru3_thumb.jpg[/IMG][/URL] [URL="http://www.volny.cz/pavlicd/UnpackTRU/unpacktru4.jpg"][IMG]http://www.volny.cz/pavlicd/UnpackTRU/unpacktru4_thumb.jpg[/IMG][/URL] [URL="http://www.volny.cz/pavlicd/UnpackTRU/unpacktru5.jpg"][IMG]http://www.volny.cz/pavlicd/UnpackTRU/unpacktru5_thumb.jpg[/IMG][/URL]

And here a 3D model of the ship visualized (realtime!) using DirectX/XNA with multi-textures and static and dynamic shadows:

[URL="http://www.volny.cz/pavlicd/UnpackTRU/tru_ship1a.jpg"][IMG]http://www.volny.cz/pavlicd/UnpackTRU/tru_ship1a_thumb.jpg[/IMG][/URL] [URL="http://www.volny.cz/pavlicd/UnpackTRU/tru_ship1b.jpg"][IMG]http://www.volny.cz/pavlicd/UnpackTRU/tru_ship1b_thumb.jpg[/IMG][/URL]
[URL="http://www.volny.cz/pavlicd/UnpackTRU/tru_ship1c.jpg"][IMG]http://www.volny.cz/pavlicd/UnpackTRU/tru_ship1c_thumb.jpg[/IMG][/URL] [URL="http://www.volny.cz/pavlicd/UnpackTRU/tru_ship1d.jpg"][IMG]http://www.volny.cz/pavlicd/UnpackTRU/tru_ship1d_thumb.jpg[/IMG][/URL]
[URL="http://www.volny.cz/pavlicd/UnpackTRU/tru_ship2a.jpg"][IMG]http://www.volny.cz/pavlicd/UnpackTRU/tru_ship2a_thumb.jpg[/IMG][/URL] [URL="http://www.volny.cz/pavlicd/UnpackTRU/tru_ship2b.jpg"][IMG]http://www.volny.cz/pavlicd/UnpackTRU/tru_ship2b_thumb.jpg[/IMG][/URL] [URL="http://www.volny.cz/pavlicd/UnpackTRU/tru_ship2c.jpg"][IMG]http://www.volny.cz/pavlicd/UnpackTRU/tru_ship2c_thumb.jpg[/IMG][/URL] [URL="http://www.volny.cz/pavlicd/UnpackTRU/tru_ship2d.jpg"][IMG]http://www.volny.cz/pavlicd/UnpackTRU/tru_ship2d_thumb.jpg[/IMG][/URL]


[B]To simplify the process of selecting textures from texture groups assigned to individual submeshes, I've written yet another program, TRUTexMan[/B]:

[URL="http://www.volny.cz/pavlicd/UnpackTRU/TRUTexMan1.15.zip"]TRUTexMan1.15.zip[/URL]

Source code in C#:
[URL="http://www.volny.cz/pavlicd/UnpackTRU/TRUTexMan1.15Src.zip"]TRUTexMan1.15Src.zip[/URL]

For more information, read the file [B]readme.txt[/B] or [URL="http://www.tombraiderforums.com/showpost.php?p=3426137&postcount=252"]this short tutorial[/URL].

[URL="http://www.volny.cz/pavlicd/UnpackTRU/trutexman1.jpg"][IMG]http://www.volny.cz/pavlicd/UnpackTRU/trutexman1_thumb.jpg[/IMG][/URL]

john_york 17-12-08 14:11

That's cool! My bf is a big blender user, so this'll be useful for getting him to make me TRU things :D

Culprit 17-12-08 14:50

if it would be possible to change the game without crashes
that would be amazing
but thank you this looks great
will test it soon :)

badboy70 17-12-08 15:08

That's great ! :D

I have a questiona tho;
Can you make an injector ? :D

Mrshina 17-12-08 15:18

Ok so you can export them from TRU but you cannot import them back....is it true?...but really good job :hug:

ultima espio 17-12-08 17:58

[IMG]http://i85.photobucket.com/albums/k61/ultima_espio/cowboy.png[/IMG]

Looks like TRU has a missing cowboy...i found this after looking through Bigfile.000, and it's 4CF319F5_0317.mesh.

dizzydoil 17-12-08 18:03

Phwoarr. That's pretty hot. Thanks dude. Can you by any chance make an Injector? That'd ROCK. :hug:

tomblover 17-12-08 18:12

[quote=ultima espio;3317751][IMG]http://i85.photobucket.com/albums/k61/ultima_espio/cowboy.png[/IMG]

Looks like TRU has a missing cowboy...i found this after looking through Bigfile.000, and it's 4CF319F5_0317.mesh.[/quote]

Larson! :eek: :D

That, or it's someone else, or it's one of the Mexico poachers.

tlr online 17-12-08 18:23

Looks interesting. I'll check this out. Thank you for posting and welcome aboard.

Sim2fanTR 17-12-08 19:11

Hey, really awesome program but.. How can i launch it ? xD
When i try it says : "UnpackTRU stopped working"...


All times are GMT. The time now is 10:51.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Tomb Raider Forums is not owned or operated by CDE Entertainment Ltd.
Lara Croft and Tomb Raider are trademarks of CDE Entertainment Ltd.