R.I.P
  • R.I.P
  • 50.25% (Neutral)
  • Captain Topic Starter
10 years ago
does anyone know how to change the guard logos that appears when a player try to select a place to guard In c&c Generals/Zero hour😁
Thanks 😊 👍 😎
It's me your friendly modder ZOMBATAR!
Sponsor
king
  • king
  • 100% (Exalted)
  • Major
10 years ago
Check under commandbutton see what image name configures under guard button. Find that name under mappedimages, put in a new picture but when you do enter the coordinates of the pic size. I use 128*128 size for those medium to small pics ingame. Ex.:

MappedImages

MappedImage XXX
Texture = XXX.tga
TextureWidth = 50
TextureHeight = 50
Coords = Left:0 Top:0 Right:50 Bottom:50
Status = NONE
End

1. If your pic is 128*128 then:

MappedImage XXX
Texture = XXX.tga
TextureWidth = 128
TextureHeight = 128
Coords = Left:0 Top:0 Right:128 Bottom:128
Status = NONE
End

2. XXX=name under commandbutton
3. XXX.tga=texture name under Art/Textures.
4. profit.
R.I.P
  • R.I.P
  • 50.25% (Neutral)
  • Captain Topic Starter
10 years ago
Imean the texture that appear when you try to select an ground or air to guard not the button image
It's me your friendly modder ZOMBATAR!
acidbrain
10 years ago
If i am not mistaking this has something to do with it

InGameUI.ini

GuardAreaRadiusCursor      
  Texture        = SCCGuard_Generic
  Style          = SHADOW_ALPHA_DECAL
  OpacityMin     = 50%
  OpacityMax     = 100%
  OpacityThrobTime  = 1000
  Color          = R:240 G:240 B:240 A:255 
  OnlyVisibleToOwningPlayer = Yes
End

Panem et kirkinses
R.I.P
  • R.I.P
  • 50.25% (Neutral)
  • Captain Topic Starter
10 years ago
I will try it !!!

It's me your friendly modder ZOMBATAR!
R.I.P
  • R.I.P
  • 50.25% (Neutral)
  • Captain Topic Starter
10 years ago

If i am not mistaking this has something to do with it

InGameUI.ini


GuardAreaRadiusCursor      
  Texture        = SCCGuard_Generic
  Style          = SHADOW_ALPHA_DECAL
  OpacityMin     = 50%
  OpacityMax     = 100%
  OpacityThrobTime  = 1000
  Color          = R:240 G:240 B:240 A:255 
  OnlyVisibleToOwningPlayer = Yes
End

Originally Posted by: acidbrain 


didnt worked ughhhh


It's me your friendly modder ZOMBATAR!
CommieDog
10 years ago

If i am not mistaking this has something to do with it

InGameUI.ini


GuardAreaRadiusCursor      
  Texture        = SCCGuard_Generic
  Style          = SHADOW_ALPHA_DECAL
  OpacityMin     = 50%
  OpacityMax     = 100%
  OpacityThrobTime  = 1000
  Color          = R:240 G:240 B:240 A:255 
  OnlyVisibleToOwningPlayer = Yes
End

Originally Posted by: R.I.P 


didnt worked ughhhh

Originally Posted by: acidbrain 


That's because you didn't change anything. 💀

What you need to do is create a new texture (either as a TGA or DDS file), name it SCCGuard_Generic, and then place it in [Generals]\Art\Textures\. (You may have to create that directory if it doesn't exist.)
UserPostedImage 
CommieDog: Because someone has to do your dirty work for you
R.I.P
  • R.I.P
  • 50.25% (Neutral)
  • Captain Topic Starter
10 years ago
I Changed Things Actually I just Quoted AcidBrain Reply Anyway Im Going To Try It And Please If It Worked How Do I Make N unique Image For Every Faction
Thanks
It's me your friendly modder ZOMBATAR!
acidbrain
10 years ago
I dont think you can assign more than one texture to an enum.
If you check the 'Command Guard' button you will find 'RadiusCursorType = GUARD_AREA', if im not mistaking 'GUARD_AREA' is an enum and hardcoded.
I think the InGameUI 'GuardAreaRadiusCursor' is tied to the enum.
But maybe you can make 2 new guard buttons, 2 RadiusCursorTypes ar not used, NAPALMSTRIKE and FRENZY.
If you make new textures for those two enums you are able to give each faction a guardarea texture and when i say Faction i mean USA, China and GLA, not each general, you can use the original guard area texture for USA and make two new buttons with your newly created guard textures.
Here is some example code...

;CommandButton.ini

CommandButton Command_Guard
  Command           = GUARD
  Options           = OK_FOR_MULTI_SELECT NEED_TARGET_POS
  TextLabel         = CONTROLBAR:Guard
  ButtonImage       = SSGuard
  ButtonBorderType  = SYSTEM
  DescriptLabel     = CONTROLBAR:ToolTipGuard
  RadiusCursorType  = GUARD_AREA
  InvalidCursorName = GenericInvalid
End

CommandButton Command_Guard_China
  Command           = GUARD
  Options           = OK_FOR_MULTI_SELECT NEED_TARGET_POS
  TextLabel         = CONTROLBAR:Guard
  ButtonImage       = SSGuard
  ButtonBorderType  = SYSTEM
  DescriptLabel     = CONTROLBAR:ToolTipGuard
  RadiusCursorType  = NAPALMSTRIKE
  InvalidCursorName = GenericInvalid
End

CommandButton Command_Guard_GLA
  Command           = GUARD
  Options           = OK_FOR_MULTI_SELECT NEED_TARGET_POS
  TextLabel         = CONTROLBAR:Guard
  ButtonImage       = SSGuard
  ButtonBorderType  = SYSTEM
  DescriptLabel     = CONTROLBAR:ToolTipGuard
  RadiusCursorType  = FRENZY
  InvalidCursorName = GenericInvalid
End

----------------------------------------------------------
;InGameUI.ini

NapalmStrikeRadiusCursor
  Texture           = YourNewChinaGuardTexture  ;SCCNapalmStrike_China
  Style             = SHADOW_ALPHA_DECAL
  OpacityMin        = 50%
  OpacityMax        = 100%
  OpacityThrobTime  = 1000
  Color             = R:255 G:156 B:0 A:255 
  OnlyVisibleToOwningPlayer = Yes
End

FrenzyRadiusCursor
  Texture           = YourNewGLAGuardTexture  ;SCCFrenzy
  Style             = SHADOW_ALPHA_DECAL
  OpacityMin        = 50%
  OpacityMax        = 100%
  OpacityThrobTime  = 1000
  Color             = R:255 G:0 B:0 A:255 
  OnlyVisibleToOwningPlayer = Yes
End

You cant use the napalmstrike and frenzy anymore if you use this method or maybe you can if you like a guard texture for a napalmstrike..:P.
Dont know if it works, didnt test it

Greetz
Panem et kirkinses
R.I.P
  • R.I.P
  • 50.25% (Neutral)
  • Captain Topic Starter
10 years ago
Will try it
thanks
It's me your friendly modder ZOMBATAR!