Okay, just to get familiar with how General points work, I've attempted to add the Carpet Bombing from Singleplayer into multiplayer but can't seem to get it right as the game doesn't load. So here's what I've done...
I've added a new SCIENCE power under science.ini
Quote:
; --- LEVEL 8 POWERS ---
Science SCIENCE_DaisyCutter
PrerequisiteSciences = SCIENCE_AMERICA SCIENCE_Rank5
SciencePurchasePointCost = 1
IsGrantable = Yes
DisplayName = SCIENCE:USADaisyCutter
Description = CONTROLBAR:ToolTipUSAScienceDaisyCutter
End
Science SCIENCE_CarpetBomb
PrerequisiteSciences = SCIENCE_AMERICA SCIENCE_Rank5
SciencePurchasePointCost = 1
IsGrantable = Yes
DisplayName = SCIENCE:USACarpetBomb
Description = CONTROLBAR:ToolTipUSAScienceCarpetBomb
End
|
I've also created the DisplayName and Description in the generals.csf file.
The SpecialPower was already there and it looks like this:
Quote:
SpecialPower SuperweaponCarpetBomb
Enum = SPECIAL_CARPET_BOMB
ReloadTime = 150000 ; in milliseconds
RequiredScience = SCIENCE_CarpetBomb;;; Never ever ever use a required science with a public timer, since the hiddenbyscience never clears
PublicTimer = No
SharedSyncedTimer = Yes
ViewObjectDuration = 40000
ViewObjectRange = 250
RadiusCursorRadius = 100
End
|
I set PublicTimer to No and uncommented the RequiredScience as the comment warns not to use a public timer with a required science.
Next, I changed the commandset which looks like this:
Quote:
; Rank 8 now has 2 positions
CommandSet SCIENCE_AMERICA_CommandSetRank8
1 = Command_PurchaseScienceDaisyCutter
2 = Command_PurchaseScienceCarpetBomb
END
|
And added to the Commandbutton...
Quote:
CommandButton Command_PurchaseScienceCarpetBomb
Command = PURCHASE_SCIENCE
Science = SCIENCE_CarpetBomb
ButtonImage = SACCarpetBomb
ButtonBorderType = UPGRADE ; Identifier for the User as to what kind of button this is
End
|
I even got the ButtonImage and so forth.
But Generals doesn't load up! If I comment out the Carpet Bomb in the science.ini file (the quoted text in bold), it works but no Carpet Bomb!
Can anyone help me out?