ClassicRockJedi Posted February 17, 2016 Share Posted February 17, 2016 I was wondering, is it possible to add sounds (of any kind) to an NPC? My only assumption is to open assets1 (or 2, or 3).pk3, go to the sounds directory, and place them there, go into NPCTool, and edit them there? Reason being, I found a SpongeBob Multiplayer Model (creator is unknown), and I managed to make an NPC, with about 40% of the supplied sounds intact (jump, gasp, and death1 are the only ones I found to be present), and I'd like to get all of the sounds to be present (taunt, death2 (and death3), drown, etc.).Could a modding noob get some much-appreciated help from the pros ^-^? Thanks to anyone in advance. Link to comment
Circa Posted February 17, 2016 Share Posted February 17, 2016 Never ever edit the asset files! Those are required for the game to run and you never want to risk screwing it up, or else you'll have to reinstall. Any mod that you make should be it's own pk3, or in this case, edit the Spongebob pk3. For NPC help, check out this tutorial for the basics, since you just used NPC tool, this may explain things for you so you understand (I recommend staying away from NPC Tool, its simple enough without a tool) [sharedmedia=tutorials:tutorials:146] With that said, the sounds go in the sounds/chars/ folder. So in the pk3, if there isn't a sounds folder, create one in the same location as it should be in the assets. You just need to line up the folders with the ones in the assets. Link to comment
ClassicRockJedi Posted February 17, 2016 Author Share Posted February 17, 2016 @@Circa Unfortunately, I've already tried your idea; the sounds didn't come through (My diagram goes like this, as viewed in PakScape: sounds/char/spongebob/misc/[files]).And yeah, I actually didn't feel comfortable doing my idea in the first place: I never mess with core files. I have learned, thanks to your supplied guide, how to make NPCs on my own now, however! Circa likes this Link to comment
Circa Posted February 17, 2016 Share Posted February 17, 2016 Well, the sound files themselves need to be have specific names, like the ones in the assets. For example, pain75.mp3 plays when the player or NPC reaches 75% health. jump1.mp3 is the sound when the NPC or player jumps. So on and so forth. They also need to be in 44.1 khz, mono, and either mp3 or wav. Link to comment
ClassicRockJedi Posted February 17, 2016 Author Share Posted February 17, 2016 @@Circa They have the names you've listed, so, that can't be the problem. They're also .wav format, but I don't know how to check if they're 44.1 khz or in mono. Link to comment
Circa Posted February 17, 2016 Share Posted February 17, 2016 @@Circa They have the names you've listed, so, that can't be the problem. They're also .wav format, but I don't know how to check if they're 44.1 khz or in mono.Do you get any errors in-game when you try to use the model? Either as the player or as an NPC? Link to comment
ClassicRockJedi Posted February 17, 2016 Author Share Posted February 17, 2016 @@Circa Only that I can't hear the taunt or pain sounds, I haven't tested the drown sounds, the fall sounds, and the rest of the death sounds. Link to comment
Circa Posted February 17, 2016 Share Posted February 17, 2016 Well if they weren't in the right format or sample rate, it would give you an error. The easiest way to check sample rate and format and all that is to download Audacity, open the file, and it should show at the bottom left what the rate is. And then on the left of the track itself will tell you if it's mono or stereo. You'd be able to tell if it was stereo if it has 2 tracks, rather than one. But I don't think that's the issue, since there's no error. Post your pk3 and I'll take a look. Link to comment
ClassicRockJedi Posted February 17, 2016 Author Share Posted February 17, 2016 @@Circa: Here's the .pk3: https://drive.google.com/file/d/0B5pamTq3nHT8cGRvdDY4S0tuY28/view?usp=sharingIf this link is unviewable, tell me. I'll try to upload it on here, if possible (Google Drive is the only file-sharing host I have an account for).I'm going to have to respond tomorrow, so please notify me as soon as possible. Thank you! Link to comment
Circa Posted February 17, 2016 Share Posted February 17, 2016 @@Circa: Here's the .pk3: https://drive.google.com/file/d/0B5pamTq3nHT8cGRvdDY4S0tuY28/view?usp=sharing If this link is unviewable, tell me. I'll try to upload it on here, if possible (Google Drive is the only file-sharing host I have an account for). I'm going to have to respond tomorrow, so please notify me as soon as possible. Thank you! Okay, so the files are WAV which should be fine, BUT the pain sounds all have a _1 at the end of them. They should just be pain25, pain50, pain75, pain100. And then for the taunt, it works fine in MP, but in SP you probably need 3 taunts for it to work properly. I just tried duplicating the taunt you have there 3 times, and then renaming them to taunt1.wav, taunt2.wav, taunt3.wav. After that it should work. If not, the taunts may need to be mp3s. ClassicRockJedi likes this Link to comment
ClassicRockJedi Posted February 17, 2016 Author Share Posted February 17, 2016 @@Circa THANK YOU SO MUCH! IT WORKS NOW. I used the "taunt" command, and what do you know? The sound came through! I killed 3 different NPCs: every single death sound played (one for each individual death, but death3 is a repeat of death1). Thanks for the help! Circa likes this Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now