[TUT] How to edit sounds | requires a hex editor though

Post a reply


This question is a means of preventing automated form submissions by spambots.
Smilies
:D :) :( :o :shock: :? 8) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :!: :?: :idea: :arrow: :| :mrgreen: ----) \ :) / .````:) ?? :( 0) B) O_)
View more smilies

BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: [TUT] How to edit sounds | requires a hex editor though

Re: [TUT] How to edit sounds | requires a hex editor though

Post by Fonzeh » Mon Sep 28, 2009 3:51 am

Cool, so how do we fix the song length?

Ooohh.... right.... >>

Re: [TUT] How to edit sounds | requires a hex editor though

Post by Modzy » Sun Sep 27, 2009 4:55 pm

Лøки wrote:Impressive!


Not really.

By-the-way: EOF works better for this kind of stuff.

Re: [TUT] How to edit sounds | requires a hex editor though

Post by Løki » Sun Sep 27, 2009 4:44 pm

Impressive!

[TUT] How to edit sounds | requires a hex editor though

Post by 002 » Sun Sep 27, 2009 3:18 pm

Back up your SOUNDS.map

Extracting Sounds:

Requires: Sounds.map, Eschaton 0.8 or better, and an app that reads ogg vorbis files (for oggs) and WAV files (for WAV's).

Open a bloodgulch with Eschaton.
Go to a sound (example: a dialog such as "red team has the flag")
Image
Select a permutation and then click on "Export Permutation".
Open it in any app that can read ogg vorbis files (if it was ogg)/WAV files (if it was WAV).
____
Injecting:
Requires: An app that exports in ogg/wav, Eschaton 0.8 or better, Sounds.map, and a Hex Editor (I'll be using Hex Fiend but it should work for all).

Note: Eschaton 0.8 cannot currently inject sounds from raw files into a sounds.map so this is why you need a hex editor. If you don't like hex editors, either deal with it or wait until an app for this comes out.

Open a bloodgulch with Eschaton.
Go to a sound (example: a dialog that says "red team has the flag")
Image
Note the data size and the raw offset. Keep this window open for a reference.
Image

Export a sound Make sure it's smaller than "Data Size" in eschaton. If it is not smaller, export it with lowest settings; if it still is not, shorten the time of it and export it with lowest settings.
It should be smaller now. Let's open it in a hex editor.
While we do that, open sounds.map in the hex editor.
In the sounds.map window, go to your raw offset. Mine happens to be 0xC40B85. Yours may be a bit different. That doesn't matter. Just go to wherever your raw offset is.
From there, select the same amount of bytes as your Data Size. Mine is 0x4529 so I'll select that much. Yours may be different, that still doesn't matter. Just select the amount of your data size.

____
For WAV files: Remove the first 0x30 bytes (the header). You don't need to do this for .ogg files.
Image
____

Go to your custom sound.
Your file is smaller than the data size. Keep adding 0E's until it's exactly the same size as the data size mentioned on Eschaton.
Copy and paste it over the selected data in your sounds.map file.
Save.

Your sounds.map files size shouldn't have changed. If you did, you need to start over from a new sounds.map.

Top