PDA

View Full Version : Tool to decrypt GTA San Andreas radios/audio to then compress with Oggre.


teusma
12-05-2025, 20:45
the radio/audios (the one in the streams folder) in GTA San Andreas is encrypted so oggre cannot process/compress the .ogg audios - but with this tool (stream_tool) you will be able to.

so it will look like this: -mstream_tool+oggre+lolz (yes, you can still compress more) - remember that this tool will not extract the .ogg files from gta sa radios, it only decrypts the entire files.

limitation: you can't compress all the files into a single block - so you need to manually compress the radios to form several blocks, which you can then join together with frearc and the "j" command.

The Tool:

kj911
15-05-2025, 04:29
Small issue: WinXP compatible compiled EXE not available? (Likely, adftool its works.)

The game "XYZ" sound files compress them alternative "arc.ini" configuration, resolve manually compression issues?

[External compressor:stream_tool]
; GTA San Andreas Radio/audios decrypt tool
header = 0
packcmd = stream_tool -d $$arcdatafile$$.tmp $$arcpackedfile$$.tmp
unpackcmd = stream_tool -e $$arcpackedfile$$.tmp $$arcdatafile$$.tmp
datafile = $$arcdatafile$$.tmp
packedfile = $$arcpackedfile$$.tmp

Masquerade
15-05-2025, 13:19
Why are you running lolz after oggre? There's no point.

teusma
16-05-2025, 19:54
Small issue: WinXP compatible compiled EXE not available? (Likely, adftool its works.)

The game "XYZ" sound files compress them alternative "arc.ini" configuration, resolve manually compression issues?

[External compressor:stream_tool]
; GTA San Andreas Radio/audios decrypt tool
header = 0
packcmd = stream_tool -d $$arcdatafile$$.tmp $$arcpackedfile$$.tmp
unpackcmd = stream_tool -e $$arcpackedfile$$.tmp $$arcdatafile$$.tmp
datafile = $$arcdatafile$$.tmp
packedfile = $$arcpackedfile$$.tmp

To generate an exe compatible with WinXP I would have to change the compiler... tell me why don't you let WinXP rest in peace?

Adding the line "header=0" with this program in freearc will cause it to not work.

teusma
16-05-2025, 19:56
Why are you running lolz after oggre? There's no point.

Try it and you will see that this saves space significantly. Of course, not in all cases. but with gta san andreas radios this works.

Joe Forster/STA
17-05-2025, 01:03
tell me why don't you let WinXP rest in peace?

Because this game was released in the Windows XP era.

teusma
17-05-2025, 19:26
Because this game was released in the Windows XP era.

But as far as I know, lolz is also not compatible with Windows XP

kj911
18-05-2025, 02:51
LOLZ and XP: Partially compatible... (decompressor only.) Few case, i need EXE patching from running XP.

Unfortunately, this cannot be said about Razor. (Due to Christian's stubbornness, several people asked him to release an x86 binary in vain.) There is no 32-bit (de)compressor for it, although its memory requirement of 1.66*N (during decompression) and its limited dictionary size of 1023MB would be no problem for its use on PCs with 2.5-4GB of RAM and under 32-bit OS. It plays in the same league as DLZ in this regard. You only need x64 when packing, if the dictionary size is large.

Hint: There is an early Razor compressor, it even runs on XP, but it is not easy to compile correctly and it compresses quite well even with a 64MB fixed dictionary(?), compressing each data type to bytes exactly the same way as the RZ1.0x.x versions. The difference is 1-2%, but the unpacking code is not stable enough. (There is no multi-file or folder compression/archiver functions.)