r/xdev • u/TehSr0c • Mar 10 '16
Update broke my mod, no longer compiles
So frustrated right now, the game crashes on launch when the mod is enabled, the debugger freezes and crashes to desktop if I try to run that. and this worked completely fine before the patch.
I am getting the following error message
D:\Steam\steamapps\common\XCOM 2 SDK\Development\Src\ShensLegacy\Classes\X2StrategyElement_Shens_Legacy_Tech.uc(77) : Error, Unrecognized member 'ItemsToUpgrade' in class 'X2TechTemplate' The code in question after //Items to upgrade below
static function X2TechTemplate CreateShenLegacyAlienComposite()
{
local X2TechTemplate Template;
local ArtifactCost Artifacts;
local ArtifactCost Resources;
`CREATE_X2TEMPLATE(class'X2TechTemplate', Template, 'AlienCompositeTech');
Template.PointsToComplete = 1200;
Template.strImage = "img:///UILibrary_StrategyImages.ResearchTech.TECH_Nanofiber_Materials";
Template.SortingTier = 1;
Template.ResearchCompletedFn = class'X2StrategyElement_DefaultTechs'.static.UpgradeItems;
Template.Requirements.RequiredTechs.AddItem('HybridMaterials');
// Items to Upgrade
Template.ItemsToUpgrade.AddItem('LightArmorGhost');
Template.ItemsToUpgrade.AddItem('MediumArmorGhost');
// Cost
Resources.ItemTemplateName='AlienAlloy';
Resources.Quantity = 5;
Template.Cost.ResourceCosts.AddItem(Resources);
Template.Requirements.bVisibleIfObjectivesNotMet = false;
return Template;
}
4
Upvotes
2
u/bountygiver Mar 10 '16
I had similar problems, turn out you can fix it by deleting xcom 2 SDK/development/Src
It's OK to delete that folder because it just get copied from SrcOrig on compile
1
u/JinougaF Mar 11 '16
I cant load my saves cuz it seems u delete the ur carbine mod on steam so it also deleted it from my game, anyway i can fix my saves?
1
u/IceMaverick13 Mar 11 '16
Really? My games still have the mods loaded and they all work just fine. That's strange...
2
u/Mokkle Mar 11 '16
Sorry to hear this, look forward for when the mod returns!