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

Notification

Icon
Error

Mabus2018 Offline
#1 Posted : Wednesday, June 13, 2018 4:00:36 AM(UTC)
Mabus2018
Private
Joined: 1/7/2018(UTC)
Posts: 26

Thanks: 4 times
Hi all,

I'm trying to mod the Boss General to include the USA's 'SuperweaponMOAB'

The MOAB appears as an option/upgrade in the Strategy Center, but I'm trying to find a way to make this ability available to the Boss General.

Can someone outline a step-by-step process for achieving this?

Any help would be greatly appreciated.
Sponsor
Zatsupachi Offline
#2 Posted : Wednesday, June 13, 2018 9:11:50 PM(UTC)
Zatsupachi
Major
Joined: 3/27/2015(UTC)
Posts: 460

Thanks: 4 times
Was thanked: 201 time(s) in 147 post(s)
Do you want to go straight for MOAB?

If yes:


No, you want to be like how it normally goes:
You can just look at how vanilla America does it.
Go get the upgrade button from the Strategy Center and slap it on the appropriate commandset.

Edited by user Wednesday, June 13, 2018 9:13:08 PM(UTC)  | Reason: Not specified

"It's precision_bomber."

Death Label HAS BEEN RELEASED(go get v0.99):
http://www.moddb.com/mod...oads/death-label-ver-099

Next Episode:
precision_bomber's Zero Hour SCIENCE!
Unknown Editor Offline
#3 Posted : Wednesday, June 13, 2018 10:17:35 PM(UTC)
Unknown Editor
Major
Joined: 3/22/2017(UTC)
Posts: 261
Location: Some where on the Earth

Thanks: 119 times
Was thanked: 62 time(s) in 54 post(s)
NOTE : FOLLOWING GENERICALLY WORK FOR MAP.INI FILES

Step01 :
You'll need Daisy Cutter Purchase Button :
As such , You should include it here :
Code:

CommandSet Boss_SCIENCE_CHINA_CommandSetRank8
 1 = Command_PurchaseScienceEMPPulse
 2 = Command_PurchaseScienceSpectreGunship
 3 = Command_PurchaseScienceSneakAttack
 4 = Command_PurchaseScienceDaisyCutter
END


Step02 :
You'll need to make Daisy Cutter grantable for Boss , not only America .
Code:

SCIENCE_DaisyCutter
 PrerequisiteSciences = SCIENCE_AMERICA SCIENCE_Rank5
End

So , Just Delete SCIENCE_AMERICA from the Prerequisites ...
Code:

SCIENCE_DaisyCutter
 PrerequisiteSciences = SCIENCE_Rank5
End


Step03 :
You'll need to include the MOAB upgrade somewhere VALID in Boss Structures ...
I think Particle Cannon is the thing :
A. go and check "INI\Object\BossGeneral.ini" and find out "Boss_ParticleCannonUplink" .
B. Look if it does have "ProductionUpdate" ; This update is required for any Construction or Upgrade .
- This Structure does have it but if you want to apply this to another which doesn't have , You can sure Apply the Following code
Code:

Object NAME
 AddModule
  Behavior = ProductionUpdate ModuleTag_Productive
  ; The module above is required to allow Object Construct units or Upgrade .
  End
 End
End


C. After Validating "ProductionUpdate" You'll need to add MOAB Upgrade button to structure .
So , Check for the CommandSet in ***DESIGN parameters *** of Object .
Boss_ParticleCannonUplink's is "Boss_AmericaParticleUplinkCannonCommandSet"

D. Check INI\CommandSet.ini for CommandSet , Then Add the Upgrade button to an empty place of CommandSet or You can also Replace it with what you think is no Neccessary .
Code:

CommandSet Boss_AmericaParticleUplinkCannonCommandSet
  1 = Command_FireParticleUplinkCannon
  4 = Command_UpgradeAmericaSentryDroneGun
  5 = Command_UpgradeAmericaMOAB
  6 = Command_UpgradeAmericaCompositeArmor
  8 = Command_UpgradeAmericaAdvancedTraining
 12 = Command_UpgradeChinaMines
 14 = Command_Sell
End


E. Add GrantScienceUpgrade to Grant "SCIENCE_MOAB" for Player upon the Upgrade .
Code:


Step04 :
You'll need SPECIAL POWER Support in your Command Center and Shortcut list .
To add the Support to Command Center (Can not be deployed without) Which can be other Structures too but requires the settings :
A. Add the OCLSpecialPower Module to the structure :
Code:

Object Boss_CommandCenter
 AddModule
  Behavior           = OCLSpecialPower ModuleTag_DaisyCutter
   SpecialPowerTemplate = SuperweaponDaisyCutter
   OCL                  = SUPERWEAPON_DaisyCutter
   UpgradeOCL           = SCIENCE_MOAB SUPERWEAPON_MOAB
   CreateLocation       = CREATE_AT_EDGE_NEAR_SOURCE
  End
 End
End


