Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Patching extra functionality into <gamemd.exe>
Alot of people can use it, but pd and CNCVK arnt machines, so they will do it as they please. (Though I personaly want it too Wink )
I try to add 8 new colors in the combo boxSmile
some good resultsWink


Attached Files Thumbnail(s)
   
ARM forever - x86 sucks!


would be better if you could customize the amount of colors.
that isn't even hard to do.

you just have to have two tags for each color, one menu entry and one ingame bind (to a [Colors] color).
[Image: jsfml.png]
Yes.
First 8 colors show always.
another colors - only if you add entry to [MenuColors] sectionSmile
up to 16 new colors.
ARM forever - x86 sucks!


upto 16 NEW colours, is that upto 16 total, or as it sounds, upto 24 total?

also, you'll need to hack PD's costom displayed colour section too. because currently, all your new ones are white.
Maybe he just copy-pasted the same colour a few times to test it
Ares Project Manager.
[Image: t3wbanner.png]
[Image: cncgsigsb_sml.png]
Open Ares positions: Documentation Maintainer, Active Testers.
PM if interested.
i'd guess so.

he just has to extend the colors list and move the color bind list (i.e. what menu color entry uses what color ingame).
[Image: jsfml.png]
Quote:upto 16 NEW colours, is that upto 16 total, or as it sounds, upto 24 total?
Up to 16 new colors.

It's white because I fill colors default data with 00FFFFFFhLOL
MP0 01
MP1 05
MP2 10
MP3 14
MP4 06
MP5 12
MP6 08
MP7 07

MP8  00
MP9  02
MP10 03
MP11 04
MP12 09
MP13 13
MP14 15
MP15 16
So MP8 color - LightGold in gameWink
[MenuColors]
0=222,222,222
1=128,128,128
2=...
3=...
4=...
5=...
6=...
7=...
8=255,0,0
Colors will appear only if you add new entry to [MenuColors].
@PD I change your [MenuColors] load code, OK?

Also I done code which save MultiEngineer check box state
and TechLevel slider position into RA2MD.INISmile
ARM forever - x86 sucks!


1 small thing to point out. the array that "Random colour" AKA "???" points to. does it include any new colours? PD had to write in a hack tag for countries, NewPlayableCountries=.

also, is your list hardcoded to those values of the [Colors] list, and use only PD's new [MenuColours] Section, or is there a way to costomise it? because currently i want to use some that are currently around 26, 27, 28 etc. (this is no big deal, i can always re-order the list.)

oh, and starting with 00 and ending with 16?
you missed out 11!

if it is to remain hardcoded, it should be:
MP13 11
MP14 13
MP15 15
Quote:(this is no big deal, i can always re-order the list.)
It's not very difficult to re-order the list so it's hardcodedWink
Quote:oh, and starting with 00 and ending with 16?
you missed out 11!
However, color 16 exist already:
Code:
Yellow=38,159,255            ; 16            Pastel yellow
It's add new colors: black and white to combo box
black -> LightGold (Orange)
white -> LightGrey (White)
Code:
[MenuColors]
0=13,226,221
1=25,25,255
2=226,116,42
3=46,209,62
4=25,160,255
5=230,215,50
6=189,40,149
7=235,154,255
8=0,0,0
9=255,255,255
ARM forever - x86 sucks!


CnCVK Wrote:
Quote:oh, and starting with 00 and ending with 16?
you missed out 11!
However, color 16 exist already:
Code:
Yellow=38,159,255            ; 16            Pastel yellow
so does 11!!!
Code:
NeonBlue=185,156,238        ; 11            Violet
it should be like this:
MP0 01
MP1 05
MP2 10
MP3 14
MP4 06
MP5 12
MP6 08
MP7 07

MP8 00
MP9 02
MP10 03
MP11 04
MP12 09
MP13 11
MP14 13
MP15 15


CnCVK Wrote:It's add new colors: black and white to combo box
black -> LightGold (Orange)
white -> LightGrey (White)
Code:
[MenuColors]
0=13,226,221
1=25,25,255
2=226,116,42
3=46,209,62
4=25,160,255
5=230,215,50
6=189,40,149
7=235,154,255
8=0,0,0
9=255,255,255
i see, but, if you select "???" for Random colour, can 1 of the ones it picks be 1 of the new 8?
as i said, to allow "???" for Random country to be able to select 1 of the new ones, PD had to add the NewPlayableCountries= tag.
Quote: see, but, if you select "???" for Random colour, can 1 of the ones it picks be 1 of the new 8?
I not testing this thing (Now trySmile
Quote:as i said, to allow "???" for Random country to be able to select 1 of the new ones, PD had to add the NewPlayableCountries= tag.
Not need.
I calculate  additional colors numberSmile
Code:
[MenuColors]
0=13,226,221
1=25,25,255
2=226,116,42
3=46,209,62
4=25,160,255
5=230,215,50
6=189,40,149
7=235,154,255
8=0,0,0
9=255,255,255
So here two additional colorsSmile
ARM forever - x86 sucks!


some 1.09 feature:
[Image: ebolt.png]

Code:
[WeaponType]
...
IsElectricBolt=yes
IsCustomColor=yes
EBoltColor1=0,0,0
EBoltColor2=221,0,0
EBoltColor3=255,215,0

if you wonder why this is not in 1.08 already,
I sent the 108 exe over to Marshall already Tongue 2
[Image: jsfml.png]
heh, nice.
[Image: sig.jpg]
I like the colors selected Wink
Forum Rules

(01.06.2011, 05:43:25)kenosis Wrote: Oh damn don't be disgraced again!

(25.06.2011, 20:42:59)Nighthawk Wrote: The proverbial bearded omni-bug may be dead, but the containment campaign is still being waged in the desert.




Users browsing this thread: 1 Guest(s)