logo   login
right
Home Forums Downloads Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Forum Info
Forum Members: 18,537
Total Threads: 8,626
Posts: 94,205

Administrators:
DeeZire, Redemption

There are currently 131 users online.
Partner Links

Free Credit Repair

Learn the Ticket Broker Secrets
Advertisements


Generals & Zero Hour Editing Discuss any modding related issues to do with Generals and Zero Hour here.

Reply
 
LinkBack Thread Tools
Old 08-20-2007, 11:50 AM   #1 (permalink)
Junior Member
 
Join Date: Jul 2007
Location: England
Posts: 4
Send a message via MSN to Lurking Mastermind
Default Help with new tank paradrop

What am I missing??

I'm simply adding an Emperor Tank Paradrop to the Infantry General side for Zero Hour. No mod, just my own amusement, but I have hit a snag. I'm hoping someone here can help.

This is what I have so far:

Added to Infa_ChinaCommandCenter in INFANTRYGENERAL.INI

Code:
  Behavior           = OCLSpecialPower ModuleTag_20
    SpecialPowerTemplate = Infa_SuperweaponTankParadrop
    OCL                  = Infa__SUPERWEAPON_TankParadrop
    CreateLocation       = CREATE_AT_EDGE_NEAR_SOURCE
    OCLAdjustPositionToPassable = Yes ;Like RA2, shift target to passable cell so we don't land in water and on cliffs.
  End
COMMANDBUTTON.INI

Code:
CommandButton Infa_Command_PurchaseScienceTankParadrop
  Command           = PURCHASE_SCIENCE
  Science           = SCIENCE_Infa_TankParadrop
  ButtonImage       = SSTankDrop
  ButtonBorderType  = UPGRADE ; Identifier for the User as to what kind of button this is
End

CommandButton Infa_Command_TankParadrop
  Command             = SPECIAL_POWER
  SpecialPower        = Infa_SuperweaponTankParadrop
  Options             = NEED_SPECIAL_POWER_SCIENCE NEED_TARGET_POS CONTEXTMODE_COMMAND
  Science             = SCIENCE_Infa_TankParadrop
  TextLabel           = CONTROLBAR:TankParadrop
  ButtonImage         = SSTankDrop
  ButtonBorderType    = ACTION ; Identifier for the User as to what kind of button this is
  DescriptLabel       = CONTROLBAR:TooltipTankParaDrop
  RadiusCursorType    = PARADROP
  InvalidCursorName     = GenericInvalid
End

CommandButton Infa_Command_TankParadropFromShortcut
  Command             = SPECIAL_POWER_FROM_SHORTCUT
  SpecialPower        = Infa_SuperweaponTankParadrop
  Options             = NEED_SPECIAL_POWER_SCIENCE NEED_TARGET_POS CONTEXTMODE_COMMAND
  Science             = SCIENCE_Infa_TankParadrop
  TextLabel           = GUI:SuperweaponTankParadrop
  ButtonImage         = SSTankDrop
  ;ButtonBorderType    = ACTION ; Identifier for the User as to what kind of button this is
  DescriptLabel       = CONTROLBAR:TooltipTankParaDrop
  RadiusCursorType    = PARADROP
  InvalidCursorName     = GenericInvalid
End
COMMANDSET.INI

Code:
CommandSet Infa_SCIENCE_CHINA_CommandSetRank3
  1 = Command_PurchaseScienceClusterMines
  2 = Infa_Command_PurchaseScienceTankParadrop
  3 = Infa_Command_PurchaseScienceCarpetBomb
  4 = Command_PurchaseScienceNapalmBarrage1
  5 = Command_PurchaseScienceNapalmBarrage2
  6 = Command_PurchaseScienceNapalmBarrage3
  7 = Command_PurchaseScienceEmergencyRepair1
  8 = Command_PurchaseScienceEmergencyRepair2
  9 = Command_PurchaseScienceEmergencyRepair3
  10 = Early_Command_PurchaseScienceFrenzy2
  11 = Early_Command_PurchaseScienceFrenzy3
END

