全面战争:幕府将军2

全面战争:幕府将军2

Portuguese units voice workaround [english voicelines] (optional)
56 条留言
Snedeck 6 月 18 日 下午 5:42 
Ah I see, this is very good information, thank you for responding man, yeah after further testing artys and cavalry units only respond when u click them not the skills or other commands
RavenBuster  [作者] 6 月 18 日 下午 1:18 
The amusing thing is that the same voice actor voices the Royal Marines and Tercos and both units share most of their voice lines. You're free to do whatever you want with the provided information (that's more or less the point of this mod).To be honest I didn't come up with the idea all on my own. I did find a old TW Center forum where this solution was already mentioned a decade ago. Additionally, Raresh2508 also told me that leaving out the "Boshin_" part of all the foreign units (i.e. "Inf_Elite_Royal_Marines" instead of "Boshin_Inf_Elite_Royal_Marines") for the description text also makes the units speak in generic voice lines just with the related accent. Both solutions work flawlessly for foot troops/infantry but neither work for all other unit types with the notable exception that my way at least allows for voices when selecting Terco Cavalry for example but forget about any move or attack voiceover.
Snedeck 6 月 18 日 上午 10:22 
Hi, this mod is great coz somehow the original voice somehow fits more than the royal marine, Also, can I have ur permission to use this information about adding the voices to units for another mod? (Ultimate Expanded Field Command Beta 1.95) , Right now im only using it for my personal gameplay but I want to play expanded japan while having portugal, but the voices rn is japanese
Raresh2508 2024 年 6 月 5 日 上午 9:46 
Running without any mods worked, i tried updating the units one by one to see which one causes crashes, first i just edited the port_swordsman and that worked fine, i kept changing only the infantry models from melee to range, after editing all of them the campaign crashed. I made sure every field i updated was correctly set afterwards but to no luck the game crashes with the voice workaround and portugal faction mod.
RavenBuster  [作者] 2024 年 6 月 5 日 上午 9:39 
Just to be sure did any of my 2 suggetions work? Especially knowing if running a non modded new campaign still works since if it doesn't I might have a solution for you because then the issue is not any you but on CA.
Raresh2508 2024 年 6 月 5 日 上午 9:20 
Tbh i don't really know what to do. Do you have a .pack that uses the portuguese faction and voice fix for all the units, that i can use.Or i can give you the one i was working on myself if you can check it out and see what is happening if you have time and it's not a problem for you.
RavenBuster  [作者] 2024 年 6 月 5 日 上午 8:56 
Okay that's strange. At least we can rule out the units causing it since they if they work in CB they also work in campaigns, at least that's my personal experience. A few things you can try:
-disable all other mods which aren't required for you mod to work and try a new campaign (removes any mod conflicts)
-try starting a new vanilla / no mod campaign (This might seem stupid but this can actually happen, more on that if it applies to you)
Raresh2508 2024 年 6 月 5 日 上午 8:29 
The problem is starting a new campaign thats where the crash happenes, i edited the names and checked for all the error on RFPM but i don't have any. The units work in custom battle tho but i really wanted to play on the campaign with them.
RavenBuster  [作者] 2024 年 6 月 5 日 上午 8:24 
You probably got a CTD when loading your save? That's because when you change the unit key that unit is now treated gamewise as a new unit cause old key ≠ new key and your savefile still tries to access the old unit/key which isn't there anymore hence causing the crash. That's generally a thing, often a crash means somethings missing or somethings is expected but isn't there. A new campaign should work fine but if you want to use your old savefiles then you have to add a copy of all changed units with their old key back into your mod.
Raresh2508 2024 年 6 月 5 日 上午 8:15 
@RavenBuster
Also thank you for all the help so far greatly appreciated
Raresh2508 2024 年 6 月 5 日 上午 8:02 
Does the file work only for infantry type units, after i edited some of them including artillery and cavalry i can't open the campaign.
RavenBuster  [作者] 2024 年 6 月 5 日 上午 7:33 
You probably forgot to update some tables hence the missing text & unit card and the black/grey-ish screen.

unit card & model: db/uniforms_tables -> edit "Filename" columns
(Hint: Just make sure that both model in variantmodels/units (xyz.unit_variant) and all unit cards in ui/units (xyz.tga) have the same filename.)

unit name & description: text/db -> unit.loc & unit_description_texts.loc need to be edited.

