Sound Injection

Discuss Halo 2 modding, progress on figuring things out, mapfiles...you know the drill. Cheating discussion not allowed.
Locked
J Unit 0524





Posts: 7
Joined: Thu Oct 14, 2004 2:31 pm

Sound Injection

Post by J Unit 0524 »

Well iv had multiple attempts at sound injection all with ADI, Swamp told me that ADI is capable of injecting sounds. Heres some stuff from Iron Forges white paper

[quote]In each sound meta, there is an index and chunk count that references a block in the fifth reflexive in the coconuts object. This block has another index and chunk count, referencing the sixth reflexive in the coconuts object. These chunks reference
mrhyperpenguin




Revivalist Miner Wordewatician 250

Posts: 357
Joined: Sun Mar 07, 2004 4:34 pm

Post by mrhyperpenguin »

ive figured how to get from the sound meta to the raw data with the data above. which means adding sounds might be possible but i doubt it, if tjc2k4 couldnt get it i doubt it can, but i'll take a shot. but injection comes before adding them
Image
devguy





Posts: 28
Joined: Fri Jan 21, 2005 6:14 pm

Post by devguy »

J-unit, you ran into the exact same problems that I did while trying to figure this out.

There is some thread here about some guy who successfully added sounds to a map. He changed the meta file to make it think that the file was a wma, then he added a new wma to the end of the map file, and linked the meta to it.

Trying myself, I was able to make the meta think it was a wma, but I tryed several times to hex in a new audio file, but it always corrupted the map...

I have PMed the guy who supposedly "figured it out", but no response.
J Unit 0524





Posts: 7
Joined: Thu Oct 14, 2004 2:31 pm

Post by J Unit 0524 »

well i heard u can hex the meta of the snd tag to be the third type (WMA) and easily inject a new wma format over it using ADI withouht having to add and relink
devguy





Posts: 28
Joined: Fri Jan 21, 2005 6:14 pm

Post by devguy »

J Unit 0524 wrote:well i heard u can hex the meta of the snd tag to be the third type (WMA) and easily inject a new wma format over it using ADI withouht having to add and relink
That is another thing I've tried. I brought in one after hexing the meta and then tried to "preview", as well as extract it after injecting it, and the thing is corrupted. (I used a file that was hexed to the EXACT same size as the original).

Come to think of it though, I didn't actually try it in Halo 2 after doing that... It seemed screwed in ADI, but maybe it will play properly. Will try tommorow.

Edit: Okay, I tried converting byte 0x04 to 03 to make it look for a WMA, then I used ADI to inject a WMA that was smaller in file size than the Xbox ADPCM WAV file already in there. I tried it, and made it a dependency of a ghost lsnd, but the sound never played when I got into it...
Locked