Jump to content

whats wrong with this mod code?


joyfulrogue

Recommended Posts

In the mod's config file:

[XComGame.X2Item_DefaultGrenades]
-FragGrenade_BaseDamage = (Damage=3, Spread = 0, PlusOne = 20, Crit = 0, Pierce = 0, Shred=1, Tag = "", DamageType="Explosion")
+FragGrenade_BaseDamage = (Damage=3, Spread = 0, PlusOne = 20, Crit = 0, Pierce = 0, Shred=0, Tag = "", DamageType="Explosion")

-AlienGrenade_BaseDamage = (Damage=5, Spread = 0, PlusOne = 20, Crit = 0, Pierce = 0, Shred=2, Tag = "", DamageType="Projectile_BeamAlien")
+AlienGrenade_BaseDamage = (Damage=15, Spread = 0, PlusOne = 20, Crit = 0, Pierce = 0, Shred=1, Tag = "", DamageType="Projectile_BeamAlien")

-EMPGRENADE_HACK_DEFENSE_CHANGE=-5
+EMPGRENADE_HACK_DEFENSE_CHANGE=-10

-EMPBOMB_HACK_DEFENSE_CHANGE=-10
+EMPBOMB_HACK_DEFENSE_CHANGE=-20

It doesn't take effect. I installed it correctly and have the mod selected in the launcher. Whats wrong? how to fix it?

Link to comment
Share on other sites

This looks like it should work.

 

You might try prefacing the first line with ! so that it deletes just on key and not value :

 

!FragGrenade_BaseDamage 
+FragGrenade_BaseDamage = (Damage=3, Spread = 0, PlusOne = 20, Crit = 0, Pierce = 0, Shred=0, Tag = "", DamageType="Explosion")
Link to comment
Share on other sites

I could perfectly multiply my grenade damage with 10 through the "-", I can only imagine that you might have done what I was doing wrong on a basic level, namely not building the mod but only the solution which made it still appear in the Mod Launcher but then again, my first SDK Mod still failed to work (had to use ultimately "-" and "+"). What I also habitually include without actual knowledge:

 

[XComGame.X2Ability_WeaponCommon]

 

above, and at the end

[iniVersion]
0=1454630243.000000
(for the weapon data). I actually have yet to test if build solution could actually be sufficient and whether the [iniVersion] is required along with the [XComGame.X2Ability_WeaponCommon] for that .ini.
Additionally all I can think of is that the .ini created by the DefaultMod and the class X2DownloadableContentInfo_"YourGrenadeMod" are all essential, at least missing the class resulted in an error shown in the log.
I hope my little experience can help.
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...