Yzaxtol Posted March 5, 2016 Share Posted March 5, 2016 Ok so i've released a mod that had a fairly slap-dash method of over-writing the XComGameData_CharacterStats.ini but I wanted to clean it up for the next release. I then removed all the codes like this: [Soldier X2CharacterTemplate] CharacterBaseStats[eStat_HP]=5 CharacterBaseStats[eStat_Offense]=65 CharacterBaseStats[eStat_Defense]=0 CharacterBaseStats[eStat_Mobility]=12 CharacterBaseStats[eStat_SightRadius]=27 CharacterBaseStats[eStat_Will]=40 CharacterBaseStats[eStat_PsiOffense]=0 CharacterBaseStats[eStat_FlightFuel]=0 CharacterBaseStats[eStat_UtilityItems]=1 CharacterBaseStats[eStat_AlertLevel]=2 CharacterBaseStats[eStat_BackpackSize]=3 CharacterBaseStats[eStat_Hacking]=5 CharacterBaseStats[eStat_CritChance]=0 CharacterBaseStats[eStat_CombatSims]=0 CharacterBaseStats[eStat_HighCoverConcealment]=1 CharacterBaseStats[eStat_Strength]=0 CharacterBaseStats[eStat_FlankingCritChance]=50 CharacterBaseStats[eStat_FlankingAimBonus]=0 CharacterBaseStats[eStat_DetectionRadius]=9 With this: [AdvTrooperM1 X2CharacterTemplate] -CharacterBaseStats[eStat_ArmorChance]=0 +CharacterBaseStats[eStat_ArmorChance]=100 -CharacterBaseStats[eStat_ArmorMitigation]=0 +CharacterBaseStats[eStat_ArmorMitigation]=1 I then compiled the mod and all my changes had disappeared, after spending hours cleaning it up. After trying a few things I got fed up and restored a backup to what it was previously and all the changes have STILL vanished. As someone has mentioned I usually when met with these kind of strange behavious delete the config files in My Games/XCOM 2 and the Mod file in XCOM 2 SDK is there anything else apart from re-installing the game I can try? Link to comment Share on other sites More sharing options...
traenol Posted March 6, 2016 Share Posted March 6, 2016 Well, from what little code you posted ... why are the headers different? From: [Soldier X2CharacterTemplate] To: [AdvTrooperM1 X2CharacterTemplate] If you were changing the soldiers(XCOM) to have armor, your new code at the bottom was instead giving armor to the advent troopers. Also, after deleting those ini's, start the game(with no mods running) so it rebuilds them from the defaults. If you think the defaults may have been corrupted, delete them and verify the install with steam to redownload them. doing those two things will reset you vanilla game to its installed defaults with no changes. Deleting your mod files is all you should need to do after that.(not the working version, just the ones built when you go to debug iirc, there is a thread somewhere regarding why/when to do that). Link to comment Share on other sites More sharing options...
Yzaxtol Posted March 8, 2016 Author Share Posted March 8, 2016 I've managed to fix the issue, it was a bug with the building procedure of ModBuddy, Amineri helped me to find the correct file to delete to allow ANY part of my mod to build again. Link to comment Share on other sites More sharing options...
Recommended Posts