CommandSet Infa_SpecialPowerShortcutChina
  1 = Command_ClusterMinesFromShortcut
  2 = Command_NapalmBarrageFromShortcut
  3 = Infa_Command_ParadropFromShortcut
  4 = Command_EmergencyRepairFromShortcut
  5 = Infa_Command_EMPPulseFromShortcut
  6 = Command_Infa_NeutronMissileFromShortcut
  7 = Infa_Command_ChinaCarpetBombFromShortcut
  8 = Early_Command_FrenzyFromShortcut
  9 = Infa_Command_NapalmStrikeFromShortcut
 10 = Infa_Command_TankParadropFromShortcut
END

CommandSet Infa_ChinaCommandCenterCommandSet
  1  = Infa_Command_ConstructChinaDozer
  2  = Infa_Command_ChinaCarpetBomb
  3  = Infa_Command_Paradrop
  4  = Command_ClusterMines
  5  = Infa_Command_TankParadrop
  7  = Command_EmergencyRepair
  8  = Infa_Command_EMPPulse
  9  = Command_UpgradeChinaRadar
  10 = Early_Command_Frenzy
  12 = Command_UpgradeChinaMines
  13 = Command_SetRallyPoint
  14 = Command_Sell
End

CommandSet Infa_ChinaCommandCenterCommandSetUpgrade
  1  = Infa_Command_ConstructChinaDozer
  2  = Infa_Command_ChinaCarpetBomb
  3  = Infa_Command_Paradrop
  4  = Command_ClusterMines
  5  = Infa_Command_TankParadrop
  7  = Command_EmergencyRepair
  8  = Infa_Command_EMPPulse
  9  = Command_UpgradeChinaRadar
  12 = Command_UpgradeEMPMines
  13 = Command_SetRallyPoint
  14 = Command_Sell
End
OBJECTCREATIONLIST.INI

Code:
; -----------------------------------------------------------------------------
; -----------------------------------------------------------------------------
ObjectCreationList Infa_SUPERWEAPON_TankParadrop
  DeliverPayload
    Transport = Infa_ChinaJetCargoPlane
    StartAtPreferredHeight = Yes
    StartAtMaxSpeed = Yes
    MaxAttempts = 4
    DropOffset = X:0 Y:0 Z:-10
    DropDelay = 80        ; time in between each item dropped (if more than one)
    ParachuteDirectly = No ; will tell all contained parachutes to go ahead and bunch
    PutInContainer = LargeParachute
    Payload = Infa_ChinaTankEmperor 1
    DeliveryDistance = 0  ;when outbound vehicle must be this close to target to continue delivery
    PreOpenDistance = 300 ;When inbound, vehicle can be this much farther than DeliveryDistance to begin delivery 
    DeliveryDecalRadius = 50
    DeliveryDecal
      Texture           = SCCParadrop_USA
      Style             = SHADOW_ALPHA_DECAL
      OpacityMin        = 25%
      OpacityMax        = 50%
      OpacityThrobTime  = 500
      Color             = R:227 G:229 B:22 A:255 
      OnlyVisibleToOwningPlayer = Yes
    End
    ;RequiresLivePlayer = Yes ; I want to require a live player, but I'll settle for dropping neutral rangers instead
  End
  DeliverPayload
    Transport = Infa_ChinaJetCargoPlane
    StartAtPreferredHeight = Yes
    StartAtMaxSpeed = No
    MaxAttempts = 4
    DropOffset = X:0 Y:0 Z:-10
    DropDelay = 80        ; time in between each item dropped (if more than one)
    ParachuteDirectly = No ; will tell all contained parachutes to go ahead and bunch
    PutInContainer = LargeParachute
    Payload = Infa_ChinaTankEmperor 1
    DeliveryDistance = 0  ;when outbound vehicle must be this close to target to continue delivery
    PreOpenDistance = 300 ;When inbound, vehicle can be this much farther than DeliveryDistance to begin delivery 
    DeliveryDecalRadius = 50
    DeliveryDecal
      Texture           = SCCParadrop_USA
      Style             = SHADOW_ALPHA_DECAL
      OpacityMin        = 25%
      OpacityMax        = 50%
      OpacityThrobTime  = 500
      Color             = R:227 G:229 B:22 A:255 
      OnlyVisibleToOwningPlayer = Yes
    End
    ;RequiresLivePlayer = Yes ; I want to require a live player, but I'll settle for dropping neutral rangers instead
  End
