Hey everyone! This is an attempt to make a more visual, step-by-step tutorial on how to edit the x_voice.zss file and add character callouts and character breaks to it (using the Zsm Editor software). I'm just following instructions from
Outsider's extremely helpful Guide to Modding (https://marvelmods.com/forum/index.php/topic,10705.0.html) and adding up my own comments and images to help depicting the process a little more.
Now, if you'd rather watch a video tutorial of this process to help you approach it from a yet new perspective, you should definitely consider this one (https://www.youtube.com/watch?v=jH5NJGJz3Pk), made by UltraMegaMagnus.
Notice that now we've got the option to do this editing procedure using another software, which has been reported to be even safer regarding the sound quality preservation achieved: the Zsnd Tool. Luckily we've got a very thorough tutorial (made by Lags) to cover that up as well. You'll find it right here (https://marvelmods.com/forum/index.php/topic,11060.msg201262.html#msg201262).
STEP 1: locate the x_voice.zss file you've been using currently to play your game (instead of using the one from the original game, I think you'll have more success if you edit an already updated x_voice file, like the one from this thread (https://marvelmods.com/forum/index.php/topic,11070.0.html)). If you're already using un updated x_voice file without the aid of the Mod Organizer 2 software, it would be found following this path:
(https://www.mediafire.com/convkey/7070/d9243w3vnstojjazg.jpg)
Now, if this is your first attempt and your game doesn't have an updated x_voice file, I strongly recommend you download one from the thread I just mentioned (as I really haven't achieved any success while trying to edit the original x_voice file).
STEP 2: copy your x_voice.zss file and paste it elsewhere so you can edit it (you can paste it at your Desktop area, for example)
STEP 3: open the Zsm Editor software (if you don't have it installed, here's the free download link (http://www.mediafire.com/file/tbqzfjob972cfz4/Uploaded_2013-09-10_ZSMsoundeditor.zip/file))
(https://www.mediafire.com/convkey/72c8/m84murcmmy07m95zg.jpg)
STEP 4: hit File > Open and choose the x_voice file you pasted on step 2. Wait for the file to load. Here's how it will look like:
(https://www.mediafire.com/convkey/4731/0iiuo2797nkicimzg.jpg)
STEP 5: since the software is very sensitive, try not to ever click on any line that already exists inside that file. Just hit the tab called "Files" and then the button "Add file" so you'll add the sound of your choice:
(https://www.mediafire.com/convkey/3cdf/v86riyhfqv24k3jzg.jpg)
Remember: the sound file you're going to add must be in .wav format, saved as PCM Uncompressed, 22050 Hz, 16-bit, Mono. (If the file's been provided by a modder or a MarvelMods admin, there's a very high chance this has been already taken care of. If you're the one converting the sound file to this format, Wavepad Sound Editor (https://www.microsoft.com/pt-br/p/wavepad-audio-editor-free/9p0kqx1z0wm2?activetab=pivot:overviewtab) would be the recommended software.)
Next up, Section 1 is for adding your character's callout sound. Section 2 is for adding your character's break sound.
Section 1: adding callouts
If you wish to add a character callout (when the hero is selected on the game's Character Selection Screen and the announcer calls out his/her name), in theory you'd be looking for a sound file named like "an_charactername.wav". After you add it, it'll appear at the end of the list of sound files, on the "Files" tab. In this example, I'm adding the file "an_banshee.wav" to the list.
(https://www.mediafire.com/convkey/dcfb/f75eilpudf0vvduzg.jpg)
To generate a Hash number for your character callout, hit F3 and an "Input text" window will pop up. On the "Text:" field, type in COMMON/MENUS/CHARACTER/AN_banshee. The end of this line will always be "AN_charactername", the "charactername" part being the actual "name" you find on your character's entry inside the heroestat.engb file. For example:
(https://www.mediafire.com/convkey/48b2/1nclwgc7grlf0qtzg.jpg)
(in the example above, the line would be COMMON/MENUS/CHARACTER/AN_drstrange)
After you typed in that line, hit the "Convert" button right next to it.
(https://www.mediafire.com/convkey/b1b1/wndbrnis6mt1uwjzg.jpg)
Copy the number it will be generated on the "Result" area, hit the "Close" button and go back to the "Files" tab where you added Banshee's wav file.
(https://www.mediafire.com/convkey/bba6/6cffshjcqpx4mamzg.jpg)
Go to the line where your new sound is at, click inside the "Hash" field until it becomes highlighted/editable and paste the number you've copied on the previous step. Then click just one time on any area of your sound line, just to leave the Hash field. Pay attention to this Hash number and also to your sound's ID number (it's the first column, on the left), for we'll use them next.
(https://www.mediafire.com/convkey/0fcb/itcc799puep22lzzg.jpg)
Now go to the "Events" tab:
(https://www.mediafire.com/convkey/cc49/h20zsxbypq4l1slzg.jpg)
Type in your new sound's Hash number inside the "Event" field, its ID inside the "ID" field (delete any zeros that might still appear), and "31" inside the "Data" field. Then hit the "Add" button.
(https://www.mediafire.com/convkey/8a97/87mmy894npraeu6zg.jpg)
If successfully added, your character callout entry will look like this at the end of the events list:
(https://www.mediafire.com/convkey/e066/d8nozt0mzhnmvtuzg.jpg)
Then finally, go to the "File" main menu and click on "Save".
(https://www.mediafire.com/convkey/92b2/tpg0qaoch5p3m3tzg.jpg)
Save the x_voice file as a .zss file. Overwrite the file you were working at.
(https://www.mediafire.com/convkey/db3c/avqza34g2vx7na3zg.jpg)
Choose the "PC" format when the next window appear. Hit the "Ok" button when the software tells you the file was saved successfully. Exit the Zsm Editor software. Copy your new x_voice file and paste it inside the game's proper sound folder so it's replaced and updated.
(https://www.mediafire.com/convkey/7070/d9243w3vnstojjazg.jpg)
Section 2: adding breaks
Now, if you wish to add a "break line" (that's when your character would say something before leaving the Character Selection Screen and entering the stage), you have to edit this same x_voice.zss file using the Zsm Editor software, so go back to the begining of this tutoturial and follow steps 1-5 all over again, then come back here. The sound file you'll be looking for to add as a break line would have a name like "break_charactername.wav" or something like that. In this example, we'll use Banshee one more time, so here is how is going to look when you add his break sound file to the Files tab:
(https://www.mediafire.com/convkey/247f/j7k6sfw5j66oubgzg.jpg)
To generate an event/hash number for your character break, hit F3 and an "Input text" window will pop up. On the "Text:" field, type in COMMON/MENUS/CHARACTER/BREAK_banshee. The end of this line will always be "BREAK_charactername", the "charactername" part being the actual "name" you find on your character's entry inside the heroestat.engb file. For example:
(https://www.mediafire.com/convkey/48b2/1nclwgc7grlf0qtzg.jpg)
(in the example above, the line would be COMMON/MENUS/CHARACTER/BREAK_drstrange)
After you typed in that line, hit the "Convert" button right next to it.
(https://www.mediafire.com/convkey/1761/71x95xy4qwbv0g0zg.jpg)
Copy the number that will come out at the "Result" field, hit the "Close" button and go back to the "Files" tab where you added Banshee's wav file. Replace the Hash number of its line by clicking inside it until it becomes highlighted/editable and pasting the Hash number you've copied in its place. Pay attention to this Hash number and its ID since we'll use both of them next.
(https://www.mediafire.com/convkey/4ff6/wgzhri6y3ahofb7zg.jpg)
Now go to the "Events" tab:
(https://www.mediafire.com/convkey/cc49/h20zsxbypq4l1slzg.jpg)
Paste the Hash number in the "Event:" blank field, the ID number inside the "ID:" blank field (deleting any zeros that might still appear) and type in "255" inside the "Data:" blank field. Hit the "Add" button. After that, your new break sound should appear at the end of the list like this:
(https://www.mediafire.com/convkey/c783/23ddmdm2jkm3xn5zg.jpg)
Then finally, go to the "File" main menu and click on "Save".
(https://www.mediafire.com/convkey/92b2/tpg0qaoch5p3m3tzg.jpg)
Save the x_voice file as a .zss file. Overwrite the file you were working at.
(https://www.mediafire.com/convkey/db3c/avqza34g2vx7na3zg.jpg)
Choose the "PC" format when the next window appear. Hit the "Ok" button when the software tells you the file was saved successfully. Exit the Zsm Editor software. Copy your new x_voice file and paste it inside the game's proper sound folder so it's replaced and updated.
(https://www.mediafire.com/convkey/7070/d9243w3vnstojjazg.jpg)
Ant that's it! Do let me know if any questions come up.
It might be cool to include steps on how to do this with nikita488's new ZSND program that he released on the Discord
Thanks for confirming this.
I don't think we need to worry about the other part. In zsm-editor you can select this part from the drop-down menu, and in Zsnd, you can copy/paste it from another callout/break hash.
I agree as well as this is an excellent tutorial. I have placed a link to this in my modding guide (in the sounds lesson) in case people would like a more visual tutorial. Well done.