Page 1 of 1

Twisted Metal 2 .tpc .dpc

Posted: Fri Nov 27, 2009 7:53 pm
by themonkeyman
The contents of this post was deleted because of possible forum rules violation.

Re: Twisted Metal 2 .tpc .dpc

Posted: Sat Nov 28, 2009 10:24 am
by Mr.Mouse

Code: Select all

IDString 0 "TCPMC" ;
Set J Long 8 ;
GoTo J 0 ;
Get Date Long 0 ;
Get FN Long 0 ;
SavePos FS 0 ;
Set EXT String ".tim" ;
For T = 1 To FN ;
Get Size Long 0 ;
SavePos TIMOFF 0 ;
Set Name String T ;
String Name += EXT ;
Log Name TIMOFF Size 0 0 ;
Math FS += Size ;
Math FS += 4 ;
GoTo FS 0 ;
Next T ;
This BMS will extract the tim files.

Use the compiled version in MultiEx Commander :
tpc.zip
The format of the .TPC files is simple:

Code: Select all

// Header

[8]		    Magic Word ("TCPMC/0/0/0")
uint32		File date 
uint32		Number of resources in the archive

// Resource (all follow in order after the header)

uint32		Size of resource
[n]		    TIM file data

Re: Twisted Metal 2 .tpc .dpc

Posted: Mon May 02, 2011 10:59 am
by themonkeyman
Mr.Mouse wrote:

Code: Select all

IDString 0 "TCPMC" ;
Set J Long 8 ;
GoTo J 0 ;
Get Date Long 0 ;
Get FN Long 0 ;
SavePos FS 0 ;
Set EXT String ".tim" ;
For T = 1 To FN ;
Get Size Long 0 ;
SavePos TIMOFF 0 ;
Set Name String T ;
String Name += EXT ;
Log Name TIMOFF Size 0 0 ;
Math FS += Size ;
Math FS += 4 ;
GoTo FS 0 ;
Next T ;
This BMS will extract the tim files.

Use the compiled version in MultiEx Commander :
tpc.zip
The format of the .TPC files is simple:

Code: Select all

// Header

[8]		    Magic Word ("TCPMC/0/0/0")
uint32		File date 
uint32		Number of resources in the archive

// Resource (all follow in order after the header)

uint32		Size of resource
[n]		    TIM file data
It's great that you put an ad in your post telling me to contribute regularly, and I plan to.

I want to make a Hex editing tutorial using THPS3/ TM1/TM2 as my example games.

I'm just trying to get more exposure for my mods, which I have made a thread for in another forum.

TM2 uses .DPC files as 3d model containers.

.DMD is the PS1 container format.

The 3d data is "virtually" identical.

http://www.youtube.com/watch?v=F25WZNAkXWM

Some guy over at TMAlliance already made a tool to view the 3d models!

I just need the guy to send me his tool!

Re: Twisted Metal 2 .tpc .dpc

Posted: Wed Jan 04, 2012 5:39 pm
by Kaka
any1 have BMS script for .tim files ? the one above dont work