B. Setup the IN-Structure CommandSet , To make the availbility of Commanding Daisycutter of MOAB from a Specific Structure .
Code:

CommandSet Boss_ChinaCommandCenterCommandSet
  1 = Boss_Command_ConstructChinaDozer
  3 = Command_DaisyCutter
  5 = Command_ArtilleryBarrage
  6 = Command_EMPPulse
  7 = Command_ClusterMines
  8 = Command_SpectreGunship
  9 = Command_SneakAttack
 10 = Command_ChinaCarpetBomb
 11 = Command_UpgradeChinaRadar
 12 = Command_UpgradeChinaMines
 13 = Command_SetRallyPoint
 14 = Command_Sell
End


Also To Display Daisy cutter or MOAB in Shortcut , Easily add the Button to CommandSet :
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_DaisyCutterFromShortcut
END


5. Have fun and Report me if this doesn't work properly which requires my Full Apology .

Edited by user Wednesday, June 13, 2018 10:21:28 PM(UTC)  | Reason: Not specified

Asking is Not a Problem , Problem is Not to Know Something .

Operation : Dark Angel
Static : Launch Delayed
Reason : Uncool Terrain - Old Logic in use - Lack of Performance
Status : Applying new Terrain - Applying new Logic - Increasing Performance by 300%
Annihilationzh Offline
#4 Posted : Thursday, June 14, 2018 6:38:11 AM(UTC)
Annihilationzh
General
Joined: 8/2/2008(UTC)
Posts: 1,693
United Kingdom

Thanks: 26 times
Was thanked: 427 time(s) in 292 post(s)
Originally Posted by: Unknown Editor Go to Quoted Post
NOTE : FOLLOWING GENERICALLY WORK FOR MAP.INI FILES


Been a while since I last did this, but IIRC you can simplify all that with just this:

Code:
CommandSet Boss_SCIENCE_CHINA_CommandSetRank8
 4 = Command_PurchaseScienceDaisyCutter
End

CommandSet SpecialPowerShortcutBoss
 10 = Command_DaisyCutterFromShortcut
End

CommandSet Boss_AmericaParticleUplinkCannonCommandSet
  5 = Command_UpgradeAmericaMOAB
End

CommandSet Boss_ChinaCommandCenterCommandSet
  3 = Command_DaisyCutter
End

Object Boss_CommandCenter
 AddModule
  Behavior           = OCLSpecialPower ModuleTag_DaisyCutter
   SpecialPowerTemplate = SuperweaponDaisyCutter
   OCL                  = SUPERWEAPON_DaisyCutter
   UpgradeOCL           = SCIENCE_MOAB SUPERWEAPON_MOAB
   CreateLocation       = CREATE_AT_EDGE_NEAR_SOURCE
  End
 End
End


Step02 is entirely unnecessary - the boss is already considered american.
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.
 1 user thanked Annihilationzh for this useful post.
Mabus2018 on 6/22/2018(UTC)
Unknown Editor Offline
#5 Posted : Thursday, June 14, 2018 11:57:58 AM(UTC)
Unknown Editor
Major
Joined: 3/22/2017(UTC)
Posts: 261
Location: Some where on the Earth

Thanks: 119 times
Was thanked: 62 time(s) in 54 post(s)
Oh , I knew it . I totally forgot to include GrantScienceUpgrade
Asking is Not a Problem , Problem is Not to Know Something .

Operation : Dark Angel
Static : Launch Delayed
Reason : Uncool Terrain - Old Logic in use - Lack of Performance
Status : Applying new Terrain - Applying new Logic - Increasing Performance by 300%
Mabus2018 Offline
#6 Posted : Thursday, June 21, 2018 5:57:51 AM(UTC)
Mabus2018
Private
Joined: 1/7/2018(UTC)
Posts: 26

Thanks: 4 times
Ok, it worked! Thanks guys, I appreciate your help.

Edited by user Friday, June 22, 2018 8:01:21 PM(UTC)  | Reason: Not specified

Mabus2018 Offline
#7 Posted : Friday, June 22, 2018 8:36:59 PM(UTC)
Mabus2018
Private
Joined: 1/7/2018(UTC)
Posts: 26

Thanks: 4 times
Hey guys, a quick question. The fuel-air bomb works fine, but when the MOAB upgrade becomes available in the Particle Uplink Cannon, the button doesn't appear on the right side of the screen as an actionable button. What have I missed?

Edited by user Friday, June 22, 2018 8:58:35 PM(UTC)  | Reason: Not specified

Unknown Editor Offline
#8 Posted : Friday, June 22, 2018 9:23:42 PM(UTC)
Unknown Editor
Major
Joined: 3/22/2017(UTC)
Posts: 261
Location: Some where on the Earth

Thanks: 119 times
Was thanked: 62 time(s) in 54 post(s)
-- Would you please confirm one of this :
1. When You Upgrade the Button is still "Full air Bomb" not "MOAB" .
2. When you Upgrade the Button disappears .
3. When you Upgrade the Button doesn't change it's Image .
Asking is Not a Problem , Problem is Not to Know Something .