End
(note that 'Infa_ChinaTankEmperor' is the right name for the payload and 'Infa_ChinaJetCargoPlane' is the right name for the transport as taken from INFANTRYGENERAL.INI)

SCIENCE.INI

Code:
Science SCIENCE_Infa_TankParadrop
  PrerequisiteSciences = SCIENCE_CHINA SCIENCE_Rank3
  SciencePurchasePointCost = 1
  IsGrantable = Yes
  DisplayName = SCIENCE:ChinaTankParadrop1
  Description = CONTROLBAR:ToolTipChinaScienceTankParadrop
End
SPECIALPOWER.INI

Code:
SpecialPower Infa_SuperweaponTankParadrop
  Enum                = SPECIAL_TANK_PARADROP
  ReloadTime          = 5000   ; in milliseconds
  RequiredScience     = SCIENCE_Infa_TankParadrop
  PublicTimer         = No
  SharedSyncedTimer   = Yes
  RadiusCursorRadius  = 50
  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
The result is that the game loads fine and I can start a skirmish or challenge game. I can purchase the science and the shortcut icon appears on the side of the screen. I can select that icon and it gives me the target enum then when I left click to fire it disappears and reloads. I can do it time and time again, but no enum is left on the map and nothing is delivered. What am I doing wrong?

Thank you.
Lurking Mastermind is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-20-2007, 10:19 PM   #2 (permalink)
Senior Member
 
CommieDog's Avatar
 
Join Date: Oct 2004
Location: Alaska (Hell Frozen Over)
Posts: 368
Default

Did you add the relevant code to the Tank General's Command Center?
CommieDog is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09-13-2007, 05:28 PM   #3 (permalink)
Member
 
Join Date: May 2004
Posts: 40
Default

I think your problem may be this:
Enum = SPECIAL_TANK_PARADROP

You can only use one of these per side. If you already have the tank paradrop referenced somewhere else then you need a different one.

Try it with the A-10 strike or something for now.
Korona is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 12-14-2007, 10:32 PM   #4 (permalink)
Senior Member
 
Join Date: Dec 2002
Location: Sydney, Australia
Posts: 202
Send a message via MSN to Wize
Default

You can easily use multiple enumator's per side. When I modified The Tigress to be a Chinese Supreme Commander, she had The Tank Paradrop herself with no problems.

Besides, he's added it to the Infantry General, not the Tank General.
Wize is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 12-14-2007, 11:24 PM   #5 (permalink)
Administrator
 
Redemption's Avatar
 
Join Date: Aug 2001
Posts: 624
Send a message via ICQ to Redemption
Default

Quote:
Originally Posted by Wize View Post
You can easily use multiple enumator's per side. When I modified The Tigress to be a Chinese Supreme Commander, she had The Tank Paradrop herself with no problems.

Besides, he's added it to the Infantry General, not the Tank General.
Good to see you around Wize!
Redemption is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 01-07-2008, 02:02 PM   #6 (permalink)
Senior Member
 
Join Date: Jan 2008
Posts: 188
Default

Spelling mistake in the command center module:

Infa__SUPERWEAPON_TankParadrop

Should be

Infa_SUPERWEAPON_TankParadrop
beng is online now  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Tank Paradrop "Help" IrqVet Generals & Zero Hour Editing 2 02-24-2007 11:15 AM
New type of paradrop RpgNick Generals & Zero Hour Editing 1 04-17-2005 10:15 AM
Tank paradrop Clone11b Red Alert 2 & Yuri's Revenge Editing 13 04-21-2003 12:54 PM
Tank Paradrop MORPHLING Red Alert 2 & Yuri's Revenge Editing 15 04-07-2003 04:09 AM
Paradrop Clone11b Red Alert 2 & Yuri's Revenge Editing 12 02-04-2003 01:20 AM


All times are GMT -4. The time now is 01:26 PM.


Design By: Miner Skinz.com
Powered by vBulletin® Version 3.7.0 Release Candidate 2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.