Thanks for the tip but I really don't think it is the command buttons/sets, I double-checked them and besides would adding a stealth module effect them? Like I said before, I took a fully functional mod and added the stealth module to it and it turned out like this, I've made many attempts this weeked all with the same crash result at build-up.
Are the veterancy upgrades "built-in?" Are they in the Upgrade.ini? Whenever I've tried to add veterancy upgrades to this mod I've always had problems but I thought it was my mistake, is it possible to remove them (they aren't in the .ini)? This mod was made for me by a friend and I'm adding on to it, so I'm wondering about it.
I'll post my coding below incase I did miss something...
Code:
CommandButton AB_Command_ConstructAmericaPathfinder
Command = UNIT_BUILD
Object = AB_AmericaPathfinder
TextLabel = CONTROLBAR:ConstructAmericaInfantryPathFinder
ButtonImage = SAPathfinder1
ButtonBorderType = BUILD ; Identifier for the User as to what kind of button this is
DescriptLabel = CONTROLBAR:ToolTipAB_BuildPathFinder
End
CommandButton AB_Command_PathfinderSwitchToSniperRifle
Command = SWITCH_WEAPON
WeaponSlot = PRIMARY
Options = CHECK_LIKE OK_FOR_MULTI_SELECT
TextLabel = CONTROLBAR:PathfinderSwitchToSniperRifle
ButtonImage = SAPathFinder1
ButtonBorderType = ACTION
DescriptLabel = CONTROLBAR:ToolTipPathfinderSwitchToSniperRifle
End
CommandButton AB_Command_PathfinderSwitchToEMPGrenadeWeapon
Command = SWITCH_WEAPON
WeaponSlot = SECONDARY
Options = CHECK_LIKE OK_FOR_MULTI_SELECT
TextLabel = CONTROLBAR:PathfinderSwitchToEMPGrenadeWeapon
ButtonImage = SSEMP
ButtonBorderType = ACTION
DescriptLabel = CONTROLBAR:ToolTipPathfinderSwitchToEMPGrenadeWeapon
End
CommandSet AB_AmericaBarracksCommandSet
1 = AB_Command_ConstructAmericaRanger
2 = AB_Command_ConstructAmericaMissileDefender
3 = AB_Command_ConstructAmericaColonelBurton
4 = AB_Command_ConstructAmericaPathfinder
6 = AB_Command_ConstructAmericaPilot
9 = Command_UpgradeAmericaRangerFlashBangGrenade
10 = Command_UpgradeAmericaRangerCaptureBuilding
13 = Command_SetRallyPoint
14 = Command_Sell
End
CommandSet AB_Command_AmericaPathfinder
1 = AB_Command_PathfinderSwitchToSniperRifle
2 = AB_Command_PathfinderSwitchToEMPGrenadeWeapon
11 = Command_AttackMove
13 = Command_Guard
14 = Command_Stop
End
[....] ExperienceValue = 40 40 60 80 ;Experience point value at each level
ExperienceRequired = 0 50 100 200 ;Experience points needed to gain each level
IsTrainable = Yes ;Can gain experience
CrushableLevel = 0 ;What am I? 0 = for infantry, 1 = for trees, 2 = general vehicles
CommandSet = AB_Command_AmericaPathfinder
Any other areas I need to check?
EDIT: added code