Gameanater
  • Gameanater
  • 55.5% (Neutral)
  • General Topic Starter
11 years ago
The problem is pretty odd... I've added Chem Suits for all of General Fai's infantry, which would definitely be helpful for facing GLA players (especially Dr. Thrax). Well I think I found the reason why they don't have Chem Suits now in the final version of Zero Hour...

I added the button to the Propaganda Center to purchase the upgrade, and it works as it should. The little icon shows up underneath my infantry's feet. But I think the Horde Bonus icon causes this to have some problems...

For one thing if a single unit is upgraded with Chem Suits, then walks into a group of five, the Chem Suits icon disappears and the Horde Bonus icon replaces it. I don't mind that, but when he leaves the group the Horde Bonus icon disappears but the Chem Suits icon doesn't come back.

And after a little bit when I purchased the Chem Suits upgrade, the game just crashes and I get one of those Serious Errors! But it's not completely consistent... The first time is crashed a few seconds after the upgrade finished. But the second time it took much longer until the game crashed...

Little help, pretty please? 😄

  Generals Domination beta 1.zip (389kb) downloaded 54 time(s).
Any old friends still on here can add me on discord @jcdenton2187. I'm far more likely to respond there.
Sponsor
Gameanater
  • Gameanater
  • 55.5% (Neutral)
  • General Topic Starter
11 years ago
Bump

Still waiting.


And I dunno why this could be a problem.. The Boss General has Tank Hunters with working a Chem Suits upgrade.....
Any old friends still on here can add me on discord @jcdenton2187. I'm far more likely to respond there.
JoshZemlinsky
11 years ago
Did you check the Crashlog which is dumped in the Generals Zero Hour folder inside your documents?

If it turns up blank this can be hard to figure out.
But the fact that it crashes after abit of time tells me that this is not a coding error, but rather a limitation of the game...
I bet it's related to the horde bonus.

Although this does sound very weird.
Annihilationzh
11 years ago
The only notable difference between your code and the boss general's code is where you placed the ArmorUpgrade module. So it makes me wonder if it shouldn't be placed above the ActiveBody or the Kindofs.
If you need help, post in the forum. You'll get help a lot faster than if you send me a PM.

I reject all buddy requests. I don't think 'buddy' needs to be made official. It's not like you're marrying me.
Gameanater
  • Gameanater
  • 55.5% (Neutral)
  • General Topic Starter
11 years ago
That would make sense...
And no, I didn't... I'll do that soon...
-- Mr. Zemlinsky

Hmm... I'll compare my code to the Boss General's Tank Hunter when I got more time... Thanks. 😄
-- AZH
Any old friends still on here can add me on discord @jcdenton2187. I'm far more likely to respond there.
Nedfirst
2 years ago
Hello everyone, I wanted to know if you have managed to resolve this problem since then? Because it did that to me before too and I never understood why. Thanks in advance.
Mathias Ivan Maidana
a year ago
I got the same problem before and as far as i've seen, the only difference is the effect granted by the bonus. it might be that the Chemical Suits upgrade does not work paired with the Fanaticism upgrade, but works fine with the rest of HORDE Effects simply because the devs never thinked that the Chemical Upgrade would be active while the Fanaticism Effect is on too, after all, it's a scrapped feature.
or it might just be limitations, you know.
i will see if i can get around this weird crash after i get finished with Nuke General Unused content.
----------------------------------------------------------------------------------------------------------------
The Enemy has provided us with their homes!
-Maidana
I like helping people.
Mathias Ivan Maidana
a year ago
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:

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:

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:

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:

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:

Behavior = ArmorUpgrade ModuleTag_Armor01
TriggeredBy = Infa_Upgrade_ChinaChemicalSuits
End



Below this string:

Body = ActiveBody ModuleTag_02
MaxHealth = 120.0
InitialHealth = 120.0
End



and it would look something like...

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:

ArmorSet
Conditions = PLAYER_UPGRADE
Armor = HazMatHumanArmor
DamageFX = InfantryDamageFX
End



Below this string:

ArmorSet
Conditions = None
Armor = InfGen_HumanArmor
DamageFX = InfantryDamageFX
End



and it would look something like...

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.
----------------------------------------------------------------------------------------------------------------
The Enemy has provided us with their homes!
-Maidana
I like helping people.