AdrianeMapMaker
8 years ago
well I want to have unique Guard picture for my factions -- using the old unused icons

So where can i found that ini?
A part of ZH worldbuilders map making community
https://discord.gg/tJ6zyGb 

UserPostedImage




Sponsor
Unknown Editor
8 years ago
So , do you mean You want to change the SCCguard_generic.dds to for example SCCguard_gla.dds for GLA faction only , then SCCguard_usa.dds and SCCguard_chi.dds in specific ?

If so , you'll surely need 3 Guard Command Buttons (Radius cursor type is mentioned in Command Buttons you know)
Then ... Well , make new Cusor Types ...

You can Find existing ones in InGameUI.ini , I found using Module List I downloaded already (Not by myself) .
If you want it too , Here  you can Find it ...

Well , as I was saying ; You'll need to create NEW Cursor Radius-es ...

Like I did them for ya 😁 :

USA_GuardAreaRadiusCursor
 Texture          = SCCGuard_USA
 Style            = SHADOW_ALPHA_DECAL
 OpacityMin       = 50%
 OpacityMax       = 100%
 OpacityThrobTime = 1000
 Color            = R:240 G:240 B:240 A:255 ; Custom Blue Color  <  R:80 G:150 B:250 A:255
 OnlyVisibleToOwningPlayer = Yes
End

CHI_GuardAreaRadiusCursor
 Texture          = SCCGuard_CHI
 Style            = SHADOW_ALPHA_DECAL
 OpacityMin       = 50%
 OpacityMax       = 100%
 OpacityThrobTime = 1000
 Color            = R:240 G:240 B:240 A:255 ; Custom Red Color   <  R:255 G:100 B:25 A:255
 OnlyVisibleToOwningPlayer = Yes
End

GLA_GuardAreaRadiusCursor
 Texture          = SCCGuard_GLA
 Style            = SHADOW_ALPHA_DECAL
 OpacityMin       = 50%
 OpacityMax       = 100%
 OpacityThrobTime = 1000
 Color            = R:240 G:240 B:240 A:255 ; Custom Green Color <  R:120 G:240 B:40 A:255
 OnlyVisibleToOwningPlayer = Yes
End


But Well , Command Buttons will also require Command Sets ...
So , In my calculate you will require about 404 YEARS {I Repeat : 404=Error_Code}
Asking is Not a Problem , Problem is Not to Know Something .
Operation : Dark Angel
Static : Launch Delayed
Reason : Uncool Terrain - Old Logic in use - Lack of Performance
Status : Applying new Terrain - Applying new Logic - Increasing Performance by 300%
AdrianeMapMaker
8 years ago
Thanks Man -- I Found What I am Lookin For.

But How Can I add These Into My Command Button ... Based On what ive Seen ... These Names(Originaly Used By Ea) Are Not Named Used In Command Button Though.


Example:
RadiusCursorType = GUARD_AREA

none of Them are in IngameUi.ini
Instead The Name that i found Similar is = GuardAreaRadiusCursor

is this another hardcoded stuff
A part of ZH worldbuilders map making community
https://discord.gg/tJ6zyGb 

UserPostedImage




acidbrain
8 years ago

well I want to have unique Guard picture for my factions -- using the old unused icons

So where can i found that ini?

Originally Posted by: adrianemapmaker 


You can make 3 seperate guard textures, 2 RadiusCursorTypes ar not used, NAPALMSTRIKE and FRENZY.
If you make new textures(or use unused ones) 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(Zero Hour), you can use the original guard area texture for USA and make two new buttons with your new 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...


Example:
RadiusCursorType = GUARD_AREA

none of Them are in IngameUi.ini
Instead The Name that i found Similar is = GuardAreaRadiusCursor

is this another hardcoded stuff

Originally Posted by: adrianemapmaker 


I will try to explain how the coding works, you create an object(in object oriented programming),
in that object you can specify the characteristics such as 'GuardAreaRadiusCursor', at runtime all the characteristics are set and every time you create a new object it will check for the characteristics, things that can change are rate of fire for example you can use a setter for that.
Here is a Java example
public void setRateOfFire(double rof) {
rateOfFire = rof;
}
There are some parameters you cant change, those parameters are either final or enum.
Here is a Java example of a final parameter
final static int someInt = 2;
I explained the enum in This  thread.

Cheers
Panem et kirkinses
AdrianeMapMaker
8 years ago
What a good Tactic Acidbrain
A part of ZH worldbuilders map making community
https://discord.gg/tJ6zyGb 

UserPostedImage




Unknown Editor
8 years ago
Yeah , Sorry ; I didn't even Look at the Differences as I'm Blind 😎
But Seriously , Why the Hell did they change the Name in the Hard codes ?
I don't know (JAVA) , Something like this ?

ValidRadiusCoursers{
GUARD_AREA = GuardAreaRadiusCursor
FRENZY = FrenzyRadiusCursor
... = ... }

UserPostedImage No Idea
Asking is Not a Problem , Problem is Not to Know Something .
Operation : Dark Angel
Static : Launch Delayed
Reason : Uncool Terrain - Old Logic in use - Lack of Performance
Status : Applying new Terrain - Applying new Logic - Increasing Performance by 300%