Log in

View Full Version : Sound Editing: Events.dat -A Possible Clue?



sleighr
12-13-2004, 03:51
I've been doing a little investigating into the unit sound files and I think I may have found the key to assigning sounds to new units.

The secret, I believe, is the events.dat file in the data/sounds folder.

Opening the other DAT files in the Sound folder with WordPad seems to be a lost cause; either the files are too big for the program or just untranslatable, and looking through them with a hex editor gave up nothing useful.

However, in the events.dat file you have a complete listing of every original unit in the game and every sound assigned to them!

Unfortunately, I have very little knowledge of editing hex code, but it seems to me to be a simple cut-and-paste job to add new units using existing sounds, and maybe even adding new sounds by removing/renaming the events.idx file (like you do with the music.idx, which causes the game to look for the file and is useful for adding or removing music from the game's playlist) and just modifying the DAT file.

The only thing keeping me from experimenting with this is the fact I don't know where each file begins and ends in the hex editor. In WordPad it's obvious, but you can't cut and paste in it.


Is there anyone here who can help me confirm my suspicions? :book:

Vercingetorix
12-13-2004, 06:10
If you delete this file you can then add new sounds through the descr_sounds* files.

sleighr
12-13-2004, 07:44
Geez, that simple huh?

And to think how much time I wasted going through these files. *smack*

'Preciate it, Vercingetorix. Thank you. ~:cheers:


sleighr's history du jour

Numidian camel-riding units are innaccurate due to the fact that camels had not been introduced to west North Africa at that time.

Hans Kloss
12-16-2004, 17:40
Is there anyway of editing/adding in-game sounds with unit names or using existing ones for newly created units.I have created Roman Horse Archers units but I would like to link it with "horse archers" sound files for this unit in the battle.