nimitz03
  • nimitz03
  • 66.5% (Friendly)
  • Private Topic Starter
16 years ago
i put all three levels of the spectre in the upgrade science command set. now i can't use it. it shows up on the purchase window i can purchase all three levels, but they don't show up on the shortcut or the command center. here's the code


from commandset.ini
CommandSet AmericaCommandCenterCommandSet
1 = Command_ConstructAmericaDozer
2 = Command_EmergencyRepair
3 = Command_SpySatelliteScan
4 = Command_SpyDrone
5 = Command_Paradrop
7 = Command_A10ThunderboltMissileStrike
8 = Command_SpectreGunship <---Here
9 = Command_DaisyCutter
10 = AirF_Command_CarpetBomb
11 = Command_FireParticleUplinkCannonFromShortcut
13 = Command_SetRallyPoint
14 = Command_Sell
End

CommandSet SCIENCE_AMERICA_CommandSetRank3
1 = Command_PurchaseScienceSpectreGunship1 2 = Command_PurchaseScienceSpectreGunship2 3 = Command_PurchaseScienceSpectreGunship3 4 = Command_PurchaseScienceA10ThunderboltMissileStrike1
5 = Command_PurchaseScienceA10ThunderboltMissileStrike2
6 = Command_PurchaseScienceA10ThunderboltMissileStrike3
7 = Command_PurchaseScienceEmergencyRepair2
8 = Command_PurchaseScienceEmergencyRepair3
10 = Command_PurchaseScienceParadrop2
11 = Command_PurchaseScienceParadrop3
END

CommandSet SpecialPowerShortcutUSA
1 = Command_SpyDroneFromShortcut
2 = Command_ParadropFromShortcut
3 = Command_A10ThunderboltMissileStrikeFromShortcut
4 = Command_EmergencyRepairFromShortcut
5 = Command_DaisyCutterFromShortcut
6 = Command_FireParticleUplinkCannonFromShortcut
7 = Command_SpySatelliteScanFromShortcut
8 = Command_SpectreGunshipFromShortcut 9 = Command_LeafletDropFromShortcut
10 = AirF_Command_CarpetBombFromShortcut
END


From commandbutton.ini
CommandButton Command_SpectreGunship
Command = SPECIAL_POWER
SpecialPower = SuperweaponSpectreGunship
Options = NEED_SPECIAL_POWER_SCIENCE NEED_TARGET_POS CONTEXTMODE_COMMAND
Science = SCIENCE_SpectreGunshipSolo ;These will cause the buttons to change icons, nothing more
TextLabel = CONTROLBAR:SpectreGunship
ButtonImage = SASpGunship; until Samm makes a new cameo for this...
ButtonBorderType = ACTION ; Identifier for the User as to what kind of button this is
DescriptLabel = CONTROLBAR:TooltipSpectreGunship
RadiusCursorType = SPECTREGUNSHIP
InvalidCursorName = GenericInvalid
End

CommandButton Command_SpectreGunshipFromShortcut
Command = SPECIAL_POWER_FROM_SHORTCUT
SpecialPower = SuperweaponSpectreGunship
Options = NEED_SPECIAL_POWER_SCIENCE NEED_TARGET_POS CONTEXTMODE_COMMAND
Science = SCIENCE_SpectreGunshipSolo ;These will cause the buttons to change icons, nothing more
TextLabel = CONTROLBAR:SpectreGunshipFromShortcut
ButtonImage = SASpGunship; until Samm makes a new cameo for this...
ButtonBorderType = ACTION ; Identifier for the User as to what kind of button this is
DescriptLabel = CONTROLBAR:TooltipSpectreGunship
RadiusCursorType = SPECTREGUNSHIP
InvalidCursorName = GenericInvalid
End

from specialpower.ini
SpecialPower SuperweaponSpectreGunship
Enum = SPECIAL_SPECTRE_GUNSHIP
ReloadTime = 240000 ; in milliseconds
RequiredScience = SCIENCE_SpectreGunshipSolo
PublicTimer = No
SharedSyncedTimer = Yes
ViewObjectDuration = 30000
ViewObjectRange = 250
RadiusCursorRadius = 200
AcademyClassify = ACT_SUPERPOWER ;Considered a powerful special power that a player could fire. Not for simpler unit based powers.
End

from science.ini
Science SCIENCE_SpectreGunshipSolo
PrerequisiteSciences = SCIENCE_AMERICA SCIENCE_Rank3
SciencePurchasePointCost = 1
IsGrantable = Yes
DisplayName = SCIENCE:USASpectreGunship1
Description = CONTROLBAR:ToolTipUSAScienceSpectreGunship
End

Science SCIENCE_SpectreGunship1
PrerequisiteSciences = SCIENCE_AMERICA SCIENCE_Rank3
SciencePurchasePointCost = 1
IsGrantable = Yes
DisplayName = SCIENCE:USASpectreGunship1
Description = CONTROLBAR:AirF_ToolTipUSAScienceSpectreGunship
End

Science SCIENCE_SpectreGunship2
PrerequisiteSciences = SCIENCE_SpectreGunship1 SCIENCE_Rank3
SciencePurchasePointCost = 1
IsGrantable = Yes
DisplayName = SCIENCE:USASpectreGunship1
Description = CONTROLBAR:AirF_ToolTipUSAScienceSpectreGunship
End

