Repository navigation
Retexturing Existing Tracks
This guide will show you how to retexture existing viper racing tracks.
First you need to get the decompiler tools located on the decompiler branch of this repository. It contains the following tools:
- convert.exe
- rescrack.bat
- rescrack.exe
- tex2tga.bat
- ResClean.bat
- ResClean.exe
You edit rescrack.bat to include the .trk file located in the default track location C:\Sierra\Viper Racing\Data
This is the filename index for the 8 Viper Racing tracks:
| Track Name | Track Filename |
|---|---|
| Bemidji | bemidji.trk |
| Castlegreen | heaven.trk |
| Silverdale | uptown.trk |
| Ridge Valley | hastings.trk |
| Dayton | limbo.trk |
| Dundas | dundas.trk |
| Sunset Mesa | nfield.trk |
| Rock Island | kenyon.trk |
The rescrack.bat file calls rescrack.exe which extracts all of the track's parts, it then calls the tex2tga.bat which calls the convert.exe to convert the .tex files to .tga files which can be edited in software like photoshop or gimp.
You'll need to do the inverse of the decompile process above when recompiling your textures back into a working track. so you'll need to convert the modified .tga files to .tex files, and then compile all the pieces back together into a working track.
To convert .tga files to .tex` files you need the following:
- NO-ALPHAtga2texAll.bat
- ALPHAtga2texAll.bat
- MKTEX.EXE
place your .tga files in the same folder as the tools above. Depending on if your.tga has an alpha channel or no alpha channel you'll choose the respective .bat file, each calls MKTEX.EXE and puts the results in their respective folder.
Once we've generated our new textures we need the following tools to recompile the track:
- compile-track.bat
- MKRES.EXE
The compile-track.bat calls MKRES.EXE and the decompiled reslist.txt which includes all the essential textures and track fixtures. You need to run the ResClean.bat to fix the reslist.txt format from decompiling. You can rename the retextured track by modifying the compile-track.bat. If you did everything correctly it should generate a .tra file that you can load into trackman.exe
Example reslist.txt for Sunset Mesa:
aidef.ccs
camera.tab
nfield.ccs
track.bpp
track.bsp
track.grf
track.obt
track.sol
Trackmap.stp
1.tex
2.tex
2dtele.tex
3.tex
3dtele.tex
7gdot.tex
7kl.tex
7scraped.tex
7shave.tex
ad.tex
bd.tex
bk1.tex
brfen.tex
cactus.tex
default.ili
desrd.tex
desrd1.tex
door1.tex
erode.tex
i11.tex
i22.tex
rail.tex
rb.tex
rdefault.ili
roof2.tex
rtbig.tex
sddry.tex
sdklif.tex
sdwall.tex
shrb.tex
shru.tex
sky1.tex
sky2.tex
sky3.tex
sky4.tex
st12.tex
tb8.tex
track.ild
tv5.tex
tv9.tex
x.tex
Retextured Example:
