Ok, after some time, i found a workaround to stop it from crashing, and is a little simple, perhaps too simple.
now, the fix is not perfect since the blue icon of the Chemical Suits upgrade won't appear, but atleast the armor does work paired with the horde bonus.
1.Add a new upgrade to Upgrade.ini, it can be anything but it must work, here's an example:
Quote:Upgrade Infa_Upgrade_ChinaChemicalSuits
DisplayName = UPGRADE:ChemicalSuits
BuildTime = 60.0
BuildCost = 1000
ButtonImage = SAChemsuit
;ResearchSound = RangerVoiceUpgradeChemSuits
End
The research sound is not needed, so i just commented it out, although i will change it later.
again, you can edit any value of it to your desires if you want.
2.Add a proper Button in CommandButton.ini, it must match with the Upgrade you're adding, it must look like this:
Quote:CommandButton Infa_Command_UpgradeChinaChemicalSuits
Command = PLAYER_UPGRADE
Upgrade = Infa_Upgrade_ChinaChemicalSuits
TextLabel = CONTROLBAR:UpgradeAmericaChemicalSuits
ButtonImage = SAChemsuit
ButtonBorderType = UPGRADE ; Identifier for the User as to what kind of button this is
DescriptLabel = CONTROLBAR:TooltipUSAUpgradeChemicalSuits
End
The name doesn't have to be this one, but the Upgrade string must match the name of the Upgrade name that you added before.
3.Edit the Propaganda Center ButtonSet in CommandSet.ini
You need to search for the next line of code
“Infa_ChinaPropagandaCenterCommandSet“ and
“Infa_ChinaPropagandaCenterCommandSetUpgrade“, and then replace the Commented out line of code (which is the Button 2, that has assigned the America Chemical Suits Upgrade Button) with the Button name you added in step 2.
it should look something like this:
Quote:CommandSet Infa_ChinaPropagandaCenterCommandSet
1 = Command_UpgradeChinaFanaticism
2 = Infa_Command_UpgradeChinaChemicalSuits
3 = Command_UpgradeChinaSubliminalMessaging
12 = Command_UpgradeChinaMines
14 = Command_Sell
End
and for the Upgraded Version:
Quote:CommandSet Infa_ChinaPropagandaCenterCommandSetUpgrade
1 = Command_UpgradeChinaFanaticism
2 = Infa_Command_UpgradeChinaChemicalSuits
3 = Command_UpgradeChinaSubliminalMessaging
12 = Command_UpgradeEMPMines
14 = Command_Sell
End
4.All you need to do now is just to add the ArmorUpgrade module to the Units of the Infantry General.
to do this, you need to find and enter the InfantryGeneral.ini located on Data/INI/Object, then find the next Objects:
A. Infa_ChinaInfantryBlackLotus
B. Infa_ChinaInfantryHacker
C. Infa_ChinaInfantryMiniGunner
after finding them, now you have to paste this code:
Quote: Behavior = ArmorUpgrade ModuleTag_Armor01
TriggeredBy = Infa_Upgrade_ChinaChemicalSuits
End
Below this string:
Quote: Body = ActiveBody ModuleTag_02
MaxHealth = 120.0
InitialHealth = 120.0
End
and it would look something like...
Quote:Body = ActiveBody ModuleTag_02
MaxHealth = 120.0
InitialHealth = 120.0
End
Behavior = ArmorUpgrade ModuleTag_Armor01
TriggeredBy = Infa_Upgrade_ChinaChemicalSuits
End
this.
the numbers on MaxHealth do not matter so don't edit them, they are the life of each unit but is not of our interest now.
repeat this step over the three objects mentioned before and it should go fine.
now, for the Tank Hunter, is the same but with extra steps. for some reason, the ArmorSet is nowhere to be found on this object so this will help you add that too.
find this Object
Infa_ChinaInfantryTankHunter, then, paste this code:
Quote:ArmorSet
Conditions = PLAYER_UPGRADE
Armor = HazMatHumanArmor
DamageFX = InfantryDamageFX
End
Below this string:
Quote:ArmorSet
Conditions = None
Armor = InfGen_HumanArmor
DamageFX = InfantryDamageFX
End
and it would look something like...
Quote: ArmorSet
Conditions = None
Armor = InfGen_HumanArmor
DamageFX = InfantryDamageFX
End
ArmorSet
Conditions = PLAYER_UPGRADE
Armor = HazMatHumanArmor
DamageFX = InfantryDamageFX
End
This.
now, do the steps mentioned before about adding the ArmorUpgrade Behavior, but in this Object and it should work.
and thats... all. honestly kind weird why it doesn't work normally but my best bet is that Fanaticism and Chem Suits Upgrade don't go well together.
if you want to also add the Unused Red Guard\Minigunner Voice lines regarding this upgrade i can also explain how to add them, but for now, this is all.
Edited by user Sunday, December 22, 2024 5:42:54 PM(UTC)
| Reason: Typos