Tomb Raider Forums

Tomb Raider Forums (https://www.tombraiderforums.com/index.php)
-   Tomb Raider Modding (https://www.tombraiderforums.com/forumdisplay.php?f=42)
-   -   Tomb Raider Legend/Anniversary Mod Tools. (https://www.tombraiderforums.com/showthread.php?t=215735)

Gh0stBlade 07-08-16 17:01

Tomb Raider Legend/Anniversary Mod Tools.
 
Hey everyone!

I wrote some tools to unpack/repack the DRM sections for Tomb Raider: Legend and Anniversary. This means it's "possible" to alter some of the DRM data and repack it back. Currently I have in development tools to convert textures and sounds.

Some examples of texture/sound effect alterations:
[youtube]lUUPktG5qms[/youtube]

[b]You can:[/b][LIST][*]1. Modify / swap textures.[*]2. Modify / swap sound effects.[/LIST]
[b]You cannot:[/b][LIST][*]1. Import new 3D models.[*]2. Import new animations.[*]3. Import new scripts.[/LIST]
[b]Known issues:[/b]
1. N/a

[b][color=red]CAUTION: DO NOT rename ANY of the sections that DRM.EXE extracts! DRM sections have unique hash names which are stored in the filename. To ensure everything is packed back correctly do not change them.[/b][/color]

Here are the steps you must take to modify any DRM files.

[b][u]1. Unpack the bigfile.* archive[/u][/b]

1.1 Download Gibbed's Bigfile unpacker from:
[url]https://dl.dropbox.com/u/19940372/gibbed/gibbed.zip[/url]

1.2. Unpack the ZIP to an empty folder.

1.3. Copy your bigfiles for TRL or TRA or TR8 (only have 1 game's bigfiles coppied here at a time or you'll overwrite them since the names are the same).

1.4. Create a new text file called "unpack.txt" (where you extracted Gibbed's tools) copy the following text into it then save it:

[code]
unpack -p="Tomb Raider 7" bigfile.000
[/code]

[b][color=red]Note: Replace -p="Tomb Raider 7" with "-p="Tomb Raider Anniversary" for TRA, and -p="Tomb Raider 8" for TRU.[/b][/color]

1.5. Rename unpack.txt to unpack.bat (you must have file extensions viewable or you won't be able to do this). Double click "unpack.bat" and the bigfile will be extracted to a new folder "bigfile_unpack".

1.6. The main DRM files are located in "bigfile_unpack\default\pc-w" so you must navigate here.

[b][u]2. Extract the DRM sections.[/u][/b]


2.1. Download the DRM unpacker/repacker from [url=https://github.com/Gh0stBlade/cdcEngineTools/releases]here[/url] and extract it to a new folder.

2.2 Copy the DRM from (bigfile_unpack\*) you wish to unpack/modify to the same folder where you extracted DRM.EXE (in this case I use lara.drm from TRL).

2.3. To unpack the DRM simply, drag and drop the .DRM file onto DRM.EXE.

[img]http://i.imgur.com/q5ixe3r.png[/img]

2.4. You should notice a new folder has been created which contains all the unpacked sections.

[img]http://i.imgur.com/CVKPPRu.png[/img]

2.5. To repack, simply drag and drop the result folder containing all DRM sections.

[img]http://i.imgur.com/RLdPZvX.png[/img]

2.6. You should get a new file named "Repacked.drm". This is the file you'll want to pack back into the bigfile. (It is important you rename this back to the original DRM filename and replace it with the one from the extracted Bigfile folder or the data will not be overwritten.

[img]http://i.imgur.com/j6RKWAB.png[/img]

2.7. Repack the bigfile same as unpacking put you use pack.exe and pass the folder to pack. See [url]http://www.tombraiderforums.com/showthread.php?t=192773[/url]

2.8. Once repacked you simply copy those Bigfiles back to your original TR7/A/U directory and launch the game :)

[b][u]3. Modifying Textures.[/u][/b]
3.1 Simply drag and drop the .pcd file onto PCD2DDS.exe. This will convert the .pcd to DDS (Direct Draw Surface) format. You may make any changes, save it back in the same DXT format (to be safe). Finally drag and drop the modified .dds file onto PCD2DDS.exe which will convert it back to .PCD. [b][color=red]Note You must rename the final .PCD file back to the original file name and copy it to your unpacked DRM folder[/color][/b]

[b][u]4. Modifying Sound Effects.[/u][/b]

4.1 Currently this is possible if the sounds you intend to import are encoded with IMA ADPCM. It's pretty much the same process as converting textures back and fourth except you'll need to use WAVE2WAV.EXE.

===

Tutorial is subject to change, happy modding!

Regards.

Alex Fly 07-08-16 17:18

Impressive work there, Gh0stBlade ! :tmb:

Tombraiderplay 09-08-16 14:54

Why can't we change the lara model ? Maybe alter some meshes ??? We basically would have controll over the game :D animations are a bust too but dont get me wrong i SO LOVE YOUR WORK :D

Good Luck !!

Gh0stBlade 09-08-16 15:58

[QUOTE=Tombraiderplay;7632406]Why can't we change the lara model ? Maybe alter some meshes ??? We basically would have controll over the game :D animations are a bust too but dont get me wrong i SO LOVE YOUR WORK :D

Good Luck !![/QUOTE]

Modifying models won't happen unless someone finds a way to swap two mesh sections without the game crashing. Currently, doing so will crash the game and the cause is not found yet. Until then, there's no point in writing mesh tools for TRL/TRA. It's a known issue that also happens in TR8, once solved it should be very easy to import TRU X360 DLC models to the PC engine :)

===

I have made some adjustments to the DRM repack tool. There's a new check that will patch the section hash if it doesn't match the one in the filename :D (This is more-so a user based improvement for those who don't know how to hex edit).

[url]https://github.com/Gh0stBlade/cdcEngineTools/releases[/url]

Regards.

Tombraiderplay 09-08-16 17:33

Damnn ... i hope we find out soon :D

Since im here and asking can i ask you if we can change level files ? Maybe play a TRU map with the TRA engine and vice-verca ... is it possible ?


----

I Adore your Signature

Gh0stBlade 09-08-16 21:24

[QUOTE=Tombraiderplay;7632514]Damnn ... i hope we find out soon :D

Since im here and asking can i ask you if we can change level files ? Maybe play a TRU map with the TRA engine and vice-verca ... is it possible ?


----

I Adore your Signature[/QUOTE]

I haven't looked at scene meshes yet. I assume the game will crash just like what happens with standard meshes. If it did work, someone could write a tool to import new room meshes. The collision data would need to be replaced as well.

Cheers.

Zsott 10-08-16 10:44

Nice work!

Can i ask something?
Is it possible to restore some of the unused dialoges too?
(I don't know they are scripted or not)

Tombraiderplay 10-08-16 17:42

[QUOTE=Gh0stBlade;7632661]I haven't looked at scene meshes yet. I assume the game will crash just like what happens with standard meshes. If it did work, someone could write a tool to import new room meshes. The collision data would need to be replaced as well.

Cheers.[/QUOTE]

The fact that there is hope makes me wanna jumpy joy :jmp: :jmp:

Gh0stBlade 11-08-16 12:33

[QUOTE=Zsott;7632884]Nice work!

Can i ask something?
Is it possible to restore some of the unused dialoges too?
(I don't know they are scripted or not)[/QUOTE]

Which unused voice files? I didn't know there are left over unused voice files in the final game. I know there's a few in the PS2 demo though. You should be able to swap .MUL files at the very least. Triggering voice lines with new scripts isn't possible unless the format is known.

Cheers.

laracroft1997 19-08-16 17:01

is it possible to add AOD's Footstep SFX ?


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

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.