XCOM 2
More Nations and Names WotC
227 条留言
copyrite 12 月 11 日 下午 12:51 
There's at least one Thai name that doesn't render correctly. I can't write the name here because it's subject to the Scunthorpe problem. I also noticed that the localization files are UTF-8, I thought they'd need to be UTF-16.
DaggaRoosta  [作者] 10 月 7 日 下午 4:34 
If you need anything else, drop into the modding Reddits and ask. Good luck, and if you succeed, let me know!
DaggaRoosta  [作者] 10 月 7 日 下午 4:33 
Each NameStruct should contain:

- NameStruct.MaleNames/FemaleNames/MaleLastNames/FemaleLastNames: point each one to the correct name array, e.g., class'XGCharacterGeneratorFix'.default.(array name)
- PercentChance = this describes the percent of the *country + race* to which these name arrays apply
- bRaceSpecific = set this to true if Race is set;
- Race = set this to one of three race names: eRace_Asian, eRace_Hispanic, eRace_Caucasian. If you don't include this, it will fall to the default value, which is eRace_African.

Let's say you want a country where everyone has a white skin tone palette and half have French names and half English. You'd have two NameStructs in that country template, both with Race = eRace_Caucasian, and PercentChance = 50, one pointed to the French name arrays, one to the English.
DaggaRoosta  [作者] 10 月 7 日 下午 4:33 
Src/(modname)/Classes folder - The first two are pretty self-explanatory:
XGCharacterGeneratorFix.uc: this adds your new name arrays to the character generator. Replace my name arrays with yours.
X2DownloadableContentInfo_(modname).uc: this will basically load your mod correctly. Replace my mod name with yours wherever it appears.

X2StrategyElement_DefaultCountriesFix.uc: This contains the code that assembles the country templates, basically putting everything else you've created together. Every country needs at least one NameStruct for every race with a weight above 0.
DaggaRoosta  [作者] 10 月 7 日 下午 4:08 
Content folder: these are the assets for the flag graphics that appear in the UI and on the backs of the soldier characters. I think you can leave the mod shader file alone, here you'll want to edit the UILibrary_MNaN.upk file and add your flags. You'll need to follow a tutorial from Reddit for this. If it's beyond your skill level, if you don't mind black flags for everyone, ignore it.

Localization folder: INT folder is English. These files contain text strings; for this mod, they contain your character names (MoreNationsandNamesWotC.int) and country names (XComGame.int). For character names, you're assembling arrays of first and last names, male and female, for each ethnic group. E.g., the line `Turk_M_FN[0]="Yusuf" ` sets the first name in the array for Turkish male first names to "Yusuf". Replace these arrays with your own, name them whatever will help you identify them. Including a name in more than one array slot will increase the frequency it appears.
DaggaRoosta  [作者] 10 月 7 日 下午 3:52 
Config folder: these files are not standalone, they edit the base game files. Any line that starts with "-" deletes a line; "+" adds a new line; ";" deactivates a line of code and turns it into a comment.

XComEditor.ini, XComEngine.ini, XComGame.ini - these files contain a couple edits to the source files, mostly to make sure your mod packages load and are named correctly. Replace my mod name with your mod name, and "UILibrary_MNaN" to the name of your flag upk file (see Content folder).

XComGameBoard - this contains the country templates, which contain the weights for both the countries relative to other countries and the "races" per country. To eliminate a country change its UnitWeight to 0. Editing the vanilla countries requires -/+, but new country templates don't need them. Here you should take the vanilla countries and set their weight to 0, then overwrite my new countries with your own.
DaggaRoosta  [作者] 10 月 7 日 下午 3:10 
@MandytheCybersphinx My first bit of advice is to visit the XCom2 Mod and related communities on Reddit. Reddit is a much better forum for asking and researching answered questions, and you'll find a lot of tutorials there as well.