Operation : Dark Angel
Static : Launch Delayed
Reason : Uncool Terrain - Old Logic in use - Lack of Performance
Status : Applying new Terrain - Applying new Logic - Increasing Performance by 300%
Mabus2018 Offline
#9 Posted : Saturday, June 23, 2018 5:52:28 AM(UTC)
Mabus2018
Private
Joined: 1/7/2018(UTC)
Posts: 26

Thanks: 4 times
Originally Posted by: Unknown Editor Go to Quoted Post
-- Would you please confirm one of this :
1. When You Upgrade the Button is still "Full air Bomb" not "MOAB" .


The MOAB button doesn't disappear from the Particle Uplink Cannon upgrades, as such. After the timer gets to the end and it's been 'purchased', it just appears dimmed out like the other upgrades that have been purchased.

I can still use the Fuel-Air Bomb. It just seems like somewhere in the mod's steps, whatever it is that spawns the timer on the right side of the page hasn't worked.

Unknown Editor Offline
#10 Posted : Saturday, June 23, 2018 6:52:27 AM(UTC)
Unknown Editor
Major
Joined: 3/22/2017(UTC)
Posts: 261
Location: Some where on the Earth

Thanks: 119 times
Was thanked: 62 time(s) in 54 post(s)
Well I actually announced XD

I forgot to include GrantScienceUpgrade ; Sorry , My Fault .

Either use this for map.ini files :

Code:

CommandSet Boss_ChinaCommandCenterCommandSet
 3 = Command_DaisyCutter
End

CommandSet Boss_AmericaParticleUplinkCannonCommandSet
 5 = Command_UpgradeAmericaMOAB
End

CommandSet Boss_SCIENCE_CHINA_CommandSetRank8
 4 = Command_PurchaseScienceDaisyCutter
End

CommandSet SpecialPowerShortcutBoss
 10 = Command_DaisyCutterFromShortcut
End

Object Boss_CommandCenter
 AddModule
  Behavior              = OCLSpecialPower ModuleTag_DaisyCutter
   SpecialPowerTemplate = SuperweaponDaisyCutter
   OCL                  = SUPERWEAPON_DaisyCutter
   UpgradeOCL           = SCIENCE_MOAB SUPERWEAPON_MOAB
   CreateLocation       = CREATE_AT_EDGE_NEAR_SOURCE
  End
  Behavior              = GrantScienceUpgrade ModuleTag_UPScience
   GrantScience         = SCIENCE_MOAB
   TriggeredBy          = Upgrade_AmericaMOAB
  End
 End
End


or also add this to your modded commandcenter : (If you made a mod)

Quote:

Behavior = GrantScienceUpgrade ModuleTag_UPScience
GrantScience = SCIENCE_MOAB
TriggeredBy = Upgrade_AmericaMOAB
End


Good Luck Big SmileThumb Up

Edited by user Saturday, June 23, 2018 6:57:51 AM(UTC)  | Reason: Not specified

Asking is Not a Problem , Problem is Not to Know Something .

Operation : Dark Angel
Static : Launch Delayed
Reason : Uncool Terrain - Old Logic in use - Lack of Performance
Status : Applying new Terrain - Applying new Logic - Increasing Performance by 300%
 1 user thanked Unknown Editor for this useful post.
Mabus2018 on 6/23/2018(UTC)
Mabus2018 Offline
#11 Posted : Saturday, June 23, 2018 4:47:38 PM(UTC)
Mabus2018
Private
Joined: 1/7/2018(UTC)
Posts: 26

Thanks: 4 times
Perfect! It works now.

Thank you for all your help and patience guys, it's much appreciated.
Mabus2018 Offline
#12 Posted : Wednesday, June 27, 2018 3:13:09 AM(UTC)
Mabus2018
Private
Joined: 1/7/2018(UTC)
Posts: 26

Thanks: 4 times
Hey guys, one more thing.

Each time I deploy the MOAB I have to select the CommandCenter first. Shouldn't the MOAB button appear on the right side of the screen along with the ArtilleryBarrage, SpectorGunShip and so on? How do I make it appear there with the others?

adrianemapmaker Offline
#13 Posted : Wednesday, June 27, 2018 4:56:33 AM(UTC)
adrianemapmaker
Colonel
C&C Labs Staff: Labs Staff MemberMaps Staff: Maps Staff Member
Joined: 3/8/2016(UTC)
Posts: 904
Philippines
Location: Norzagaray,Bulacan

Thanks: 303 times
Was thanked: 134 time(s) in 106 post(s)
go to commandset.ini and find for word shortcut using ctrl f
My Tutorials For Generals/ZH:Link

My Featured Map:Humanity Last Hope - Zombie Map Series :Link

Conflict of Interest , I Have Interest in Conflict.




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.

Powered by YAF 1.9.6.1 | YAF © 2003-2018, Yet Another Forum.NET
This page was generated in 1.189 seconds.