I can't get a Promotion to work :( -1 reply

Please wait...

anandus

I'm too cool to Post

50 XP

3rd April 2003

0 Uploads

3 Posts

0 Threads

#1 16 years ago

Okay, I'm making a mod. In the mod there a special Chinese Mig, which shoots a Nuke. But I want to make it available through a promotion (just like you need to choose the stealthfighter through a promotion). But for some reason it won't work :( Here's the code in factionunit.ini: Prerequisites Object = ChinaAirfield Science = SCIENCE_Nukemig End And here's the part in science.ini: Science SCIENCE_NukeMig PrerequisiteSciences = SCIENCE_CHINA SCIENCE_Rank1 SciencePurchasePointCost = 1 IsGrantable = Yes DisplayName = SCIENCE:ChinaNukeMig Description = CONTROLBAR:ToolTipChinaScienceNukeMig End Here CommandButton.ini: CommandButton Command_PurchaseScienceNukeMig Command = PURCHASE_SCIENCE Science = SCIENCE_NukeMig Object = ChinaJetMIGNuke ButtonImage = SNNukeLaunch ButtonBorderType = UPGRADE ; Identifier for the User as to what kind of button this is End And the CommandSet.ini: CommandSet SCIENCE_CHINA_CommandSetRank1 1 = Command_PurchaseScienceRedGuardTraining 2 = Command_PurchaseScienceNukeMig 3 = Command_PurchaseScienceNukeLauncher END This ought to work, right? Can anybody shed some light on this? I hope somebody Can help me?




Etherealsilk

Addicted to GF

50 XP

30th March 2003

0 Uploads

244 Posts

0 Threads

#2 16 years ago

did you add the command button to the china airfield as well? What exactly is it not doing? Are you getting a technical error code or is it just not showing up in game?




anandus

I'm too cool to Post

50 XP

3rd April 2003

0 Uploads

3 Posts

0 Threads

#3 16 years ago

Stupid me.

I only just found out that in the 'my documents/generals'-folder there's a specified errorlog...

And what it turned out to be: I replaced Artilleryveterancy, but left those sciences in aidata and some other files.

Doh! Commenting them out did the trick... Stupid, silly me!