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

Notification

Icon
Error

Options
Go to last post Go to first unread
Offline R.I.P  
#1 Posted : Monday, August 31, 2015 2:32:08 AM(UTC)
R.I.P
Captain
Joined: 6/20/2015(UTC)
Posts: 77

Thanks: 18 times
Was thanked: 16 time(s) in 16 post(s)
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 hourBig Smile
Thanks Blush Thumb Up Cool
It's me your friendly modder ZOMBATAR!
Sponsor
Offline king  
#2 Posted : Tuesday, September 1, 2015 10:39:22 AM(UTC)
king
Major
Joined: 8/17/2008(UTC)
Posts: 159
Location: DK

Was thanked: 1 time(s) in 1 post(s)
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.

Edited by user Tuesday, September 1, 2015 10:54:02 AM(UTC)  | Reason: Not specified

Offline R.I.P  
#3 Posted : Wednesday, September 2, 2015 9:28:20 AM(UTC)
R.I.P
Captain
Joined: 6/20/2015(UTC)
Posts: 77

Thanks: 18 times
Was thanked: 16 time(s) in 16 post(s)
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!
Offline acidbrain  
#4 Posted : Wednesday, September 2, 2015 2:34:18 PM(UTC)
acidbrain
General
Joined: 12/30/2011(UTC)
Posts: 982

Thanks: 95 times
Was thanked: 574 time(s) in 364 post(s)
If i am not mistaking this has something to do with it

InGameUI.ini
Code:

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
thanks 1 user thanked acidbrain for this useful post.
CommieDog on 9/3/2015(UTC)
Offline R.I.P  
#5 Posted : Wednesday, September 2, 2015 7:50:06 PM(UTC)
R.I.P
Captain
Joined: 6/20/2015(UTC)
Posts: 77

Thanks: 18 times
Was thanked: 16 time(s) in 16 post(s)
I will try it !!!
It's me your friendly modder ZOMBATAR!
Offline R.I.P  
#6 Posted : Friday, September 4, 2015 7:07:00 PM(UTC)
R.I.P
Captain
Joined: 6/20/2015(UTC)
Posts: 77

Thanks: 18 times
Was thanked: 16 time(s) in 16 post(s)
Originally Posted by: acidbrain Go to Quoted Post
If i am not mistaking this has something to do with it

InGameUI.ini
Code:

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

didnt worked ughhhh

It's me your friendly modder ZOMBATAR!
Offline CommieDog  
#7 Posted : Saturday, September 5, 2015 1:28:29 AM(UTC)
CommieDog
Administrator
C&C Labs Staff: Labs Staff MemberThe Forgotten Staff: The Forgotten StaffRed Alert Staff: Red Alert Staff MemberAll Stars Staff: All Stars Staff
Joined: 8/3/2003(UTC)
Posts: 3,086
United States

Thanks: 445 times
Was thanked: 186 time(s) in 130 post(s)
Originally Posted by: R.I.P Go to Quoted Post
Originally Posted by: acidbrain Go to Quoted Post
If i am not mistaking this has something to do with it

InGameUI.ini
Code:

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

didnt worked ughhhh


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

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
thanks 1 user thanked CommieDog for this useful post.
acidbrain on 9/6/2015(UTC)
Offline R.I.P  
#8 Posted : Saturday, September 5, 2015 9:08:24 PM(UTC)
R.I.P
Captain
Joined: 6/20/2015(UTC)
Posts: 77

Thanks: 18 times
Was thanked: 16 time(s) in 16 post(s)
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

Edited by user Saturday, September 5, 2015 9:10:20 PM(UTC)  | Reason: Not specified

It's me your friendly modder ZOMBATAR!
Offline acidbrain  
#9 Posted : Sunday, September 6, 2015 1:48:21 AM(UTC)
acidbrain
General
Joined: 12/30/2011(UTC)
Posts: 982

Thanks: 95 times
Was thanked: 574 time(s) in 364 post(s)
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...
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

Edited by user Monday, September 7, 2015 5:32:32 AM(UTC)  | Reason: Secret reasons

Panem et kirkinses
thanks 1 user thanked acidbrain for this useful post.
CommieDog on 9/6/2015(UTC)
Offline R.I.P  
#10 Posted : Sunday, September 6, 2015 8:05:44 PM(UTC)
R.I.P
Captain
Joined: 6/20/2015(UTC)
Posts: 77

Thanks: 18 times
Was thanked: 16 time(s) in 16 post(s)
Will try it
thanks
It's me your friendly modder ZOMBATAR!
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.