:: Home :: Get Hosted :: PPM FAQ :: Forum FAQ :: Privacy Policy :: Search :: Memberlist :: Usergroups :: Register :: Profile :: Log in to check your private messages :: Log in ::

Do you want to advertise at Project Perfect Mod. Find out how to do it HERE.

The time now is Sat Feb 04, 2023 6:19 am
All times are UTC + 0
 Forum index » Modding Central » Red Alert 2 Editing Forum » Ares (Unofficial Forum)
Changing Player Colors in Ares Not Working
Moderators: Ares Support Team at PPM, Global Moderators, Red Alert 2 Moderators
Post new topic   Reply to topic Page 1 of 1 [5 Posts] Mark the topic unread ::  View previous topic :: View next topic
Author Message
adamstrange
Sergeant


Joined: 07 Mar 2013

PostPosted: Wed Dec 07, 2022 5:17 am    Post subject:  Changing Player Colors in Ares Not Working Reply with quote  Mark this post and the followings unread

I got ares on a test mod just to change the colors but when I start ares up the colors that I changed don't appear in the drop down menu and I cannot change the grey color at all.

Both of these I changed to a bluish grey but it still stays dark grey.
LightGrey=146,69,146
Grey=146,69,146

Also what the hell does this mean in the documentation ?
Replace X by the numbers from 1 to Count (without leading zeros)
[Colors]Count= (integer)

And there is no SlotX or Slot ID in the rules so what is this talking about ?

Last edited by adamstrange on Wed Dec 07, 2022 6:26 am; edited 1 time in total

Back to top
View user's profile Send private message
adamstrange
Sergeant


Joined: 07 Mar 2013

PostPosted: Wed Dec 07, 2022 6:24 am    Post subject: Reply with quote  Mark this post and the followings unread

Also which of the colors in ares work and which don't work because using both R,G,B & H,S,L does not change the menu or in game color to anything that I changed.

I change these 3 green colors, Green, LightGreen  and DarkGreen to all have this same apple green color setting that you see in this picture and all using both RGB & HSL and after running the ares.BAT it does nothing

And the Magenta [Pink]definitely does NOT work because I changed that to a dark purple using both RGB & HSL settings and it stays the same pink color.


2022-12-07_003523.png
 Description:
 Filesize:  81.1 KB
 Viewed:  284 Time(s)

2022-12-07_003523.png



Back to top
View user's profile Send private message
Mig Eater
Defense Minister


Joined: 13 Nov 2003
Location: Eindhoven

PostPosted: Wed Dec 07, 2022 9:37 am    Post subject: Reply with quote  Mark this post and the followings unread

This is what the third or fourth time trying to explain this to you now..?

The [Colors] section in the rulesmd.ini uses the HSL colour system, normally the H value can be between 0-360 & the S & L values are from 0-100. To use them in RA2 though you need to convert the values to an 8bit range of 0-255. You can use this to convert the H value form 0-360 degrees to 0-100 percent. Now that all three HSL values are 0-100 you can use this converter to change all three values into 0-255 8bit code. To use it copy each of the the 0-100 HSL values into the percent box & then copy the RGB values it gives you into the rules ini.


The game has a total of 19 colours but is hardcoded to only uses 8 of them for the player colours, the others are used for menu text & loading screens etc. Ares adds the ability to double the number of player colours from 8 to 16, to use them you need to add a new [Colors] section to the uimd.ini (& not the rulesmd.ini). The code used in the [Colors] section is all new, you wont find any examples to edit so you'll have to write it all out yourself.

Ares added 6 new default colours, to enable them simply add this to the uimd.ini.

[Colors]
Count=14

If you want to add 2 more or change any of the colours then you'll need to add code for each colour slot in the menu.

SlotX.DisplayColor= This is the colour shown in the skirmish menu screen & uses RGB values.

SlotX.ColorScheme= This is the colour used ingame & links to the colours used in the rules.ini [Colors] section.

SlotX.Tooltip= This the the name that appears when hovering the mouse over the colours in the skirmish menu.


