BattleTech mods/Remove They Pronoun

From Modding Haven
Revision as of 15:58, 1 November 2023 by Admin (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Remove They Pronoun
2kfRu4Zm.png
Developer lordcorvin
Latest version 1.0
Release date 2018-05-02

Description

Removes They pronoun from Character Creation by modifying a dll file.

Installation: Backup and replace Assembly-CSharp.dll in *Install Path*\BATTLETECH\BattleTech_Data\Managed

Note: Random pilots might still generate with the pronoun.

To remove this generation, adjust percentage in SimGameConstants.json in \BATTLETECH\BattleTech_Data\StreamingAssets\data\simGameConstants to something like:

"MaleGenerationWeight" : 90,
"FemaleGenerationWeight" : 10,
"NonBinaryGenerationWeight" : 0,

Mod making tutorial

Don't trust the dll? This is how the mod was made, so you can do it yourself:

  • Get dnSpy and navigate to your Battletech installation, go to Battletech_Data and then to Managed. Open up Assembly-CSharp.dll
    • Example: G:\BATTLETECH\BattleTech_Data\Managed
  • Open up Assembly-CSharp.dll
  • Find SGCharacterCreationNamePanel Class, right click on it and choose Edit Class
  • Remove They so it looks as the following:
this.pronounSelector.SetOptions(new string[]
{
"He",
"She"
});
  • Compile
  • Save all to Assembly-CSharp.dll (Backup the old one beforehand)
  • You're done!

Optional: Remove logic for They in same class, make it looks like:

public Gender gender
{
get
{
Gender result = Gender.INVALID_UNSET;
string text = this.pronounSelector.selection.ToLower();
if (text != null)
{
if (!(text == "he"))
{
result = Gender.Female;
}
else
{
result = Gender.Male;
}
}
return result;
}
}

Download

For GOG release v1.0.0

For GOG release v1.9.1-686r

Screenshots

A7ZqY1P4XWMI3N-nzYs913McLz6pRbvKBvJkoz8HzhQ.png 0iaomj.PNG