Science SCIENCE_SpectreGunship3
PrerequisiteSciences = SCIENCE_SpectreGunship2 SCIENCE_Rank3
SciencePurchasePointCost = 1
IsGrantable = Yes
DisplayName = SCIENCE:USASpectreGunship1
Description = CONTROLBAR:AirF_ToolTipUSAScienceSpectreGunship
End

from factionbuilding.ini the modules for americacommandcenter

Behavior = SpecialAbility ModuleTag_32
SpecialPowerTemplate = SuperweaponSpectreGunship
UpdateModuleStartsAttack = Yes
End
Behavior = SpectreGunshipDeploymentUpdate ModuleTag_33
SpecialPowerTemplate = SuperweaponSpectreGunship
GunshipTemplateName = AmericaJetSpectreGunship
AttackAreaRadius = 200
CreateLocation = CREATE_AT_EDGE_FARTHEST_FROM_TARGET
;other choices are: *NEAR_SOURCE *FARTHEST_FROM_SOURCE *NEAR_TARGET
End


if there are any other files i need to post let me know.

Sponsor
Annihilationzh
16 years ago
SCIENCE_SpectreGunshipSolo buys SuperweaponSpectreGunship.

SCIENCE_SpectreGunship1, SCIENCE_SpectreGunship2 & SCIENCE_SpectreGunship3 buy AirF_SuperweaponSpectreGunship.

You need to buy SCIENCE_SpectreGunshipSolo to get the spectre gunship to work. Or you can start again and take the code from airforce general to get all three working.
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.
nimitz03
  • nimitz03
  • 66.5% (Friendly)
  • Private Topic Starter
16 years ago
ok i just tested it, with no luck. i went in the airforegeneral.ini and changed all three of the spectres sides to america and prerequisites to americaairfield

something im missing?
Annihilationzh
16 years ago
That's not what I meant.

8 = Command_SpectreGunship <---Here
should be:
8 = AirF_Command_SpectreGunship <---Here

8 = Command_SpectreGunshipFromShortcut should be:
8 = AirF_Command_SpectreGunshipFromShortcut
and:

Behavior = SpecialAbility ModuleTag_32
SpecialPowerTemplate = SuperweaponSpectreGunship
UpdateModuleStartsAttack = Yes
End
Behavior = SpectreGunshipDeploymentUpdate ModuleTag_33
SpecialPowerTemplate = SuperweaponSpectreGunship
GunshipTemplateName = AmericaJetSpectreGunship
AttackAreaRadius = 200
CreateLocation = CREATE_AT_EDGE_FARTHEST_FROM_TARGET
;other choices are: *NEAR_SOURCE *FARTHEST_FROM_SOURCE *NEAR_TARGET
End

should be:

Behavior = SpecialAbility ModuleTag_32
SpecialPowerTemplate = AirF_SuperweaponSpectreGunship
UpdateModuleStartsAttack = Yes
End

Behavior = SpectreGunshipDeploymentUpdate ModuleSpectre_3
SpecialPowerTemplate = AirF_SuperweaponSpectreGunship
RequiredScience = SCIENCE_SpectreGunship3
GunshipTemplateName = AirF_AmericaJetSpectreGunship3
AttackAreaRadius = 200
CreateLocation = CREATE_AT_EDGE_FARTHEST_FROM_TARGET
;other choices are: *NEAR_SOURCE *FARTHEST_FROM_SOURCE *NEAR_TARGET
End
Behavior = SpectreGunshipDeploymentUpdate ModuleSpectre_2
SpecialPowerTemplate = AirF_SuperweaponSpectreGunship
RequiredScience = SCIENCE_SpectreGunship2
GunshipTemplateName = AirF_AmericaJetSpectreGunship2
AttackAreaRadius = 200
CreateLocation = CREATE_AT_EDGE_FARTHEST_FROM_TARGET
;other choices are: *NEAR_SOURCE *FARTHEST_FROM_SOURCE *NEAR_TARGET
End
Behavior = SpectreGunshipDeploymentUpdate ModuleSpectre_1
SpecialPowerTemplate = AirF_SuperweaponSpectreGunship
RequiredScience = SCIENCE_SpectreGunship1
GunshipTemplateName = AirF_AmericaJetSpectreGunship1
AttackAreaRadius = 200
CreateLocation = CREATE_AT_EDGE_FARTHEST_FROM_TARGET
;other choices are: *NEAR_SOURCE *FARTHEST_FROM_SOURCE *NEAR_TARGET
End



Sorry, I had to edit the final one, I screwed up the code.
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.
nimitz03
  • nimitz03
  • 66.5% (Friendly)
  • Private Topic Starter
16 years ago
you a wealth of knowledge my friend. thank you for all the help you have provided me over the last week.
nimitz03
  • nimitz03
  • 66.5% (Friendly)
  • Private Topic Starter
16 years ago
it showed up on the shortcut and the commande center now, but... now it is flying upside down in the corner that it started from...
Annihilationzh
16 years ago
Catch the last part of my last post. I edited it because I completely forgot part of the code. Sorry about that.
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.
nimitz03
  • nimitz03
  • 66.5% (Friendly)
  • Private Topic Starter
16 years ago
nvm, my mistake