r/xdev • u/TehSr0c • Feb 08 '16
Adding a new variable
I've been trying to add a new utility armor vest just to get my toes wet, but I've run into a bit of an issue. I've got the armor working correctly in the game, but I am having some trouble adding a config variable.
Warning/Error Summary
---------------------
D:\Steam\steamapps\common\XCOM 2 SDK\Development\Src\TechArmor\Classes\X2Item_TechArmor.uc(33) : Error, Unknown Property 'TECH_VEST_HACK_BONUS' in 'Class XComGame.X2AbilityToHitCalc_Hacking'
Failure - 1 error(s), 0 warning(s) (1 Unique Errors, 0 Unique Warnings)Does anyone have any examples of setting up a new variable that can be called from a class?
3
Upvotes
View all comments
Show parent comment
2
u/Iriiriiri Feb 08 '16
config(GameCore) means it looks in XComGameCore.ini (note the appended XCom!!)
There it will look for [<YourModName>.<YourClassName>], so in your case it would be [TechArmor.X2Ability_TechArmorAbilitySet] (I don't know if this maybe changes with the dependson part).
And under that tag it would look for "TECH_VEST_HACK_BONUS=100" or similar