glumurr
  • glumurr
  • 100% (Exalted)
  • Major Topic Starter
14 years ago
Today I got bored at watching the Radius Cursor for my tomahwak storm which was just the Scud storm Cursor, so I tried to make a new one - but I failed.

here is the InGameUI code:

  TomahawkStormRadiusCursor
    Texture = SCCAmbulance
    Style = SHADOW_ALPHA_DECAL
    OpacityMin = 50%
    OpacityMax = 100%
    OpacityThrobTime = 1000
    Color = R:89 G:89 B:255 A:255
    OnlyVisibleToOwningPlayer = Yes
  End

and here is the command button code:

CommandButton SupW_Command_TomahawkStorm
  Command           = SPECIAL_POWER
  SpecialPower      = SuperweaponTomahawkStorm
  Options           = NEED_SPECIAL_POWER_SCIENCE NEED_TARGET_POS CONTEXTMODE_COMMAND
  TextLabel         = CONTROLBAR:TomahawkStorm
  ButtonImage       = SATmhkStorm
  ButtonBorderType  = ACTION
  DescriptLabel     = CONTROLBAR:TooltipFireTomahawkStorm
  RadiusCursorType  = TomahawkStormRadiusCursor 
  InvalidCursorName = GenericInvalid
End

CommandButton SupW_Command_TomahawkStormFromShortcut
  Command           = SPECIAL_POWER_FROM_SHORTCUT
  SpecialPower      = SuperweaponTomahawkStorm
  Options           = NEED_SPECIAL_POWER_SCIENCE NEED_TARGET_POS CONTEXTMODE_COMMAND
  TextLabel         = CONTROLBAR:TomahawkStormShortcut
  ButtonImage       = SATmhkStorm
  DescriptLabel     = CONTROLBAR:TooltipFireTomahawkStorm
  RadiusCursorType  = TomahawkStormRadiusCursor
  InvalidCursorName = GenericInvalid
End

Am I missing some other files that I have to place in or what?

By testing more I have found out that the problem is in the Radius Code.. but I can not figure out what is
And when I look at some other codes in command button I see that they never use the "RadiusCursor" in the cursor name in the command button - does it matter if I have the "RadiusCursor" name in the command button. My game finally started to work when I cut out the code that I made so it must be in the InGameUI code but what...
hmm...
if I don't reply to a topic I don't know the answer - sorry
Sponsor
Annihilationzh
14 years ago
What exactly happened when you tested it at each stage?

On a slight side note, you may wish to note that the decal (not the cursor, but the curser image once you've launched it) is defined in many places in the ini files. For the nuke, it's in the missile's NeutronMissileUpdate module. For the scud storm, it's in the OCL. Whereas the radar van scan doesn't even have a decal.


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.
glumurr
  • glumurr
  • 100% (Exalted)
  • Major Topic Starter
14 years ago
the game started to stop working when I copied the ambulance code and changed the name. I might be able to use the ambulance code for the tomahawk storm but do you then know where the code for the ambulance is located?

here is a OCL code for the Tomahawk storm



ObjectCreationList SUPERWEAPON_TomahawkStorm
  Attack
    WeaponSlot = SECONDARY
    NumberOfShots = 9
    DeliveryDecalRadius = 200
    DeliveryDecal
      Texture = SCCMOAB
      Style = SHADOW_ALPHA_DECAL
      OpacityMin = 50%
      OpacityMax = 100%
      OpacityThrobTime = 500
      Color = R:89 G:89 B:255 A:255 
      OnlyVisibleToOwningPlayer = Yes
    End
  End
End




hmm...
if I don't reply to a topic I don't know the answer - sorry
glumurr
  • glumurr
  • 100% (Exalted)
  • Major Topic Starter
14 years ago
okay I have solved my cursor problems. but there is another problem related to it -
here are the codes that I took from the shockwave mod for the baikonur missile hehe

    MaxAttempts                     = 1
    DropDelay                       = 8000
    DeliveryDistance                = 7450
    VisibleItemsDroppedPerInterval  = 1
    VisibleNumBones                 = 1
    ExitPitchRate                   = 30
    DiveStartDistance               = 600
    DiveEndDistance                 = 450
    StrafeLength                    = 400
    DeliveryDecalRadius = 200
    DeliveryDecal
      Texture           = SCCScudStorm02_GLA
      Style             = SHADOW_ALPHA_DECAL
      OpacityMin        = 25%
      OpacityMax        = 50%
      OpacityThrobTime  = 500
      Color             = R:0 G:191 B:0 A:255
      OnlyVisibleToOwningPlayer = Yes
    End
  End

which of these numbers do I have to change so the cursor won't last for so long after the missile has been shot?
after the missile has been launch the cursor lasts forever and it is started to annoy me a bit.
do you know how to change it?
hmm...
if I don't reply to a topic I don't know the answer - sorry
Annihilationzh
14 years ago

which of these numbers do I have to change so the cursor won't last for so long after the missile has been shot?
after the missile has been launch the cursor lasts forever and it is started to annoy me a bit.
do you know how to change it?


I have a very vague memory of the last time I dealt with this problem. I think it's caused by a unit not dying properly.

My only suggestion would be to make sure the missiles have a SpecialPowerCompletionDie module.
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.
glumurr
  • glumurr
  • 100% (Exalted)
  • Major Topic Starter
14 years ago
okay thanks.
hmm...
if I don't reply to a topic I don't know the answer - sorry
NOP
  • NOP
  • 100% (Exalted)
  • Major
14 years ago
Was this issue ever resolved?
glumurr
  • glumurr
  • 100% (Exalted)
  • Major Topic Starter
14 years ago
yes I just changed a few things ~there and there~ and it was fixed.
hmm...
if I don't reply to a topic I don't know the answer - sorry
aamirshakir
13 years ago
Can Any Body Tell Me How To Make Radius Cursor ?? FOR SCORPION ROCKET