Lacke Posted June 6, 2019 Share Posted June 6, 2019 Hello! I'm trying to give multiple custom voices pack to my custom character (one for each form he has) However, while the default form has its voice and works perfectly, I cant find a way to make the other voice pack works They are all silent. I'm not sure if I make a mistake with the name on FMOD, or if it's on the coding side (note that I did loaded them in modmain.lua) Anyone would know how to make that possible? It would really bring my mod to another level. Thanks! Link to comment Share on other sites More sharing options...
Lacke Posted June 7, 2019 Author Share Posted June 7, 2019 (edited) So I managed to make it works... but not the intended way. The custom voicepack isn't silent anymore, it was due to a litle mistake on my hand on how works the path in Remap. However... When doing that RemapSoundEvent( "dontstarve/characters/lacke", "lacke/lacke" ) RemapSoundEvent( "dontstarve/characters/lacke/talk_LP", "lacke/lacke/talk_LP" ) RemapSoundEvent( "dontstarve/characters/lacke/ghost_LP", "lacke/lacke/ghost_LP" ) RemapSoundEvent( "dontstarve/characters/lacke/hurt", "lacke/lacke/hurt" ) RemapSoundEvent( "dontstarve/characters/lacke/death_voice", "lacke/lacke/death_voice" ) RemapSoundEvent( "dontstarve/characters/lacke/emote", "lacke/lacke/emote" ) RemapSoundEvent( "dontstarve/characters/lacke/pose", "lacke/lacke/pose" ) RemapSoundEvent( "dontstarve/characters/lacke/yawn", "lacke/lacke/yawn" ) RemapSoundEvent( "dontstarve/characters/lacke", "lackevap/lackevap" ) RemapSoundEvent( "dontstarve/characters/lacke/talk_LP", "lackevap/lackevap/talk_LP" ) RemapSoundEvent( "dontstarve/characters/lacke/ghost_LP", "lackevap/lackevap/ghost_LP" ) RemapSoundEvent( "dontstarve/characters/lacke/hurt", "lackevap/lackevap/hurt" ) RemapSoundEvent( "dontstarve/characters/lacke/death_voice", "lackevap/lackevap/death_voice" ) RemapSoundEvent( "dontstarve/characters/lacke/emote", "lackevap/lackevap/emote" ) RemapSoundEvent( "dontstarve/characters/lacke/pose", "lackevap/lackevap/pose" ) RemapSoundEvent( "dontstarve/characters/lacke/yawn", "lackevap/lackevap/yawn" ) "lackevap" there overwrite the default voice "lacke" Is there a way to remap it only when the character change form? I tried inst.soundsname = "lackevap" in the prefab when changing form, but it doesn't seem to work (silent again) even when important the soundpack locally. I also can't use the RemapSoundEvent within the prefab, since it's seen as a non declared function, so I feel kinda stuck there. Anyone has an idea how to make that work? Thanks! Edited June 7, 2019 by Lacke Link to comment Share on other sites More sharing options...
Lacke Posted June 7, 2019 Author Share Posted June 7, 2019 (edited) Ok, it works now thanks to 0329 on the official Discord server. Posting the answer here so anyone with the same problem can know how to do that : You just need to remap the sounds in your chracter prefab using TheSim call whenever you want the voice to change: TheSim:RemapSoundEvent( "dontstarve/characters/<yourcharacter>", "<characternewvoice>/<characternewvoice>" ) TheSim:RemapSoundEvent( "dontstarve/characters/<yourcharacter>/talk_LP", "<characternewvoice>/<characternewvoice>/talk_LP" ) TheSim:RemapSoundEvent( "dontstarve/characters/<yourcharacter>/ghost_LP", "<characternewvoice>/<characternewvoice>/ghost_LP" ) TheSim:RemapSoundEvent( "dontstarve/characters/<yourcharacter>/hurt", "<characternewvoice>/<characternewvoice>/hurt" ) TheSim:RemapSoundEvent( "dontstarve/characters/<yourcharacter>/death_voice", "<characternewvoice>/<characternewvoice>/death_voice" ) TheSim:RemapSoundEvent( "dontstarve/characters/<yourcharacter>/emote", "<characternewvoice>/<characternewvoice>/emote" ) TheSim:RemapSoundEvent( "dontstarve/characters/<yourcharacter>/pose", "<characternewvoice>/<characternewvoice>/pose" ) TheSim:RemapSoundEvent( "dontstarve/characters/<yourcharacter>/yawn", "<characternewvoice>/<characternewvoice>/yawn" ) Edited June 7, 2019 by Lacke Link to comment 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