Azworai Posted February 18, 2016 Author Share Posted February 18, 2016 Don't the .ini files inside a mods config folder detail the changes made in the .ini's? Link to comment Share on other sites More sharing options...
hairlessorphan Posted February 18, 2016 Share Posted February 18, 2016 Yeah. When you preface them with a +, it will add that line to the corresponding .ini file in your /Documents/ folder. Link to comment Share on other sites More sharing options...
Azworai Posted February 18, 2016 Author Share Posted February 18, 2016 (edited) Yes, that's where I've been searching, though I'm going to test the Shadow class in the debug based on your assumption, it hadn't occurred to me to check that. o.o Edit: Shadowclass seems to have weapon allotments in tactical that they don't even have ingame, but it can totally select primary/secondary weapons, unlike my class. Edited February 18, 2016 by Azworai Link to comment Share on other sites More sharing options...
hairlessorphan Posted February 18, 2016 Share Posted February 18, 2016 (edited) It looks like the Shadow class is allowed to use Rifles and Shotguns as primary, Pistols and Swords as secondary. From XComClassData.ini: [Shadow X2SoldierClassTemplate] +bMultiplayerOnly=0 +ClassPoints=4 +IconImage="img:///UILibrary_StrategyImages.X2StrategyMap.MissionIcon_BlackMarket" +NumInForcedDeck=1 +NumInDeck=4 +KillAssistsPerKill=4 +SquaddieLoadout="SquaddieShadow" +AllowedWeapons=(SlotType=eInvSlot_PrimaryWeapon, WeaponType="shotgun") +AllowedWeapons=(SlotType=eInvSlot_PrimaryWeapon, WeaponType="rifle") +AllowedWeapons=(SlotType=eInvSlot_SecondaryWeapon, WeaponType="sword") +AllowedWeapons=(SlotType=eInvSlot_SecondaryWeapon, WeaponType="pistol") But their default loadout (from the SquaddieLoadout entry above) is Rifle and Pistol. From XComGameData.ini: [XComGame.X2ItemTemplateManager] +Loadouts=(LoadoutName="SquaddieShadow", Items[0]=(Item="AssaultRifle_CV"), Items[1]=(Item="Pistol_CV")) Edited February 18, 2016 by hairlessorphan Link to comment Share on other sites More sharing options...
Azworai Posted February 18, 2016 Author Share Posted February 18, 2016 Correct. The tactical debug even gives them option such as 'heavy turret primary'. The tactical debug for my Heavy Class returns only 'none' as an option. [XComGame.X2SoldierClass_DefaultClasses]+SoldierClasses=Heavy+bMultiplayerOnly=0+ClassPoints=4+IconImage="img:///UILibrary_Common.class_ranger"+NumInForcedDeck=1+NumInDeck=4+KillAssistsPerKill=4+SquaddieLoadout=SquaddieHeavy+AllowedWeapons=(SlotType=eInvSlot_PrimaryWeapon, WeaponType="shotgun")+AllowedWeapons=(SlotType=eInvSlot_PrimaryWeapon, WeaponType="rifle")+AllowedWeapons=(SlotType=eInvSlot_PrimaryWeapon, WeaponType="cannon")+AllowedWeapons=(SlotType=eInvSlot_SecondaryWeapon, WeaponType="sword") That's my XComClassData.ini, [XComGame.X2ItemTemplateManager]+Loadouts=(LoadoutName="SquaddieHeavy", Items[0]=(Item="Cannon_CV"), Items[1]=(Item="Sword_CV")) [XComGame.XGStrategy]+DEBUG_StartingSoldierClasses="Heavy"My XComGameData.ini Link to comment Share on other sites More sharing options...
hairlessorphan Posted February 18, 2016 Share Posted February 18, 2016 I'm not an .ini expert, so not sure what's happening here, but first thing I noticed is it looks like you're missing the section header: [shadow X2SoldierClassTemplate] Or, for you, it would probably be [Heavy X2SoldierClassTemplate] Link to comment Share on other sites More sharing options...
Azworai Posted February 18, 2016 Author Share Posted February 18, 2016 Attempting to add that in, though I don't imagine that'd change it, I'm sure you're more experienced than me, and who knows with coding sometimes. :P Thank you for the help, by the way. Even if this mod attempt turns out to be unsalvageable, any help bouncing ideas is immensely helpful to my sanity, as I'd love to be learn to create content for this game. Link to comment Share on other sites More sharing options...
hairlessorphan Posted February 18, 2016 Share Posted February 18, 2016 No problem, glad to help. That section header should actually make a big difference. It's the only way the game would know that your AllowedWeapon entries belong to the Heavy class, and not to the other classes in the game. Link to comment Share on other sites More sharing options...
Azworai Posted February 18, 2016 Author Share Posted February 18, 2016 Well, it did change something. Heavy is no longer an option in the tactical debug with the above change. ;A configuration File[XComGame.X2SoldierClass_DefaultClasses][Heavy X2SoldierClassTemplate]+SoldierClasses=Heavy+bMultiplayerOnly=0+ClassPoints=4+IconImage="img:///UILibrary_Common.class_ranger"+NumInForcedDeck=1+NumInDeck=4+KillAssistsPerKill=4+SquaddieLoadout=SquaddieHeavy+AllowedWeapons=(SlotType=eInvSlot_PrimaryWeapon, WeaponType="shotgun")+AllowedWeapons=(SlotType=eInvSlot_PrimaryWeapon, WeaponType="rifle")+AllowedWeapons=(SlotType=eInvSlot_PrimaryWeapon, WeaponType="cannon")+AllowedWeapons=(SlotType=eInvSlot_SecondaryWeapon, WeaponType="sword");Squaddie+SoldierRanks=( aAbilityTree=( (AbilityName="SwordSlice", ApplyToWeaponSlot=eInvSlot_SecondaryWeapon) ), aStatProgression=((StatType=eStat_Offense,StatAmount=3), (StatType=eStat_HP,StatAmount=1), (StatType=eStat_Strength,StatAmount=0), (StatType=eStat_Hacking,StatAmount=0), (StatType=eStat_CombatSims,StatAmount=1)), );Corporal+SoldierRanks=( aAbilityTree=( (AbilityName="BlastPadding", ApplyToWeaponSlot=eInvSlot_Unknown), (AbilityName="Blademaster", ApplyToWeaponSlot=eInvSlot_SecondaryWeapon) ), \\+aStatProgression=((StatType=eStat_Offense,StatAmount=3), (StatType=eStat_HP,StatAmount=1), (StatType=eStat_Strength,StatAmount=0), (StatType=eStat_Hacking,StatAmount=5), (StatType=eStat_CombatSims,StatAmount=0)), );Sargeant+SoldierRanks=( aAbilityTree=( (AbilityName="Demolition", ApplyToWeaponSlot=eInvSlot_PrimaryWeapon), (AbilityName="Shadowstep", ApplyToWeaponSlot=eInvSlot_Unknown) ), aStatProgression=((StatType=eStat_Offense,StatAmount=3), (StatType=eStat_HP,StatAmount=1), (StatType=eStat_Strength,StatAmount=0), (StatType=eStat_Hacking,StatAmount=0), (StatType=eStat_CombatSims,StatAmount=0)), );Lieutenant+SoldierRanks=( aAbilityTree=( (AbilityName="Death From Above", ApplyToWeaponSlot=eInvSlot_PrimaryWeapon), (AbilityName="RunAndGun") ), aStatProgression=((StatType=eStat_Offense,StatAmount=2), (StatType=eStat_HP,StatAmount=1), (StatType=eStat_Strength,StatAmount=1), (StatType=eStat_Hacking,StatAmount=0), (StatType=eStat_CombatSims,StatAmount=0)), );Captain+SoldierRanks=( aAbilityTree=( (AbilityName="Implacable"), (AbilityName="Bladestorm", ApplyToWeaponSlot=eInvSlot_SecondaryWeapon) ), aStatProgression=((StatType=eStat_Offense,StatAmount=2), (StatType=eStat_HP,StatAmount=0), (StatType=eStat_Strength,StatAmount=0), (StatType=eStat_Hacking,StatAmount=5), (StatType=eStat_CombatSims,StatAmount=0)), );Major+SoldierRanks=( aAbilityTree=( (AbilityName="Steady Hands"), (AbilityName="Untouchable") ), aStatProgression=((StatType=eStat_Offense,StatAmount=1), (StatType=eStat_HP,StatAmount=1), (StatType=eStat_Strength,StatAmount=0), (StatType=eStat_Hacking,StatAmount=0), (StatType=eStat_CombatSims,StatAmount=0)), );Colonel+SoldierRanks=( aAbilityTree=( (AbilityName="SaturationFire", ApplyToWeaponSlot=eInvSlot_PrimaryWeapon), (AbilityName="Reaper", ApplyToWeaponSlot=eInvSlot_SecondaryWeapon) ), aStatProgression=((StatType=eStat_Offense,StatAmount=1), (StatType=eStat_HP,StatAmount=1), (StatType=eStat_Strength,StatAmount=1), (StatType=eStat_Hacking,StatAmount=5), (StatType=eStat_CombatSims,StatAmount=0)), )Did I screw something up? Link to comment Share on other sites More sharing options...
hairlessorphan Posted February 18, 2016 Share Posted February 18, 2016 (edited) Looks like it... The headers at the top look misplaced. Yours: [XComGame.X2SoldierClass_DefaultClasses] [Heavy X2SoldierClassTemplate] +SoldierClasses=Heavy +bMultiplayerOnly=0 +ClassPoints=4 ... Looks like it should be: [XComGame.X2SoldierClass_DefaultClasses] +SoldierClasses=Heavy [Heavy X2SoldierClassTemplate] +bMultiplayerOnly=0 +ClassPoints=4 ... What this says, roughly paraphrased, is: Header: please add these classes to the gameentry: Heavy class Header: here are the details for the Heavy soldier class templateentry: not a multiplayer-only classentry: worth 4 class points (whatever that is)etc... Edited February 18, 2016 by hairlessorphan Link to comment Share on other sites More sharing options...
Recommended Posts