If you want a more visual/handson approach you can always open my mod found at ...\Steam\steamapps\workshop\content\34330\1878707871
Raresh2508 2024 年 6 月 5 日 上午 6:47 
@RavenBuster
I fixed the voices but there is a weird glitch, now the units don't have a description and when i hover over them for example in custom battles the screen turns black/grey-ish like it's trying to open op the details of the units but it can't.
RavenBuster  [作者] 2024 年 6 月 5 日 上午 6:46 
If I remember correctly by just adding the "Boshin_" prefix to the key of the unit(s). Just make sure to properly update the new key(s) for all other tables cause else it will cause issues/crashes.
Raresh2508 2024 年 6 月 5 日 上午 6:12 
I think i understand now, but how did you code your portuguese units to be considered as Boshin units( so i can use the voice lines for all of them not just the arquebus tercos), what field do i need to edit if you can help me on discord or something so i can at least show you some ss if you have time.
RavenBuster  [作者] 2024 年 6 月 4 日 下午 3:35 
@Raresh2508
If you want the long & detailed version see the [h1] Informations for Modders ... [/h1] section in this mod description for a more detailed explanation of what I did. Be aware that for some reason unit voices are linked to their description text and the given CA Terco description doesn't work on any other unit! My workaround is that I coded my portuguese units to be considered as Boshin/FoTs units and not Sengoku/base Shogun 2. Reason for this is that the Royal Marines from FotS have the same voice actor and nearly identical lines but their unit description can be used on other units without issues hence all of my mods portuguese units sound like them including a "Royal Marines, Aye Aye Sir" line which this mod fixes.
Raresh2508 2024 年 6 月 4 日 下午 12:43 
Hello,
I was wondering how you did that, i'm trying to merge two mods together the one that adds portuguese to the missionary and the tercos ranged, and the one that adds portugal as a faction. I want the units to speak portuguese but i can't seem to link the voices with the units.
Trivixni 2024 年 5 月 13 日 下午 2:12 
Preparar os canhões!
♠ Flokinho ♠ 2022 年 5 月 29 日 上午 5:22 
beleza, pica.
Tiger2071 2021 年 9 月 17 日 上午 10:21 
ah
RavenBuster  [作者] 2021 年 9 月 17 日 上午 5:04 
Most likely there aren't any voice lines for cavalry abilities by tercos voice actors. Some actors only voiced a certain unit, unit type or agent and there simply wasn't any need for additional voice lines.
Tiger2071 2021 年 9 月 16 日 下午 4:57 
One slight problem but I think this might be related to the unit type.
The ability buttons for the conqueror hero and lancers arent voiced, neither the cav specific ones (wedge and dismount) or skirmish, toggle FAW, toggle melee also isnt voiced for the hero.
Tiger2071 2021 年 9 月 16 日 下午 4:11 
well, thanks man, for this and the mods
RavenBuster  [作者] 2021 年 9 月 16 日 下午 2:54 
The terco garrisons from my garrison mod should also be affected by the mod. All of my terco units use the same voice lines and I don't see why this shouldn't apply to them as well, so no extra work for you.
Tiger2071 2021 年 9 月 16 日 下午 2:38 
Np, this was meant for personal use.
Do I need to do anything to the garrison file or no?
I'm not often on the defensive often, but no point in leaving a job half finished.
RavenBuster  [作者] 2021 年 9 月 16 日 下午 2:33 
Just tested it and it should work. I won't bother uploading the mod to the workshop because I didn't do anything that warrants credit. Credit goes to Vlakc for uploading his mod & providning the portuguese voice files.
RavenBuster  [作者] 2021 年 9 月 16 日 下午 2:20 
No problem just give me a few minutes, the mods almost already done. Modding the sound system itself is nearly impossible but voice lines are stored in mp3 files and the system calls these files solely upon the file name. Thus renaming certain files makes it quite easy to use the system to your advantage.
Example on how I did it:
1)Get/extract mp3 files from nanban mod
2)Rename these files to match the unit (in this case to royal marines. )
3)Upload renamed files to mod and your done

here's the standalone mod called "MODptaudio_weierstrass.pack". I edit the nanban speech mod to also include my units / royal marines :
click here [www.dropbox.com]
Tiger2071 2021 年 9 月 16 日 下午 1:47 
I have some experience with PFM and have done some low level modding of empire through Attila (stat changes for units and buildings, 1 turn research, and such) but recently I've been messing around with recruitment pools and restricted units but I havent done anything outside the db file.
I feel like I could take this mod and overwrite it's tables with the ones from the NSM, but I havent tried anything and I'm doubting it'd be that simple.
RavenBuster  [作者] 2021 年 9 月 16 日 下午 1:38 
Sorry for misunderstanding you but I wasn't sure if you meant just my terco units or all units in general. Making my terco speak is quite easy but requires using a mod tool like rpfm (rusted packfile manager) to get the voice lines. It basically comes down to renaming certain .mp3 -files. I can offer you either teaching how to do that or simply make the mod myself.
Tiger2071 2021 年 9 月 16 日 下午 12:59 
well, that's not gonna happen cuz I dont speak portuguese and I dont know anyone who does, but what I meant is, how would I be able to get the portuguese units from your mod to use the voice lines from the nanban speech mod?
In short, what I want to do is replace this mod (the english rework) with the nanban speech mod.
RavenBuster  [作者] 2021 年 9 月 16 日 下午 12:27 
Since portuguese language isn't supported by Shogun 2 (at least I can't find it in the steam language setting for Shogun 2), I assume that you're simply out of luck since there isn't an official localization and thus no recorded voice lines. Perhaps the author of the "Nanban Speech Add-on Mod" would know more about that topic since he put some portuguese voice lines into the game but I bet that they're probably from another TW title. In general, it would possible to do an inofficial portuguese language mod but without localized voice lines, you/someone would need to record a lot (to quantify it: hundreds or even thousands ) files of voice lines ...
Tiger2071 2021 年 9 月 16 日 上午 9:51 
How can I get your units to speak portuguese?
I have the nanban speech mod and I'd like to make your units speak portuguese instead of having the tercos speaking portuguese and the rest of the army being from victorian england.
RavenBuster  [作者] 2020 年 11 月 8 日 下午 4:32 
Yes, they only speak in english since there already is a mod where they speak portuguese called "Nanban Speech Add-on Mod"and I don't steal other peoples work ;-) . Just search for it or use the "click here" link at the bottom of my mod description. I will edit the title & description to be more precise/clear about the spoken language.
Astraben 2020 年 11 月 8 日 下午 4:14 
Oh shit so it´s not supposed to remove the English, it´s supposed to elimintate Royal Marine references lmao

