Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
Offline Sebastián  
#1 Posted : Saturday, October 21, 2017 10:54:36 AM(UTC)
Sebastián
Private
Joined: 10/13/2017(UTC)
Posts: 7
Argentina
Location: Buenos Aires

Hello, i got this problem with SW, everytime i try to add other super power to other general (leang in this case), doesn't work in any way, i don't know what is wrong, if someone can check it out and tell me how fix it, i will be really thankfull.

Commandbutton.ini

Code:

CommandButton Boss_Command_PurchaseScienceEmergencyRepair
  Command           = PURCHASE_SCIENCE
  Science           = Boss_SCIENCE_EmergencyRepair
  ButtonImage       = SSRepairDrone
  ButtonBorderType  = UPGRADE ; Identifier for the User as to what kind of button this is
End

CommandButton Command_BossEmergencyRepair
  Command           = SPECIAL_POWER
  SpecialPower      = Boss_SuperweaponEmergencyRepair
  Options           = NEED_SPECIAL_POWER_SCIENCE NEED_TARGET_POS CONTEXTMODE_COMMAND
  Science           = Boss_SCIENCE_EmergencyRepair ;These will cause the buttons to change icons, nothing more 
  TextLabel         = CONTROLBAR:EmergencyRepair
  ButtonImage       = SSRepair
  ButtonBorderType  = ACTION
  DescriptLabel     = CONTROLBAR:TooltipFireEmergencyRepair
  RadiusCursorType  = EMERGENCY_REPAIR
  InvalidCursorName = GenericInvalid
End

CommandButton Command_BossEmergencyRepairFromShortcut
  Command           = SPECIAL_POWER_FROM_SHORTCUT
  SpecialPower      = Boss_SuperweaponEmergencyRepair
  Options           = NEED_SPECIAL_POWER_SCIENCE NEED_TARGET_POS CONTEXTMODE_COMMAND
  Science           = Boss_SCIENCE_EmergencyRepair ;These will cause the buttons to change icons, nothing more 
  TextLabel         = GUI:SuperweaponEmergencyRepair
  ButtonImage       = SSRepair
  ButtonBorderType  = ACTION
  DescriptLabel     = CONTROLBAR:TooltipFireEmergencyRepair
  RadiusCursorType  = EMERGENCY_REPAIR
  InvalidCursorName = GenericInvalid
End 


Commandset.ini :

Code:

CommandSet SpecialPowerShortcutBoss
  1 = Command_ClusterMinesFromShortcut
  2 = Command_ChinaCarpetBombFromShortcut
  3 = Command_ArtilleryBarrageFromShortcut
  4 = Command_EMPPulseFromShortcut
  5 = Command_SpectreGunshipFromShortcut
  6 = Command_SneakAttackFromShortcut
  7 = Command_FireParticleUplinkCannonFromShortcut
  8 = Command_ScudStormFromShortcut
  9 = Command_NeutronMissileFromShortcut
  10 = Command_BossEmergencyRepairFromShortcut
END

CommandSet Boss_ChinaCommandCenterCommandSet
  1  = Boss_Command_ConstructChinaDozer
  2  = Boss_Command_ConstructChinaDozerDefendses

  3  = Command_ArtilleryBarrage
  4  = Command_EMPPulse
  5  = Command_ClusterMines
  6  = Command_SpectreGunship
  7  = Command_SneakAttack

  9  = Command_BossEmergencyRepair
  
  10 = Command_ChinaCarpetBomb
  11 = Command_UpgradeChinaRadar
  12 = Command_UpgradeChinaMines
  13 = Command_SetRallyPoint
  14 = Command_Sell
End

CommandSet Boss_ChinaCommandCenterCommandSetUpgrade
  1  = Boss_Command_ConstructChinaDozer
  2  = Boss_Command_ConstructChinaDozerDefendses

  3  = Command_ArtilleryBarrage
  4  = Command_EMPPulse
  5  = Command_ClusterMines
  6  = Command_SpectreGunship
  7  = Command_SneakAttack

  9  = Command_BossEmergencyRepair
  
  10 = Command_ChinaCarpetBomb
  11 = Command_UpgradeChinaRadar
  12 = Command_UpgradeChinaMines
  13 = Command_SetRallyPoint
  14 = Command_Sell
End


Science.ini:

Code:

Science Boss_SCIENCE_EmergencyRepair
  PrerequisiteSciences = SCIENCE_Rank1
  SciencePurchasePointCost = 1
  IsGrantable = Yes
  DisplayName = SCIENCE:EmergencyRepair3
  Description = CONTROLBAR:ToolTipScienceEmergencyRepair
End


Specialpower.ini

Code:

;-----------------------------------------
SpecialPower Boss_SuperweaponEmergencyRepair
  Enum              = EARLY_SPECIAL_REPAIR_VEHICLES
  ReloadTime        = 10000 ; in milliseconds
  RequiredScience   = Boss_SCIENCE_EmergencyRepair
  PublicTimer       = No
  SharedSyncedTimer   = Yes
  RadiusCursorRadius  = 300  
  InitiateAtLocationSound = EmergencyRepairActivate
  ShortcutPower       = Yes     ;Capable of being fired by the side-bar shortcut.
  AcademyClassify     = ACT_SUPERPOWER ;Considered a powerful special power that a player could fire. Not for simpler unit based powers.
End 



I don't have any crash, the problem is that is not showing in the shortcurt corner and when i try to acces the super power from the command center, it doesn't allow me to use it, i have the red cross like if i order a soldier to go over a blocked terrain.

Edited by user Saturday, October 21, 2017 12:25:14 PM(UTC)  | Reason: added [code] [/code].

Sponsor
Offline Annihilationzh  
#2 Posted : Saturday, October 21, 2017 11:52:28 AM(UTC)
Annihilationzh
General
Joined: 8/2/2008(UTC)
Posts: 1,779
United Kingdom

Thanks: 26 times
Was thanked: 475 time(s) in 331 post(s)
You're missing the code in the command center.

E.G. toxin general has this:
Code:
  Behavior           = OCLSpecialPower ModuleTag_14
    SpecialPowerTemplate = SuperweaponEmergencyRepair
    UpgradeOCL           = SCIENCE_EmergencyRepair3 SUPERWEAPON_RepairVehicles3
    UpgradeOCL           = SCIENCE_EmergencyRepair2 SUPERWEAPON_RepairVehicles2
    OCL                  = SUPERWEAPON_RepairVehicles1
    CreateLocation       = CREATE_AT_LOCATION
  End
If you need help, post in the forum. You'll get help a lot faster than if you send me a PM.

I reject all buddy requests. I don't think 'buddy' needs to be made official. It's not like you're marrying me.
Offline Sebastián  
#3 Posted : Saturday, October 21, 2017 12:22:28 PM(UTC)
Sebastián
Private
Joined: 10/13/2017(UTC)
Posts: 7
Argentina
Location: Buenos Aires

Thank you! Finally is working correctly, a really pain in the ass add general powers :/
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.