Twisted Metal 2 .tpc .dpc
Posted: Fri Nov 27, 2009 7:53 pm
The contents of this post was deleted because of possible forum rules violation.
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 ;
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.Mr.Mouse wrote:This BMS will extract the tim files.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 ;
Use the compiled version in MultiEx Commander : 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