I´m so sorry for the trouble m8 ahahahaha
RavenBuster  [作者] 2020 年 11 月 8 日 下午 3:55 
I uploaded a small video to youtube as proof to you that the mod works
link: https://youtu.be/_iTnBFLudBs
There I show that my units speak their appropriate english voiclines as intented.
RavenBuster  [作者] 2020 年 11 月 8 日 下午 3:32 
Ok that is quite unexpected. With this set up it should work. Perhaps the file got corrupted when downloading Try to unsubscribe from the voice mod and start the mod manager. The mod should now be removed if not then delete it in your steam/shogun2 folder. Then resubscribe again and steam should download a 42.6 MB file and start normally.
Astraben 2020 年 11 月 8 日 下午 3:02 
https://prnt.sc/vfrqyj

As you can see, all mods but yours are disabled.
The workaround still did not work, not for the added units nor the Terço
RavenBuster  [作者] 2020 年 11 月 8 日 下午 2:48 
Well then kindly I ask you to load the game with just my unit mod and the voice mod and tell me if the line still gets triggered. This way we/I can check if any of the other mods are interferring.
Astraben 2020 年 11 月 8 日 下午 2:36 
Yes of course
RavenBuster  [作者] 2020 年 11 月 8 日 下午 2:30 
So I assume that the "Royal Marines ..." get's triggered right?
Astraben 2020 年 11 月 8 日 下午 2:27 
I´ve already done that... I would know...
RavenBuster  [作者] 2020 年 11 月 8 日 下午 2:26 
Ok that's good. Try to follow this guide (best done in custom battle)

How to check if the mod is working:
(Select units multiple times due to 3 possible responses/voicelines)

-without mod: All of my tercos might respond with "Royal Marine" or 2 more generic voicelines upon selecting them.
-with mod: Only generic responses like base/vanilla tercos
In short: No "Royal Marines, aye aye Sir" = mod is working.
Astraben 2020 年 11 月 8 日 下午 2:16 
I´m playing in English, only possible alteration is a kneel to fire mod
RavenBuster  [作者] 2020 年 11 月 8 日 下午 2:15 
@Astraben
In which language do you run S2?
Most mods,including all of mine, require you to use the english language for the game due to file naming reasons. When using any other language the mod might not work since the file is not correctly loaded.
Pharaoh 2020 年 11 月 8 日 下午 1:33 
if you wont go to brazi erm i mean portugal portugal will come to you.
Astraben 2020 年 11 月 8 日 上午 8:47 
I´m using Weierstrass Units for Vanilla and the Tercos Revival skin for the gunners, no other unit mods.
RavenBuster  [作者] 2020 年 11 月 8 日 上午 6:37 
@Astraben
(Small reminder: Currently only the units from my mod "Weierstrass Units for Vanilla",see required items, are supported due the way the voice mod is built. Other mods can use/link this mod but that's not on me to do.)

I'm not sure what you mean since I just tested it and the mod worked for me. Can you give me more details about your problem? What mods are used? etc .

FYI / How to check if the mod is working:
(Select units multiple times due to 3 possible responses/voicelines)

-without mod: All of my tercos might respond with Royal Marine upon selecting them.
-with mod: Only generic responses like base/vanilla tercos.
Astraben 2020 年 11 月 7 日 下午 6:35 
Doesn`t seem to work
Vaskonios 3 2020 年 7 月 8 日 下午 8:11 
When non professional do the job well done than professional well paid but still doing shit!
PARABENS!!!!!!!!!!!
A big fuck you to CA and its Lusophobic tendencies
Pharaoh 2020 年 6 月 16 日 下午 9:42 
Jajajajjajaj