Mod The Sims
Page 2 of 6

Mod The Sims (https://modthesims.info/index.php)
-   Modding Discussion (https://modthesims.info/forumdisplay.php?f=547)
-   -   How to decode sims 3 audio (https://modthesims.info/showthread.php?t=418050)

lenglel 23rd Jan 2011 5:45 AM

I only tested with XP, and only with mp3 files. As for reviving an old thread,
it makes more sense to me to have all the q&a on one thread, rather than
scattered across the board. I subscribe to this thread, but only skim the
new messages.

Think I'll have a look. What resource did you start with from which file?

Infernus Animositas 2nd Feb 2011 4:06 PM

I'm trying to convert all of the .snr files to .wav

Can someone write a batch script to use with FFmpeg at all?

lenglel 2nd Feb 2011 7:10 PM

I'm working on a program to do that, since I've got a folder full of files courtesy of s3pe.
I think it'll take me about a week. I have to figure out how to chain the codecs from my
c++ ui program.

...two weeks later: I still haven't started on this, maybe tomorrow.

Infernus Animositas 23rd Mar 2011 5:02 AM

Any progress on the tool?

nodavidno 23rd Mar 2011 3:49 PM

I have created a tool to easily decode The Sims 3 Sound Files, its on my website www.thesimswebsite.co.uk

treeag 23rd Mar 2011 4:05 PM

Quote: Originally posted by nodavidno
I have created a tool to easily decode The Sims 3 Sound Files, its on my website www.thesimswebsite.co.uk


Thank you Is there a non-installer version?

nodavidno 23rd Mar 2011 4:09 PM

I can whip one up quickly, give me 10mins!

nodavidno 23rd Mar 2011 4:15 PM

Done, available on the same page. Just make sure the .exe is in the same place as the 'Resources' Folder.

treeag 23rd Mar 2011 4:55 PM

Thank you! Will play around with it in a little bit.

lenglel 26th May 2011 7:08 AM

Okay, I've decoded snr files with id 5 (mp3) using ealayer3, but have yet to
encode one for use as a sound effect in game.

I'm using ealayer3.exe" -E %1 -o %1.snr in the batch file in attempting to encode
a file decoded with ealayer3, and I get an empty output file. Is anyone else working
on this?

cmomoney 30th May 2011 5:37 PM

Quote: Originally posted by lenglel
I'm using ealayer3.exe" -E %1 -o %1.snr in the batch file in attempting to encode
a file decoded with ealayer3, and I get an empty output file.


When you say empty, do you mean 0 bytes?

lenglel 30th May 2011 8:13 PM

Yup, zero bytes. I replaced the games theme music (too pushy) and now I want to
add sound effects to use as events in custom animations.

MaNia-C 30th May 2011 8:44 PM

How did you replace the theme? I can decode the music out but cannot convert from mp3 to snr-sns. How can we actually replace the game music?

lenglel 31st May 2011 11:17 AM

see message #11 of this thread. strictly for sns resources, though.
I'm trying to figure out how to do the same with snr. I got the source
for ealayer3, but can't get it to compile

MaNia-C 31st May 2011 12:03 PM

I checked your post. Thanks for your help but now I seem to have a problem with the game crashing when the replaced audio is about to play. I made a new package with the same numbers but do I have to create the other small _AUD and AUDT files in that package too? Is that what I'm missing? It's confusing

lenglel 31st May 2011 1:52 PM

no, you only need one aud file in your default replacement package.
did you make sure your bitrate is correct? It should be fixed rate
128bps or lower, but not variable rate under any circumstances.

MaNia-C 31st May 2011 2:27 PM

The bitrate is 128kbps, Type,Group,Instance.. etc are all the same. But it does crash every time.

MaNia-C 31st May 2011 9:55 PM

I can't seem to replace it and I really want to play The Sims 1 soundtracks the Sims 3. Can anyone make a package for me with The Sims Buy/build/neighborhood music? Coz I'm really out of ideas now.

lenglel 1st Jun 2011 7:56 AM

You loaded both tracks in audacity and saved the new one over the original?

MaNia-C 1st Jun 2011 6:03 PM

Yes I did. The name and everything are the same like it should be. I can convert the replaced music to mp3 and listen to it too. So it looks correct.

Amik 4th Jun 2011 2:37 AM

So I have worked out a way to add music to an existing station, instead of just replacing the existing songs. The problem is, I'm fairly certain it requires generating BOTH the .sns and the .snr file, otherwise the game will crash shortly after starting to play the song. Obviously, the .sns is encoded from an mp3 using ealayer3.exe, but is it possible to also generate the accompanying .snr?

I can confirm that it is something directly related to the .snr file, because the game did not crash when I simply renamed a song that I extracted from FullBuild1.package and re-added it to the playlist. Specifically, it's the 3 bytes that are in bold, as those are the ONLY 3 bytes that vary between SNR files.

Code:
05 04 AC 44 40 64 DF A8


Can anybody shed some light into what these 3 bytes signify? Once I can get past this last barrier, I'll be more than happy to do a full write-up of how to add new music to existing stations (and probably even write a program to do so).

Thanks.

MaNia-C 7th Jun 2011 2:12 PM

Can somebody send me a sample package file changing a game song? Maybe I should check it out to see my mistake if that works.

lenglel 7th Jun 2011 11:49 PM

I don't think so. They're big and bulky, and tend to contain copyrighted material. sorry

ChaosMageX 17th Jul 2011 7:40 PM

TESTERS WANTED: s3pi AUDT 0x8070223D wrapper
 
1 Attachment(s)
Hello. For those of you researching in-game sounds and music, you'll be happy to know that I built a s3pi extension to process the Audio Tuner resources, AUDT 0x8070223D, by following the schema given on the wiki: http://simswiki.info/wiki.php?title=Sims_3:0x8070223D

Attached to this post is a zip file containing the DLL plugin. All you have to do is put the DLL next to the S3PE executable in order to use it in S3PE to examine and modify the Audio Tuners. Please test it for me and let me know what you think of it.

I've also included the source code for the wrapper in case anyone wants to try to improve it, or in case any errors show up.

For those who don't know, the Audio Tuner resources are the ones that are usually called from the game scripts to play sounds, by functions including Sims3.SimIFace.Audio.StartSound("sting_sound_name_unhashed").

Also, all the modders here need to get their hands on the Gothique Library's Book of Spells from The Sims 3 Store. It actually contains its own AUD 0x01A527DB and AUDT 0x8070223D resources, along with its own S3SA, JAZZ, CLIP, and even SWB resources, so it could possibly be used as a way of testing them. I also think it's the first time the EAxoids have put such a complex object in the store.

Shimrod101 20th Jul 2011 12:22 AM

The AUDT Wrapper works fine. I've successfully removed all the UI mouse-click sounds with it, so my UI is silent. There are several AUDTs that I've found that cannot be read, these are ambience sounds of some kind. There are 9 of these titled amb_birds_allday, etc., and the ambiencemanager, base_ambience; one titled modifiers and some others titled layer_blahblah.

I'm wondering if you know what all the info means when looking at these. The Entry Type choices: AUD, or UNK2 or 3, or Bool, what are these doing or referring to? And the RepCode and RepSize? Is there info posted somewhere which defines and explains all these, or possibly info from the Sims2 which would apply to some extent?


All times are GMT +1. The time now is 4:24 PM.
Page 2 of 6

Powered by: vBulletin Version 3.0.14 · Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.