www.tombraiderforums.com

Go Back   www.tombraiderforums.com > Tomb Raider Modding > Tomb Raider Level Editor > Tutorials and Resources

Closed Thread
 
Thread Tools
Old 12-07-08, 05:23   #1
sapper
Archaeologist
 
sapper's Avatar
 
Join Date: Sep 2007
Posts: 1,591
Default TextureAdd tutorials

Some tutorials showing how to use TextureAdd.

TextureAdd is a program that adds textures to a wad's .wad file.
Download TextureAdd here.
Also download the DLL at the bottom of that page.

If Champ's links are dead you can download TextureAdd and the required DLL from here.


Last edited by sapper; 13-01-18 at 07:01. Reason: add alternative link for download
sapper is offline  
Old 12-07-08, 05:26   #2
sapper
Archaeologist
 
sapper's Avatar
 
Join Date: Sep 2007
Posts: 1,591
Default How to add a texture to a wad

In the latest version of TextureAdd (1.0.6.3) the add new texture feature now works so the following method is not necessary. You just press add texture and select your texture/textures. I'll leave these instructions as is for information purposes. Also the new add texture feature will place the new textures automatically. If you want to control where the texture goes in your wad you still need to use this technique.


AddTextureWithTextureAdd.pdf


















Last edited by sapper; 13-01-18 at 07:06.
sapper is offline  
Old 12-07-08, 05:31   #3
sapper
Archaeologist
 
sapper's Avatar
 
Join Date: Sep 2007
Posts: 1,591
Default Reecemix's Paint By Numbers Post

Link
sapper is offline  
Old 12-07-08, 08:57   #4
sapper
Archaeologist
 
sapper's Avatar
 
Join Date: Sep 2007
Posts: 1,591
Default How to add all textures from one wad to another wad

In the latest TextureAdd version (1.0.6.3) the append texture records feature has been fixed so my recmerger program is no longer needed.

AddAllTexturesWithTextureAdd.PDF
PYTHON script rec_merge.py

View this way -------------->




















Last edited by sapper; 03-07-09 at 08:04.
sapper is offline  
Old 13-07-08, 08:10   #5
sapper
Archaeologist
 
sapper's Avatar
 
Join Date: Sep 2007
Posts: 1,591
Default Reason for adding all textures from one wad to another wad

Provides an alternative way to add meshes from one wad to another wad already textured.

An easier way is to copy the meshes across in Wadmerger to an unused slot by holding the shift key when you press copy.

AddMeshFromWadBtoWadA.PDF

PYTHON script changeDXFtextures.py

As an alternative to installing PYTHON and running the scripts from a command window as shown in the tutorials, download Portable Python. Unzip the file then open the scripts in the SciTE text editor. To run the scripts use Go from the Tools menu.












Last edited by sapper; 03-07-09 at 08:07.
sapper is offline  
Old 23-07-08, 11:11   #6
sapper
Archaeologist
 
sapper's Avatar
 
Join Date: Sep 2007
Posts: 1,591
Default

Created a GUI (Recmerger.exe) for windows that runs slightly modified versions of the PYTHON scripts above so you don't need to use a command window. Also no longer need specific names for the rec files or dxf files. The modified scripts are included in the zip file.

Download link

Readme for Recmerger Version 1.0 JUL08
-------------------------------------------
Background:

This program was written to enable meshes from
one wad to be transferred to another wad for
TRLE (Tomb Raider Level Editor) builders.

It does this by allowing builders to add every
texture from one wad to another with TextureAdd
and then adjusting the texture references in the
DXF files exported from the second wad to match
the textures in the combined wad.

Setup:

Needs Python to run. I recommend installing Python
but the GUI may run if python25.dll is in the same
folder as Recmerger.exe.

File GUIrec_merge.py must be in the same folder as
Recmerger.exe.

File GUIchangeDXFtextures.py must be in the same
folder as Recmerger.exe.

Caution: When you press the action button a file
named GUIchangeDXFtextures.py or GUIrec_merge.py
is run.

Python scripts are text files that can be easily
changed so someone can change what the scripts do.
To combat this, under the file menu is an option
to display the original scripts. Use this to check
the scripts in the folder and if there is a
difference, use the button to write new scripts.

Usage:
~ Create a new folder somewhere.
~ Open wad you want to add meshes/textures to in TextureAdd.
~ In Texture Position section, export Texture Record File *.rec.
~ Save *.rec file to the folder you created.
~ Open wad you want to export meshes/textures from in TextureAdd.
~ In Texture Position section, export Texture Record File *.rec.
~ Save *.rec file to same folder as above.
~ From Texture Pages section export all pages to the folder.
~ Run Recmerger.exe.
~ Open first *.rec file then open second *.rec file and press "Join records".
~ Second *.rec file is appended to first *.rec file and written to the folder.
~ Combined *.rec file is saved as originalfilename1+originalfilename2.rec.
~ If filename1+filename2.rec exists it will be overwritten.
~ Open wad you want to add meshes/textures to in TextureAdd again.
~ In Texture Pages section Add New>Load from Image.
~ Load first page exported from second wad.
~ Add/import all pages exported from second wad in order.
~ In Texture Position section import filename1+filename2.rec.
~ Choose Yes to overwrite.
~ Save wad.

All textures of second wad should be added to first wad and selectable.

~ In StrPix, open the wad you want to export meshes from.
~ Export the DXFs you want to transfer to the other wad.
~ DXFs must be saved to same folder as rec_merge_info.txt.
rec_merge_info.txt is generated by GUIrec_merge.py, so
save them to the folder you created above.
~ Run Recmerger.exe.
~ Open one of the DXF files.
~ All DXF files in the same folder will be selected for conversion.
Note: DXF files prefixed with rec_join_ will be ignored.
~ Press Adjust DXF.
~ Converted files are saved as rec_join_original name.dxf in same folder.
Notes:
If rec_join_original name.dxf exists, it is automatically overwritten.
The number in the first line of rec_merge_info.txt is added to the
texture IDs of each original DXF file.
~ Open the wad you want to transfer the meshes to in StrPix. This wad
should contain the textures of both original wads.
~ Import the DXFs. Each one should be textured correctly.
~ Remapping and recalc normals still required. :-(
~ Save wad.
~ Open wad in Wadmerger and save to discard unused textures and
rearrange textures efficiently.
sapper is offline  
Closed Thread

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT. The time now is 18:54.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2018, vBulletin Solutions Inc.