Posted by: AdrianeMapMaker - Sunday, January 29, 2017 5:53:52 AM
I'd Want to Add The Unused CarpetBomb in Generals Power and After i Seen This Comment, Id Been Bother by These [code=cpp] ; Rank 8 only has 1 position[/code] In adding a new Generals Power:I Need ? [b]New Ocl New CommandButton New CommandSet[/b] [b]Did i Forget Something?[/b] Since it Done i Can Used The Unused ModuleTag_23 for The Ocl Unused Command Button from its origanal ini File Unused Command Set

Posted by: klingondragon - Sunday, January 29, 2017 8:15:21 AM
[Url]http://www.cnclabs.com/modding/generals/creating-a-new-generals-power.aspx[/Url]

Posted by: AdrianeMapMaker - Monday, January 30, 2017 5:14:44 AM
i tried it now, Some in The Code IS Blocked by The Comment Symbol ";" or Undone i tried to open the game ... [b]crash[/b] As i Expected Can Anyone Help Me Here ? Here is the code needed [code=cpp]:-TheCommandButton--------------------------- CommandButton Command_CarpetBomb Command = SPECIAL_POWER SpecialPower = SuperweaponCarpetBomb Options = NEED_SPECIAL_POWER_SCIENCE NEED_TARGET_POS CONTEXTMODE_COMMAND TextLabel = CONTROLBAR:CarpetBomb ButtonImage = SSCarpetBomb RadiusCursorType = CARPETBOMB InvalidCursorName = GenericInvalid ButtonBorderType = ACTION ; Identifier for the User as to what kind of button this is DescriptLabel = CONTROLBAR:TooltipCarpetBomb End :-TheOCL---------------------------------------------- ObjectCreationList SUPERWEAPON_CarpetBomb DeliverPayload Transport = AmericaJetB52 StartAtPreferredHeight = Yes StartAtMaxSpeed = Yes MaxAttempts = 1 DropOffset = X:0 Y:0 Z:-2 DropVariance = X:30 Y:40 Z:0 DropDelay = 300 ;500 ; time in between each item dropped (if more than one) Payload = CarpetBomb 15 DeliveryDistance = 400 DeliveryDecalRadius = 100 DeliveryDecal Texture = SCCA10Strike_USA Style = SHADOW_ALPHA_DECAL OpacityMin = 25% OpacityMax = 50% OpacityThrobTime = 500 Color = R:255 G:156 B:0 A:255 OnlyVisibleToOwningPlayer = Yes End End End ;-TheScience-------------------------------------------- Science SCIENCE_CarpetBomb PrerequisiteSciences = SCIENCE_AMERICA SCIENCE_Rank3 SciencePurchasePointCost = 0 ; note that this means "not purchasable", NOT "free"! IsGrantable = Yes DisplayName = SCIENCE:TempName Description = SCIENCE:TempDescription End ;-TheSpecialPower------------------------------------ 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 = Yes SharedSyncedTimer = Yes ViewObjectDuration = 40000 ViewObjectRange = 250 RadiusCursorRadius = 100 End ;-TheCcModule---------------------------------------------------- Object AmericaCommandCenter AddModule Behavior = OCLSpecialPower ModuleTag_Override01 SpecialPowerTemplate = SuperweaponCarpetBomb OCL = SUPERWEAPON_CarpetBomb CreateLocation = CREATE_AT_EDGE_NEAR_SOURCE End End End ;-TheCommandSetinCc---------------------------------- CommandSet AmericaCommandCenterCommandSet 1 = Command_ConstructAmericaDozer 2 = Command_CarpetBomb 5 = Command_A10ThunderboltMissileStrike 6 = Command_Paradrop 7 = Command_SpyDrone 8 = Command_EmergencyRepair 9 = Command_DaisyCutter 10 = Command_SpySatelliteScan 11 = Command_SetRallyPoint 12 = Command_Sell End ;-TheCommandSet In Gen powers------------------------ CommandSet SCIENCE_AMERICA_CommandSetRank3 1 = Command_PurchaseSciencePathfinder 4 = Command_PurchaseScienceParadrop1 5 = Command_PurchaseScienceParadrop2 6 = Command_PurchaseScienceParadrop3 7 = Command_PurchaseScienceA10ThunderboltMissileStrike1 8 = Command_PurchaseScienceA10ThunderboltMissileStrike2 9 = Command_PurchaseScienceA10ThunderboltMissileStrike3 10 = Command_PurchaseScienceEmergencyRepair1 11 = Command_PurchaseScienceEmergencyRepair2 12 = Command_PurchaseScienceEmergencyRepair3 13 = Command_CarpetBomb END[/code]

Posted by: AdrianeMapMaker - Monday, February 6, 2017 5:13:54 AM
[b]Update I Have Been Experementing this Dang CarpetBomb for 2Hours Nothing Happens .... Its Crashing The Game When I tried to Click The Generals Power Why!!!!!!!!!!!!!!! I Need Some Help Over Here Guys Pls [/b]

Posted by: klingondragon - Monday, February 6, 2017 10:28:29 AM
Are you messing around with custom files and bigs again?

Posted by: AdrianeMapMaker - Tuesday, February 7, 2017 4:23:39 AM
Nope in a Map.ini file

Posted by: Annihilationzh - Tuesday, February 7, 2017 3:08:51 PM
I'm not sure why you have so much unnecessary code. This is adapted from the vGenerals mission that has a carpet bomb. [code=plain]CommandSet AmericaCommandCenterCommandSet 1 = Command_ConstructAmericaDozer 2 = Command_CarpetBomb 5 = Command_A10ThunderboltMissileStrike 6 = Command_Paradrop 7 = Command_SpyDrone 8 = Command_EmergencyRepair 9 = Command_DaisyCutter 10 = Command_SpySatelliteScan 11 = Command_SetRallyPoint 12 = Command_Sell End Object AmericaCommandCenter AddModule Behavior = OCLSpecialPower ModuleTag_Override01 SpecialPowerTemplate = SuperweaponCarpetBomb OCL = SUPERWEAPON_CarpetBomb CreateLocation = CREATE_AT_EDGE_NEAR_SOURCE End End End[/code]

Posted by: klingondragon - Tuesday, February 7, 2017 5:28:58 PM
This is where our problems arise. Most modding questions are about making a mod. Not making a map.ini. Hence all the extra code. It's all from that tutorial.