[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_content.php on line 1014: Undefined array key 3
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4130: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3009)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4130: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3009)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4130: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3009)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4130: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3009)
Mac Gaming Mods • [TUT] How to edit sounds | requires a hex editor though
Page 1 of 1

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

Posted: Sun Sep 27, 2009 3:18 pm
by 002
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.

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

Posted: Sun Sep 27, 2009 4:44 pm
by Løki
Impressive!

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

Posted: Sun Sep 27, 2009 4:55 pm
by Modzy
Лøки 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

Posted: Mon Sep 28, 2009 3:51 am
by Fonzeh
Cool, so how do we fix the song length?

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