Quote:
Also what the hell does this mean in the documentation ?


Replace the "X" within the SlotX.DisplayColor=, SlotX.ColorScheme= & SlotX.Tooltip= code with a number between 1-16 for each of the colour slots in the menu's colour selector. To try & make it as clear as possible here is an example of how the code in the uimd.ini should be written.
 
Code:

[Colors]
Count=14

Slot1.DisplayColor=221,226,13
Slot1.ColorScheme=Gold
Slot1.Tooltip=STT:PlayerColorGold

Slot2.DisplayColor=255,25,25
Slot2.ColorScheme=DarkRed
Slot2.Tooltip=STT:PlayerColorRed

Slot3.DisplayColor=42,116,226
Slot3.ColorScheme=DarkBlue
Slot3.Tooltip=STT:PlayerColorBlue

Slot4.DisplayColor=62,209,46
Slot4.ColorScheme=DarkGreen
Slot4.Tooltip=STT:PlayerColorGreen

Slot5.DisplayColor=255,160,25
Slot5.ColorScheme=Orange
Slot5.Tooltip=STT:PlayerColorOrange

Slot6.DisplayColor=50,215,230
Slot6.ColorScheme=DarkSky
Slot6.Tooltip=STT:PlayerColorSkyBlue

Slot7.DisplayColor=149,40,189
Slot7.ColorScheme=Purple
Slot7.Tooltip=STT:PlayerColorPurple

Slot8.DisplayColor=255,154,235
Slot8.ColorScheme=Magenta
Slot8.Tooltip=STT:PlayerColorPink

Slot9.DisplayColor=148,93,239
Slot9.ColorScheme=NeonBlue
Slot9.Tooltip=STT:PlayerColorLilac

Slot10.DisplayColor=115,255,231
Slot10.ColorScheme=LightBlue
Slot10.Tooltip=STT:PlayerColorLightBlue

Slot11.DisplayColor=255,239,99
Slot11.ColorScheme=Yellow
Slot11.Tooltip=STT:PlayerColorLime

Slot12.DisplayColor=8,195,90
Slot12.ColorScheme=Green
Slot12.Tooltip=STT:PlayerColorTeal

Slot13.DisplayColor=189,85,0
Slot13.ColorScheme=Red
Slot13.Tooltip=STT:PlayerColorBrown

Slot14.DisplayColor=128,128,128
Slot14.ColorScheme=Grey
Slot14.Tooltip=STT:PlayerColorCharcoal

Observer.DisplayColor=96,96,96
Observer.ColorScheme=LightGrey
Observer.Tooltip=STT:PlayerColorObserver



Observer is a special colour used by players watching (& not playing) an online game.
_________________



Back to top
View user's profile Send private message Visit poster's website ModDB Profile ID YouTube User URL Facebook Profile URL Twitter Channel URL
adamstrange
Sergeant


Joined: 07 Mar 2013

PostPosted: Sat Dec 10, 2022 3:00 am    Post subject: Reply with quote  Mark this post and the followings unread

I was using the uimd.ini but did not know that the code was supposed to look like that.

You did a much better job explaining it and using what the code should look like than the person or persons who wrote the documentation

Back to top
View user's profile Send private message
Mig Eater
Defense Minister


Joined: 13 Nov 2003
Location: Eindhoven

PostPosted: Sat Dec 10, 2022 8:02 am    Post subject: Reply with quote  Mark this post and the followings unread

I hope you are able to finally get the colours you want now Smile
_________________



Back to top
View user's profile Send private message Visit poster's website ModDB Profile ID YouTube User URL Facebook Profile URL Twitter Channel URL
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [5 Posts] Mark the topic unread ::  View previous topic :: View next topic
 Forum index » Modding Central » Red Alert 2 Editing Forum » Ares (Unofficial Forum)
Jump to:  
Share on TwitterShare on FacebookShare on Google+Share on DiggShare on RedditShare on PInterestShare on Del.icio.usShare on Stumble Upon
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © phpBB Group

[ Time: 0.1598s ][ Queries: 14 (0.0111s) ][ Debug on ]