Posted by: AdrianeMapMaker - Wednesday, November 8, 2017 6:44:49 AM
well I want to have unique Guard picture for my factions -- using the old unused icons So where can i found that ini?

Posted by: Unknown Editor - Wednesday, November 8, 2017 9:06:33 PM
[code=csharp]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[/code]

Posted by: AdrianeMapMaker - Thursday, November 9, 2017 5:51:19 AM
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

Posted by: acidbrain - Thursday, November 9, 2017 8:58:01 PM
[quote=adrianemapmaker;146644]well I want to have unique Guard picture for my factions -- using the old unused icons So where can i found that ini?[/quote] 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... [code=plain] ;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 [/code] 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... [quote=adrianemapmaker;146650] 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[/quote] 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 [url=http://www.cnclabs.com/forums/cnc_postsm146554findlastpost_Are-Enum-Are-HardCoded.aspx#post146554][color=blue]This[/color][/url] thread. Cheers

Posted by: AdrianeMapMaker - Friday, November 10, 2017 4:48:59 AM
What a good Tactic Acidbrain

Posted by: Unknown Editor - Friday, November 10, 2017 11:03:34 AM
Yeah , Sorry ; I didn't even Look at the Differences as I'm Blind [sunglasses] 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 ... = ... } [img]https://www.cnclabs.com/forums/images/emoticons/gwicon_detective.gif[/img] No Idea