GTA San Andreas SFXZIP: Difference between revisions

From XentaxWiki
Jump to navigation Jump to search
imported>WATTO
No edit summary
 
imported>Ikskoks
No edit summary
 
(2 intermediate revisions by 2 users not shown)
Line 52: Line 52:


* [[MultiEx Commander]]
* [[MultiEx Commander]]
[[Category:File Format]]

Latest revision as of 13:54, 10 January 2021

SFXZIP


Format Specifications

// General structure

uint32{4}	Number of resources
char{n}		Resource Info
char{n}		Resource data

// Resource Info

	// For each resource

	uint32{4}	Resource offset
	uint32{4}	Unknown
	uint32{4}	Unknown


MultiEx BMS

Get FileNum Long 0 ;
Math FileNum -= 1 ;
For T = 1 To FileNum ;
Get Offset Long 0 ;
Get D Long 0 ;
Get D Long 0 ;
SavePos J 0 ;
Get Size Long 0 ;
Math Size -= Offset ;
Log "" Offset Size 0 0 ;
GoTo J 0 ;
Next T ;
Get Offset Long 0 ;
GoTo EOF 0 ;
SavePos Size 0 ;
Math Size -= Offset ;
Log "" Offset Size 0 0 ; 


Notes and Comments

To get the resource sizes, subtract the current offset from the offset of the next resource. If you reach the last, subtract its offset from the total archive size.


Supported by Programs