Results 1 to 12 of 12

Thread: Setting units to use a certain voice

  1. #1

    Default Setting units to use a certain voice

    I created a new modern unit based off the Republican Infantry unit, but they use the Matchlock Ashigaru voice. Which column do I need to edit so they use the Republican Infantry voices?

  2. #2

    Default Re: Setting units to use a certain voice

    I know this thread more than a bit old, but did you ever figure out how to get fots voices? Having the same problem now and I'm having a hard time finding an answer.
    Last edited by lasersquirrel; July 22, 2013 at 02:06 AM.

  3. #3

    Default Re: Setting units to use a certain voice

    Here's my experience with this problem working around in PFM:

    It seems that in the units_tables, under unit_description_text if you type in an ID that is not listed in the vanilla units.loc file, then the custom unit will use the "default" Shogun 2 unit voices.

    For example, if you made a custom unit called Chasseurs (Boshin_Inf_Light_Chasseurs) and added its respective entry under units_tables, you would need to set its unit_description_text to "Boshin_Inf_Elite_Infanterie_de_marine" if you wanted the unit to use FoTS' French voices. If you typed in "Boshin_Inf_Light_Chasseurs" (and it is set up in their .loc files) then the Chasseurs will use Matchlock Ashigaru voices. I am not sure if changing anything under VO_actor_numbers will do anything. This also means that you cannot have your own mouse-over unit description unless you want your custom unit to use the default Shogun 2 voices.

    Those are my discoveries so far. I haven't found a way to make a custom unit have both its own description and a custom voice, and it would appreciated if anyone else could shed more light on this problem.

    Hope that helps.
    Last edited by Breakerchase; December 26, 2013 at 12:58 PM.

  4. #4

    Default Re: Setting units to use a certain voice

    Hmmn Im experiencing the same problem. I tried your suggestion (giving the tercos pikes, the tercos unit_text_drescription), still doesn't work. So if you/anyone could elaborate on this, it would be greatly appreciated (+REP).

  5. #5
    Artifex
    Join Date
    Oct 2012
    Location
    Germany, Baden
    Posts
    1,284

    Default Re: Setting units to use a certain voice

    There are several voice entries in units and units_stats_land, but I don't know if they influence the voices. I too couldn't convince my Tercos Pikemen to speak like the Tercos Arquebusiers.
    My Mod:
    Shogun II Total Realism
    A realism mod for Shogun II, Rise of the Samurai and Fall of the Samurai

  6. #6
    Lugie's Avatar Civis
    Join Date
    Oct 2015
    Location
    Somewhere on Earth
    Posts
    124

    Default Re: Setting units to use a certain voice

    Quote Originally Posted by Breakerchase View Post
    Here's my experience with this problem working around in PFM:

    It seems that in the units_tables, under unit_description_text if you type in an ID that is not listed in the vanilla units.loc file, then the custom unit will use the "default" Shogun 2 unit voices.

    For example, if you made a custom unit called Chasseurs (Boshin_Inf_Light_Chasseurs) and added its respective entry under units_tables, you would need to set its unit_description_text to "Boshin_Inf_Elite_Infanterie_de_marine" if you wanted the unit to use FoTS' French voices. If you typed in "Boshin_Inf_Light_Chasseurs" (and it is set up in their .loc files) then the Chasseurs will use Matchlock Ashigaru voices. I am not sure if changing anything under VO_actor_numbers will do anything. This also means that you cannot have your own mouse-over unit description unless you want your custom unit to use the default Shogun 2 voices.

    Those are my discoveries so far. I haven't found a way to make a custom unit have both its own description and a custom voice, and it would appreciated if anyone else could shed more light on this problem.

    Hope that helps.
    Might be reviving a dead thread here, but you are right. I'm looking through the sound events trying to see what does this, and all I have found is this:
    Spoiler Alert, click show to read: 
    british_land_us_european_unit_voices_selected_boshin_inf_elite_royal_marines_01,boshin_voices_land_select,0,5,1,0.900000,-1.000000,1.000000,20.000000,1280.000000,0.500000,1.000000,85000.000000,0.000000,random_cycle,sfx,0.000000,1.000000,0.000000,0.000000,0.000000,0.000000,0.000000,100.000000,0.000000,0.000000,0.000000,0.000000,none,0.000000,default,0.000000,1.000000,1.000000,20.000000,0.000000,0.000000,1.000000,0.000000,0.000000,0.250000,0.000000,0.000000,20.000000,0.500000,0.200000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,english/actor_24_andrew_bicknell/boshin/foreign units/land_us_european_unit_voices_selected_boshin_inf_elite_royal_marines_01.mp3,english/actor_24_andrew_bicknell/boshin/foreign units/land_us_european_unit_voices_selected_boshin_inf_elite_royal_marines_02.mp3,english/actor_24_andrew_bicknell/boshin/foreign units/land_us_european_unit_voices_selected_boshin_inf_elite_royal_marines_03.mp3,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
    british_land_us_european_unit_voices_selected_boshin_inf_elite_royal_marines_02,boshin_voices_land_select,0,5,1,0.900000,-1.000000,1.000000,20.000000,1280.000000,0.500000,1.000000,85000.000000,0.000000,random_cycle,sfx,0.000000,1.000000,0.000000,0.000000,0.000000,0.000000,0.000000,100.000000,0.000000,0.000000,0.000000,0.000000,none,0.000000,default,0.000000,1.000000,1.000000,20.000000,0.000000,0.000000,1.000000,0.000000,0.000000,0.250000,0.000000,0.000000,20.000000,0.500000,0.200000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,english/actor_25_david_robb/boshin/foreign units/land_us_european_unit_voices_selected_boshin_inf_elite_royal_marines_01.mp3,english/actor_25_david_robb/boshin/foreign units/land_us_european_unit_voices_selected_boshin_inf_elite_royal_marines_02.mp3,english/actor_25_david_robb/boshin/foreign units/land_us_european_unit_voices_selected_boshin_inf_elite_royal_marines_03.mp3,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
    british_land_ht_european_unit_voices_selected_boshin_inf_elite_royal_marines_01,boshin_voices_land_select,0,5,1,0.900000,-1.000000,1.000000,20.000000,1280.000000,0.500000,1.000000,85000.000000,0.000000,random_cycle,sfx,0.000000,1.000000,0.000000,0.000000,0.000000,0.000000,0.000000,100.000000,0.000000,0.000000,0.000000,0.000000,none,0.000000,default,0.000000,1.000000,1.000000,20.000000,0.000000,0.000000,1.000000,0.000000,0.000000,0.250000,0.000000,0.000000,20.000000,0.500000,0.200000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,english/actor_24_andrew_bicknell/boshin/foreign units_heightened/land_ht_european_unit_voices_selected_boshin_inf_elite_royal_marines_01.mp3,english/actor_24_andrew_bicknell/boshin/foreign units_heightened/land_ht_european_unit_voices_selected_boshin_inf_elite_royal_marines_02.mp3,english/actor_24_andrew_bicknell/boshin/foreign units_heightened/land_ht_european_unit_voices_selected_boshin_inf_elite_royal_marines_03.mp3,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
    british_land_ht_european_unit_voices_selected_boshin_inf_elite_royal_marines_02,boshin_voices_land_select,0,5,1,0.900000,-1.000000,1.000000,20.000000,1280.000000,0.500000,1.000000,85000.000000,0.000000,random_cycle,sfx,0.000000,1.000000,0.000000,0.000000,0.000000,0.000000,0.000000,100.000000,0.000000,0.000000,0.000000,0.000000,none,0.000000,default,0.000000,1.000000,1.000000,20.000000,0.000000,0.000000,1.000000,0.000000,0.000000,0.250000,0.000000,0.000000,20.000000,0.500000,0.200000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,english/actor_25_david_robb/boshin/foreign units heightened/land_ht_european_unit_voices_selected_boshin_inf_elite_royal_marines_01.mp3,english/actor_25_david_robb/boshin/foreign units heightened/land_ht_european_unit_voices_selected_boshin_inf_elite_royal_marines_02.mp3,english/actor_25_david_robb/boshin/foreign units heightened/land_ht_european_unit_voices_selected_boshin_inf_elite_royal_marines_03.mp3,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
    american_land_us_european_unit_voices_selected_boshin_inf_elite_united_states_marines_01,boshin_voices_land_select,0,5,1,0.900000,-1.000000,1.000000,20.000000,1280.000000,0.500000,1.000000,85000.000000,0.000000,random_cycle,sfx,0.000000,1.000000,0.000000,0.000000,0.000000,0.000000,0.000000,100.000000,0.000000,0.000000,0.000000,0.000000,none,0.000000,default,0.000000,1.000000,1.000000,20.000000,0.000000,0.000000,1.000000,0.000000,0.000000,0.250000,0.000000,0.000000,20.000000,0.500000,0.200000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,english/actor_26_glenn_wrage/boshin/foreign units/land_us_european_unit_voices_selected_boshin_inf_elite_united_states_marines_01.mp3,english/actor_26_glenn_wrage/boshin/foreign units/land_us_european_unit_voices_selected_boshin_inf_elite_united_states_marines_02.mp3,english/actor_26_glenn_wrage/boshin/foreign units/land_us_european_unit_voices_selected_boshin_inf_elite_united_states_marines_03.mp3,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
    american_land_us_european_unit_voices_selected_boshin_inf_elite_united_states_marines_02,boshin_voices_land_select,0,5,1,0.900000,-1.000000,1.000000,20.000000,1280.000000,0.500000,1.000000,85000.000000,0.000000,random_cycle,sfx,0.000000,1.000000,0.000000,0.000000,0.000000,0.000000,0.000000,100.000000,0.000000,0.000000,0.000000,0.000000,none,0.000000,default,0.000000,1.000000,1.000000,20.000000,0.000000,0.000000,1.000000,0.000000,0.000000,0.250000,0.000000,0.000000,20.000000,0.500000,0.200000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,english/actor_27_tom_clarke_hill/boshin/foreign units/land_us_european_unit_voices_selected_boshin_inf_elite_united_states_marines_01.mp3,english/actor_27_tom_clarke_hill/boshin/foreign units/land_us_european_unit_voices_selected_boshin_inf_elite_united_states_marines_02.mp3,english/actor_27_tom_clarke_hill/boshin/foreign units/land_us_european_unit_voices_selected_boshin_inf_elite_united_states_marines_03.mp3,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
    american_land_ht_european_unit_voices_selected_boshin_inf_elite_united_states_marines_01,boshin_voices_land_select,0,5,1,0.900000,-1.000000,1.000000,20.000000,1280.000000,0.500000,1.000000,85000.000000,0.000000,random_cycle,sfx,0.000000,1.000000,0.000000,0.000000,0.000000,0.000000,0.000000,100.000000,0.000000,0.000000,0.000000,0.000000,none,0.000000,default,0.000000,1.000000,1.000000,20.000000,0.000000,0.000000,1.000000,0.000000,0.000000,0.250000,0.000000,0.000000,20.000000,0.500000,0.200000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,english/actor_26_glenn_wrage/boshin/foreign units heightened/land_ht_european_unit_voices_selected_boshin_inf_elite_united_states_marines_01.mp3,english/actor_26_glenn_wrage/boshin/foreign units heightened/land_ht_european_unit_voices_selected_boshin_inf_elite_united_states_marines_02.mp3,english/actor_26_glenn_wrage/boshin/foreign units heightened/land_ht_european_unit_voices_selected_boshin_inf_elite_united_states_marines_03.mp3,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
    american_land_ht_european_unit_voices_selected_boshin_inf_elite_united_states_marines_02,boshin_voices_land_select,0,5,1,0.900000,-1.000000,1.000000,20.000000,1280.000000,0.500000,1.000000,85000.000000,0.000000,random_cycle,sfx,0.000000,1.000000,0.000000,0.000000,0.000000,0.000000,0.000000,100.000000,0.000000,0.000000,0.000000,0.000000,none,0.000000,default,0.000000,1.000000,1.000000,20.000000,0.000000,0.000000,1.000000,0.000000,0.000000,0.250000,0.000000,0.000000,20.000000,0.500000,0.200000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,english/actor_27_tom_clarke_hill/boshin/foreign units_heightened/land_ht_european_unit_voices_selected_boshin_inf_elite_united_states_marines_01.mp3,english/actor_27_tom_clarke_hill/boshin/foreign units_heightened/land_ht_european_unit_voices_selected_boshin_inf_elite_united_states_marines_02.mp3,english/actor_27_tom_clarke_hill/boshin/foreign units_heightened/land_ht_european_unit_voices_selected_boshin_inf_elite_united_states_marines_03.mp3,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,

    (It goes on for every unit,etc.)It seems that unlike ETW and NTW, voices are not just generic/universal with a few unique lines for special units, from what I see each different voice has a completely different category.

    (note: If you browse the files, It seems FOTS was supposted to actually include Europe somewhat. (I stumbled upon old grapple animations from ETW in the files two days ago, and theres unused army voices for the factions, and voices for unused abilites like square formation that still work if you just give it to the units. Same goes for other things like models and code, but this is a sound thread! One thing that really gets my attention is {land_ht_european_infantry_unit_voices_engage_at_will_01}, this is apperently different from fire at will, maybe there was supposed to be company of heroes like AI, with attack moves or something like it?).
    Maybe someone from CA could shed some light on this baffling, bizarre, truly extraordinary anomaly.

    I bloody love it when developers forget to clean their games and leave unused things in for modders to explore and use...

    Edit: I think I've found it. I think the description is linked to some/one of the sound_banks you get when extracting using symphony. I think this is why custom descriptions default to a generic vanilla voice. Most of the lines being unknown though (symphony hasn't updated for shogun2 or above in awhile) does kind of throw a wrench into my plans.
    Last edited by Lugie; September 16, 2016 at 08:52 PM. Reason: Progress m8

  7. #7

    Default Re: Setting units to use a certain voice

    Where is that file located?

  8. #8

    Default Re: Setting units to use a certain voice

    Click image for larger version. 