That said, you could likely copy this mod and edit it to get what you want. There's no template exactly, but if you understand what each file is doing you're most of the way there. Character limits are tight here, I'll write another comment or two with a short description.
Mandy the Cybersphinx 10 月 6 日 上午 10:51 
Hey, question for @DaggaRoosta if you're still watching the thread - I'm a new modder for x2 and I'm trying to make my own version of this mod that includes some different nations and namelists for an alternate canon me and my RP community is working in. I tried just digging into the mod to see if I could replicate from the code you used, but didn't seem like I could do so. Any chance you could provide me with some templates or guidance I could work with? Thanks in advance!
IFIO 10 月 2 日 下午 6:03 
This is some truly fine work
DaggaRoosta  [作者] 8 月 11 日 下午 4:14 
@mfreeman if that doesn't work, check AML for mod conflicts. If you're using another mod that affects the same classes, you may need to choose between those mods.
Dragon32 8 月 10 日 上午 9:38 
mfreeman 8 月 10 日 上午 8:18 
I haven't played xcom 2 for a very long time and i'm really like a nub now. so i subscribed to this mod but somehow there's no new nationality showing. it may be most likely i didn't installed it correctly as i'm using AML. any help would be greatly appreciated. thanks.:cozybethesda:
Xenotaff 7 月 5 日 下午 8:56 
Thank you for the mod!
Makk 5 月 13 日 上午 8:52 
Nice mod. I'm a crazy realistic lover. Like to make those geo things close to realistic world.
Danetta 4 月 24 日 下午 9:56 
Some letters in some names are of non-regular alphabet and cannot be displayed properly.
RedBaronAce0207 3 月 24 日 上午 5:26 
The Skirmisher names are missing after Version 1.6 update.
Merciful Boss 3 月 21 日 下午 5:01 
@Plush Langobard

For all intents and purposes that "flag" is a flag of "revolutionaries" funded by USAID. Similar to the white blue white Russian "flag" that is run by the RDK "Revolutionaries" (that are actually nazis associated with organizations like White Rex, similar to the ones in Belarus btw)
DaggaRoosta  [作者] 3 月 20 日 下午 7:17 
@weiwentg Ah OK, I'll check the Singaporean lists out; there's likely a few smaller countries in the region that have the same issue. I've been meaning to get to this, so thanks for the reminder.

Keep in mind that after the update, existing characters will still keep their names, only new characters will be affected. So you'll need to rename your Reapers manually.
weiwentg 3 月 20 日 上午 11:21 
I have two Singaporean Reapers. Very cool! I should point out that they are written surnames first, so any automatically generated text that references their surnames will actually show their given names. You could consider reversing the names. So far, it seems like all my Chinese nationals have their names written in the Western naming order.
Plush Langobard 3 月 10 日 下午 6:19 
https://en.wikipedia.org/wiki/Flag_of_Belarus

also consider using the white-red-white flag for belarus. the lukashenko regime is a defacto russian oblast.
DaggaRoosta  [作者] 3 月 3 日 下午 6:12 
@Venator Russia invaded the Donbas in 2014 and the Syrian revolution began in 2011, so we're good :)
Venator 3 月 1 日 上午 1:25 
But...the old world ended in 2015, canonically...
DaViper 2 月 25 日 下午 10:46 
You might want to add the 'changelog' to the change notes tab.
moubat 2 月 25 日 下午 7:17 
@DaggaRoota, you are awesome, thank you very much
Alexandr 2 月 25 日 下午 7:06 
Nice stuff, Dagga!
DaggaRoosta  [作者] 2 月 25 日 下午 6:40 
@moubat No Patreon, I'm just glad to know people like it. Just added the new Syrian flag, and bumped Syrian representation up a bit as well (I'll do this with countries that have been in recent conflicts, e.g., Russia and Ukraine in 1.5)
moubat 2 月 25 日 上午 5:12 
Thank you so much. Would you happen to have a patron?
I would like to buy you a cop of coffee or two ;)
DaggaRoosta  [作者] 2 月 24 日 下午 8:23 
@moubat Thank you, yes it has. I haven't update this mod in many moons but I may soon; if I do I'll be sure to include it as part of the update.
moubat 2 月 24 日 下午 2:43 
The Syrian flag has Changed
https://images.app.goo.gl/xS38NQWG3UuABEKL8
AreYouOKAni 2024 年 12 月 6 日 上午 5:56 
I think they might be glitched accented letters (think é), but I am not sure.
AreYouOKAni 2024 年 12 月 6 日 上午 5:55 
For some reason, at least a few times I've gotten characters with Cyrillic letters in their otherwise English names. Easy enough to fix with troopers, annoying as hell with Engineers or Scientists.
Dragon32 2024 年 6 月 10 日 下午 2:39 
@DaggaRoosta
Thanks again, I'm a little ways off having a working install myself. Been setting things up for a new campaign. I'll yoink that from Github and try it out though.
DaggaRoosta  [作者] 2024 年 6 月 10 日 下午 1:10 
@Dragon32 I added my Script folder to the fork. My local setup is a bit borked right now so I haven't tested it, but it worked last I checked. If it's not working for you just let me know.
Dragon32 2024 年 6 月 9 日 下午 1:44 
@DaggaRoosta
Thanks! Don't suppose you'd be able to compile it? I don't have the SDK.
DaggaRoosta  [作者] 2024 年 6 月 9 日 上午 10:36 
@Dragon32 I've posted the github fork here:
https://github.com/DaggaRoosta/WOTC-xcom2-random-nickname-button-for-MNAN

