View unanswered posts | View active topics It is currently Tue Sep 02, 2014 3:43 pm



Reply to topic  [ 4 posts ] 
 [TUT] How to edit sounds | requires a hex editor though 
Author Message
Ranger
User avatar

Joined: Wed Aug 16, 2006 5:48 pm
Posts: 874
Location: AFK
Post [TUT] How to edit sounds | requires a hex editor though
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.


Sun Sep 27, 2009 3:18 pm
Profile
Ranger
User avatar

Joined: Thu Dec 20, 2007 2:53 pm
Posts: 1230
Location: 0x4D610000
Post Re: [TUT] How to edit sounds | requires a hex editor though
Impressive!

_________________
Image


Sun Sep 27, 2009 4:44 pm
Profile YIM
Pearl Dev
User avatar

Joined: Fri Feb 22, 2008 11:06 pm
Posts: 3048
Location: Not having time to do anything.
Post Re: [TUT] How to edit sounds | requires a hex editor though
Лøки wrote:
Impressive!


Not really.

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


Sun Sep 27, 2009 4:55 pm
Profile
Ranger
User avatar

Joined: Tue Oct 16, 2007 3:57 am
Posts: 1871
Location: "I didn't just take your mom out to dinner. I ate your mom for dinner."
Post Re: [TUT] How to edit sounds | requires a hex editor though
Cool, so how do we fix the song length?

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

_________________
G[v]N wrote:
HUGE NOTIFICATION
THIS GRAVY HAS BRAINS

Mota-Lev was here 30/4/2010@2:18pm
Image


Mon Sep 28, 2009 3:51 am
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 4 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
PPowered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.