ENUM issues and Upgrade.ini issues
Hello.
I'm new to your site but not new to C&C generals mods.
After much hassle i'm forced to ask for advice.
I'v pretty much finished a mod, based on the Reborn 5.0 mod (Horray for those guys).
*** The Upgrade prob ***
I need to add a new Upgrade in Upgrade.ini but the game will crash and not load if i do.
here is the text for the commandbutton.ini
CommandButton Command_UpgradeChinaCallToArms
Command = PLAYER_UPGRADE
Upgrade = Upgrade_ChinaCallToArms
TextLabel = CONTROLBAR:UpgradeChinaCallToArms
ButtonImage = SNCallToArms
ButtonBorderType = UPGRADE
DescriptLabel = CONTROLBAR:TooltipChinaCallToArms
End
this is the matching text from Upgrade.ini
Upgrade Upgrade_ChinaCallToArms
DisplayName = CONTROLBAR:UpgradeChinaCallToArms
Type = OBJECT
BuildTime = 60.0
BuildCost = 2000
ButtonImage = SNCallToArms
ResearchSound = RedGuardVoiceUpgradePatriotism
End
all the pictures and sound match but the Upgrade is incompatable with the program.
Am i missing a vital step in another file? Is there a limit on the number of upgrades that i have exceeded? Has the original Reborn mod corrupted the system in some way? or did i just make a typo?
*** The ENUM problem ***
I've pretty much worked out that each ENUM is a counter for the special powers, how do you add a new one so that your new special power does not overlap some old one? Is there another file somewhere outside the Specialpowers.ini file or what?
Any advice would be greatly appreciated. These things seem possible as i see new ENUM and new Upgrades in the files but cannot add my own. This leaves me tinkering with existing stuff and conducting repairs on other peoples work. Very frustrating.
Cheers
Az
Ps : I've since discovered that Zero Hour has a limit of 125 Upgrades, you must delete one to add another.
|