AuahDark Posted December 20, 2015 Share Posted December 20, 2015 San Andreas User Tracks information file format. The user tracks information consist of 2 files, sa-ufiles.dat and sa-utrax.dat sa-ufiles.dat contains all file names (including the path) of the user tracks stored in GTA San Andreas User Files\User Tracks. The start of the basename is noted with 2 backslashes Please note that there's no NULL-terminator string in that file, so sa-utrax.dat is used to index those file paths. Example: <file1> is "C:\Windows\test.mp3" and <file2> is "D:\test.mp3". The contents of sa-ufiles.dat would be "C:\Windows\\test.mp3D:\\test.mp3" (notice those 2 backslashes) sa-utrax.dat is used to index the paths in the sa-ufiles.dat. It has following format: 4 bytes - file path start in sa-ufiles.dat 4 bytes - string length 4 bytes - audio type, where 1 = OGG, 2 = WAV, 3 = MP3, 4 = AAC/M4A (maybe 4 = Codec from system?) All values are in little-endian. There's no value that determines "how much" user tracks that available in the User Tracks folder. Instead, the game just keep reading this file until it reaches End-Of-File. Actually, there's a way to know how much user tracks available, by dividing this file size by 12. Based from information above, it's possible to "actually" tell the game to load tracks from another path. I've been made such program and I'll share it later. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now