All the instrumental changes are in the RandomSoldierInfoButtonPanel.uc file, everything else is the same as the original...except I also added ultrawide monitor button placement specs (commented out but available in Config/XComRandomSoldierInfoButtonPanel.ini). So you can just take that one file and switch them out locally, if you prefer.
Dragon32 2024 年 6 月 7 日 下午 5:02 
@DaggaRoosta
Sounds cool to me, I'd definitely appreciate it.
DaggaRoosta  [作者] 2024 年 6 月 7 日 下午 3:50 
@Dragon32 To be clear though, the workaround isn't a full fix, that would require rewriting the character generator. The existing mod already uses MNAN/Immersive Names namelists, but it can't preserve the ethnicities, only the skin color palette. So if you try to generate a new first name for an American with brown skin and an Indian name, it'll likely be a Hispanic name.

My fork adds a "Full Name" button that (sigh) also does not preserve the ethnicity, but it does ensure the first and last name are consistent. So re-rolling an Indian-American name will still likely result in a Hispanic name, but at least the full name will match. Click a few more times and an Indian name will soon pop up. An imperfect tweak, but I've found it helpful.
DaggaRoosta  [作者] 2024 年 6 月 7 日 下午 2:45 
@Dragon32 Sure, I'm busy today but I'll upload it sometime this weekend.
Dragon32 2024 年 6 月 7 日 下午 2:30 
@DaggaRoosta
No worries, happy to help.

Could I take this chance to ask if you'd upload your fork of the "Random Soldier Info Mod"? I do use that from time to time on recruits and having it preserve the namelists from Immersive Names would be really cool.
DaggaRoosta  [作者] 2024 年 6 月 7 日 下午 2:25 
@Dragon32 Thank you, been off the grid for a few weeks.

@Tarron You can add a name but (a) the likelihood of it showing up in the game is pretty small, especially if you're adding a name to the American pool, and (b) you'll need to deal with the mod's namelist organization, which for the US is quite complicated - each ethnic group has its own namelist, save for a few mostly-recent-immigrant ethnicities which are borrowed from other country lists. Describing how to do what you want in a Steam comment isn't feasible.

So I would personally advise to just add the names to my game manually.

But if you have an eye for code, you can study the files X2StrategyElement_DefaultCountriesFix.uc (under Src directory) and MoreNationsandNamesWotC.int (Localization/INT if you're playing the English version). Search for "USA" (or whatever country name) in your text editor for the relevant code, and you can probably figure out how to implement your fix from there.
No Name Legion 2024 年 6 月 7 日 上午 11:43 
@Dragon32 perfect, thank you!
Dragon32 2024 年 6 月 5 日 上午 8:04 
@No Name Legion
It's the UnitWeight value in XComGameBoard.ini
No Name Legion 2024 年 6 月 4 日 下午 3:12 
sorry if this been asked before, but how can i change how likely/unlikely a country is to appear?
Tarron 2024 年 5 月 26 日 上午 8:30 
Hey quick question, do you know how to edit the files so you could add a name set to a specific country? For example, I want to add an another name to the current American naming pool.
TheDestroyer 2024 年 5 月 5 日 上午 3:08 
LWOTC?
Dragon32 2024 年 4 月 30 日 下午 2:35 
@Edlar89
It doesn't add new voices but sets languages so that, e.g., troopers from Bosnia use the Italian voices and those from Mozambique the Spanish.
Edlar89 2024 年 4 月 30 日 下午 1:39 
Does this include any new voices so the soldiers don't have to all speak English?
Dr Petrov 2024 年 4 月 21 日 下午 8:34 
Muito obrigado! (Thanks so much!)
From Brazil🇧🇷
[BRTD]Luewen 2024 年 1 月 15 日 上午 8:57 
I know it was asked before if this works with long war of the chosen. But that was year ago so surely someone has tested if it does or not?
Dragon32 2023 年 12 月 30 日 下午 6:51 
@NeverMind
Some other mods I have have their .chn files encoded as UTF-16 LE BOM

Not sure if that helps.