XCOM 2
XModBase 2.0 for War of the Chosen (beta)
 Denne tråd er blevet fastgjort, så den er sikkert vigtig
xylthixlm  [udvikler] 8. sep. 2017 kl. 0:59
Bug reports
This thread is for bug reports. Please be as descriptive as you can, and include any code needed to trigger the problem (I suggest throwing it on pastebin.com).
Sidst redigeret af xylthixlm; 8. sep. 2017 kl. 1:00
< >
Viser 1-10 af 10 kommentarer
RedDobe 10. juli 2018 kl. 23:21 
It's not handling multiplicative offense stat effects correctly. For the simple red fog plugin when you use the multiplicative stat effect on offense the effect is negated. IE. When you set it at .75 the correct calculation would be a aim penalty of -25% of the base offense for that character. But that number is being changed to +25% instead, giving an aim bonus when it is meant to affect the aim negatively. All of the other stats work with red fog multiplicative, so it is something particularly with your offense calculation. Thanks.
xylthixlm  [udvikler] 11. juli 2018 kl. 10:16 
Which class specifically isn't handling multiplicative offense stat effects correctly?
RedDobe 11. juli 2018 kl. 15:35 
Here is the code for the function to create the ability. Thanks for looking into it.

static function X2AbilityTemplate CreateLightRedFog()
{
local XMBEffect_ConditionalStatChange Effect;
local X2Condition_UnitStatCheck Condition;
//local ChrmSRF_Getter Getter;
local int idx;

//Getter = new class 'ChrmSRF_Getter';
Condition = new class'X2Condition_UnitStatCheck';
Condition.AddCheckStat(eStat_HP, default.LightBreakpoint, eCheck_LessThan,,, true);
Condition.AddCheckStat(eStat_HP, (default.ModerateBreakpoint - 1), eCheck_GreaterThan,,, true);

Effect = new class'XMBEffect_ConditionalStatChange';
for(idx=0;idx<default.StatList.Length;idx++)
{
//Effect.AddPersistentStatChange(eStat_Mobility, -2);
//Effect.AddPersistentStatChange(eStat_Offense, -10);
if(!default.bPercentage[idx])
Effect.AddPersistentStatChange(default.StatList[idx], default.LightEffect[idx]);
else
Effect.AddPersistentStatChange(default.StatList[idx], default.LightEffect[idx], MODOP_Multiplication);
}
//ConditionalStatChangeEffect.SetDisplayInfo(ePerkBuff_Bonus, Template.LocFriendlyName, Template.LocHelpText, Template.IconImage, true,,Template.AbilitySourceName);

// The effect only applies while wounded
Effect.Conditions.AddItem(Condition);
//Effect.AbilityTargetConditionsAsTarget.AddItem(Condition);

// Create the template using a helper function
return Passive('LightRedFog', "img:///UILibrary_XPACK_Common.PerkIcons.UIPerk_mountainmist", true, Effect, true, true);
}
xylthixlm  [udvikler] 11. juli 2018 kl. 22:57 
XMBEffect_ConditionalStatChange just uses XComGameState_Unit.ApplyEffectToStats to apply the stat change to the unit, so if one part is not working and the other modifications are, it's almost certainly a bug in the game code. I'm afraid I have no idea what might be going on.
Sidst redigeret af xylthixlm; 11. juli 2018 kl. 22:58
RedDobe 12. juli 2018 kl. 7:40 
Thanks for checking on that. I wasn't sure if it was your code or the actual games. Take care. :)
Synapsiz 24. okt. 2018 kl. 18:16 
Not sure if this qualifies as a bug, but the +1 bonus on items from the packmaster perk in your examples does not apply to items added your "XMBEffect_AddUtilityItem".
bstar 18. maj 2020 kl. 10:06 
Hi xylthixlm, love XModBase, thank you for making it! Not sure if you're still working on/updating it, but:

One issue with XMBEffect_BonusDamageByDamageType: When used for a passive ability (e.g. your Pyromaniac example), it does not display a damage preview (e.g. adding psi damage doesn't affect Soulfire's damage preview, fire doesn't affect Flamethrowers etc.). I believe the damage preview works with grenades though and the damage dealt is also correctly affect for all skills I have tested so far.
Dęąth Viper 16. apr. 2022 kl. 19:03 
D:\Steam\steamapps\common\XCOM 2 War of the Chosen SDK\Development\Src\XModBase_Core_2_0_2\Classes\XMBAbilityToHitCalc_StandardAim.uc(300) : Error, Unrecognized member 'GetStatModifiersFixed' in class 'XComGameState_Unit'


Is this safe to ignore?? It gives me a failed build. I havent even started putting in code yet just wanted to make sure all the files were locked in
greenpeapea 19. juni 2022 kl. 12:49 
Oprindeligt skrevet af Frizzeldian12:
D:\Steam\steamapps\common\XCOM 2 War of the Chosen SDK\Development\Src\XModBase_Core_2_0_2\Classes\XMBAbilityToHitCalc_StandardAim.uc(300) : Error, Unrecognized member 'GetStatModifiersFixed' in class 'XComGameState_Unit'


Is this safe to ignore?? It gives me a failed build. I havent even started putting in code yet just wanted to make sure all the files were locked in

I am also seeing this issue and do not know how to resolve.
Dęąth Viper 22. okt. 2022 kl. 1:41 
Oprindeligt skrevet af greenpeapea:
Oprindeligt skrevet af Frizzeldian12:
D:\Steam\steamapps\common\XCOM 2 War of the Chosen SDK\Development\Src\XModBase_Core_2_0_2\Classes\XMBAbilityToHitCalc_StandardAim.uc(300) : Error, Unrecognized member 'GetStatModifiersFixed' in class 'XComGameState_Unit'


Is this safe to ignore?? It gives me a failed build. I havent even started putting in code yet just wanted to make sure all the files were locked in

I am also seeing this issue and do not know how to resolve.
Guess we will never know man... Holy crap
< >
Viser 1-10 af 10 kommentarer
Per side: 1530 50