Hoodied Posted June 5, 2019 Share Posted June 5, 2019 Hello! So im working on a mod where the character speaks with a custom voice. Problem is, When im in game, My character is completely mute (It doesnt crash at all either, Everything's fine other than this) Heres the link to the Modmain.lua file: https://www.dropbox.com/s/4ixkdzfkp9ch5v4/modmain.lua?dl=0 Pretty sure that it is 100 percent due to my bad coding skills, and partially due to the fact the tutorials I've been following haven't exactly been clear about what goes where. If anyone has the time to look over my coding I will be really appreciative! Thank you Link to comment https://forums.kleientertainment.com/forums/topic/107145-modding-help-custom-sounds-are-mute/ Share on other sites More sharing options...
K1NGT1GER609 Posted June 6, 2019 Share Posted June 6, 2019 Looking over the modmain code theres one piece of code missing: GLOBAL.characterprefab_voice = GetModConfigData("hoodied_voice") I'm assuming the file pathing is correct as I can't confirm it without the fsb and fev files. Or see if you have the following code in the character.lua file in the common_postinit: inst.soundsname = "hoodied" Link to comment https://forums.kleientertainment.com/forums/topic/107145-modding-help-custom-sounds-are-mute/#findComment-1205975 Share on other sites More sharing options...
Hoodied Posted June 7, 2019 Author Share Posted June 7, 2019 (edited) 18 hours ago, K1NGT1GER609 said: I'm assuming the file pathing is correct as I can't confirm it without the fsb and fev files. Or see if you have the following code in the character.lua file in the common_postinit: I've followed the FSB, and FEV files to a T, So i dont think its that. I also had no idea the GLOBAL.characterprefab line even existed. i'll update it to see if it works. 18 hours ago, K1NGT1GER609 said: GLOBAL.characterprefab_voice = GetModConfigData("hoodied_voice") Oh, and where abouts does this line go btw? Edited June 7, 2019 by Hoodied Link to comment https://forums.kleientertainment.com/forums/topic/107145-modding-help-custom-sounds-are-mute/#findComment-1206431 Share on other sites More sharing options...
K1NGT1GER609 Posted June 9, 2019 Share Posted June 9, 2019 Anywhere after the RemapSoundEvent code. Link to comment https://forums.kleientertainment.com/forums/topic/107145-modding-help-custom-sounds-are-mute/#findComment-1207365 Share on other sites More sharing options...
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