Name:	soundeventsfile.png 
Views:	54 
Size:	104.2 KB 
ID:	343268

    I too will revive this thread! The file is called sound_events in the sound.pack file. I extracted it to a folder on my desktop and opened with notepad++. There was a 'nul' character between every later, which I used find and replace to get rid of. Some of the file is still garbage but I have attached a legible part, it definitely seems to be associating an audio event with its corresponding audio files. I have no idea what will happen if I try to edit it. I hope the image comes out alright... Im new here.

  9. #9
    Lugie's Avatar Civis
    Join Date
    Oct 2015
    Location
    Somewhere on Earth
    Posts
    124

    Default Re: Setting units to use a certain voice

    Quote Originally Posted by mauiaw View Post
    Click image for larger version. 

Name:	soundeventsfile.png 
Views:	54 
Size:	104.2 KB 
ID:	343268

    I too will revive this thread! The file is called sound_events in the sound.pack file. I extracted it to a folder on my desktop and opened with notepad++. There was a 'nul' character between every later, which I used find and replace to get rid of. Some of the file is still garbage but I have attached a legible part, it definitely seems to be associating an audio event with its corresponding audio files. I have no idea what will happen if I try to edit it. I hope the image comes out alright... Im new here.
    Do not edit that version of the file! First, you need to de-compress it using Symphony. You then get a editable version which you do your edits to, then re-compress for it to work properly.

  10. #10

    Default Re: Setting units to use a certain voice

    Just to revive this thread. After some time of investigating and testing things out with sounds. I managed to add new audio voices (new language). But it's a huge work to add all those lines (i am doing it piece by piece). What you need to add new language voices is: convert the sound_packed file to xml. you need to create a new unit description (been used for selecting the unit sound), add that string to the sound_events.csv. Also, you need to add all those new string add sound_events_tables and unit_voice_events_junction_tables. If you are adding completely new voice sounds, you need to add all those voices in a new category. For example, most of the infantry uses infantry_generic. I created a new category like infantry_german, for all the voice lines in german, russian and dutch (for my mod). You can always add more off course, but it's a very time consuming work. Remember to re-compile the sound folder to sound_bank_database and sound_events. I know it sounds confusing, but when i later finish the project, i will explain more in detail. But to confirm, you are able to add new languages (voice) in the game.

  11. #11

    Default Re: Setting units to use a certain voice

    Well I'm a bit late to the party but I got some of my portuguese units to at least speak like the royal marines or any other foreign unit from FotS. So english speaking tercos are at least possible. Now I'm stuck at getting the lines correct since Tercos and Royal Marines use different sound files because tercos use the land_us_european_infantry_unit_voices_generic_0X(filepath:local_en/english/ Actor 25/boshin/foreingn units) soundfiles when selected while marines have their own unique one. Since the soundfiles are conncted to the unit description I searched for them in the sound_event.xml but without success. So here's my question. How do you connect the unit description to the sound_events table?

  12. #12

    Default Re: Setting units to use a certain voice

    How did you manage to do that? I copy and paste the "Inf_Missile_Portuguese_Tercos" into de unit_description text" and the unit is silent. Totally mute.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •