Sniper Elite 4(*.asr)

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
rkthelegend
Posts: 56
Joined: Wed Jun 20, 2018 7:57 pm

Re: Sniper Elite 4(*.asr)

Post by rkthelegend »

aluigi wrote:Yeah, doesn't work because the archive is compressed so it's first necessary to decompress it to a temporary file and then extracting it, something that invalidates the reimporting.
Basically would be necessary to split the script in two parts: decompressor and extractor, but probably there will be problems too because the compression uses chunks.
I don't know what else to suggest you, just recently there was a topic of another user regarding a game using the Asura engine and he used another solution:
https://zenhax.com/viewtopic.php?f=13&t=3986
https://zenhax.com/viewtopic.php?t=4110


Hey mr aluigi i have a question regarding asura.bms

The asura.bms works great withe sniper elite v2. Nazi zombie army 2. And sniper elite 3 but for sniper elite 4. It only extract not reimport.

I have decompressed the gameguicommon.asr with this argument :-0 -T but the the decompressed .asr file is un extractable with qbms.
Any idea. Or can you update the script for sniper elite 4 ???
I'm waiting...
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Sniper Elite 4(*.asr)

Post by aluigi »

rkthelegend
Posts: 56
Joined: Wed Jun 20, 2018 7:57 pm

Re: Sniper Elite 4(*.asr)

Post by rkthelegend »

happyend wrote:use http://aluigi.altervista.org/bms/asura.bms the script doesn't working

Samples:
http://www6.zippyshare.com/v/OnLqfe7E/file.html

I'm using the latest bms script and latest quickbms version once i extract the texture i cant preview them specially the .dds format. Any help??
Please update the script.

thanks!!!
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Sniper Elite 4(*.asr)

Post by aluigi »

Why are you quoting random posts?
The script works perfectly.
If you have problems in reimporting you have to find other solutions, as I have already explained in the post I linked.
Hope now it's all clear.
tovervierkant
Posts: 1
Joined: Mon Sep 03, 2018 4:43 pm

Re: Sniper Elite 4(*.asr)

Post by tovervierkant »

Is there a way to extract one of the .asr sound files to a sound format such as .wav, .mp3, .flac, ... ?
Eugeny
Posts: 2
Joined: Wed Mar 07, 2018 1:27 pm

Re: Sniper Elite 4(*.asr)

Post by Eugeny »

Textures after extraction is damaged
Tosyk
Posts: 81
Joined: Mon Aug 11, 2014 6:37 am

Re: Sniper Elite 4(*.asr)

Post by Tosyk »

Eugeny wrote:Textures after extraction is damaged
it's just dx10!
rkthelegend
Posts: 56
Joined: Wed Jun 20, 2018 7:57 pm

Re: Sniper Elite 4(*.asr)

Post by rkthelegend »

Eugeny wrote:Textures after extraction is damaged

You can use Intel Texture work Plug in For Photoshop to open SE4 Texture files.
They are not DXT1 or DXt5 yea They are DX10.
XEN
Posts: 1
Joined: Tue Mar 31, 2020 9:05 pm

Re: Sniper Elite 4(*.asr)

Post by XEN »

Sorry for necro, but I can't find much on this. I'm trying to remove heartbeat sounds from when in zoomed scope view, as these sounds make the game somewhat unplayable for me due to the discomfort it gives me.

I've tried following this guide, which is for Sniper Elite V2, but offzip didn't output anything. The GmSnd.asr is compressed, so I need to try to decompress it to be able to edit it in HxD. What I've done so far:

1. Obtained asura.bms and QuickBMS
2. Create shortcut to quickbms.exe, adding -0 -T to the end of the target ( "\Sniper Elite 4\Sounds\quickbms.exe" -0 -T ), then open the shortcut
3. Select asura.bms, choose GmSnd.asr, and output folder
4. I then get 'TEMPORARY_FILE', an uncompressed version of the Sniper Elite 4 Game Sounds file, able to be edited in hex editor
5. Opened it in HxD and searched for "heartbeat"
6. Find the "data" text positioned shortly after each hud_scope_heartbeat, then select the first 4 bytes immediately after "data" to get the wave data size
7. I then select and zero out all of those bytes in the wave data, all the way up to just before the "smpl" header at the end of the wave data

But this doesn't work, as the game hangs on the opening load screen. I tried with the unedited decompressed 'TEMPORARY_FILE' renamed to GmSnd.asr, but the game still will not fully load up either. I guess SE4 can't work with an uncompressed GmSnd.asr.

So I then tried to run the reimport.bat of QuickBMS, using asura.bms again, but there is no file being output. Anyone else have any tips on how I can remove this sound?

Edit: I tried again with an unedited decompressed GmSnd.asr, and the game will now load, but the sounds are very odd. Echoing, missing a lot of sounds. It's clearly not loading the GmSnd.asr, because the game sounds the same like this if I delete the file altogether. So it seems the file may need to be recompressed in order to load? Where I'm struggling is to recompress this edited 'TEMPORARY_FILE' into a loadable GmSnd.asr.

If this is not possible, is there any other way to remove this annoying heartbeat sound??
AnTul
Posts: 1
Joined: Sat Nov 26, 2022 8:58 am

Re: Sniper Elite 4(*.asr)

Post by AnTul »

XEN wrote:...
2. Create shortcut to quickbms.exe, adding -0 -T to the end of the target ( "\Sniper Elite 4\Sounds\quickbms.exe" -0 -T ), then open the shortcut
...
If this is not possible, is there any other way to remove this annoying heartbeat sound??
1) unpack GmSnd.asr file without "-0"
( ..\Sniper Elite 4\Sounds\quickbms.exe" -T )
You'll get:
- "FNFO_chunk" folder
- "sounds" folder
- container TEMPORARY_FILE

2) remove TEMPORARY_FILE and FNFO_chunk
3) edit the necessary files in the "sounds" folder but do not delete anything in it,
4) create a folder GmSnd.asr and transfer your edited "sounds" folder there
5) go to the ..\SteamLibrary\steamapps\common\Sniper Elite 4\Sounds folder and rename the GmSnd.asr file to GmSnd.asr.bak
and copy here your created folder GmSnd.asr with edited sounds.
6) play the game.