Renegade Projects Network Forums
Patching extra functionality into <gamemd.exe> - Printable Version

+- Renegade Projects Network Forums (https://forums.renegadeprojects.com)
+-- Forum: Inject the Battlefield (https://forums.renegadeprojects.com/forumdisplay.php?fid=60)
+--- Forum: Ares General Discussion (https://forums.renegadeprojects.com/forumdisplay.php?fid=19)
+--- Thread: Patching extra functionality into <gamemd.exe> (/showthread.php?tid=16)



RE: Patching extra functionality into <gamemd.exe> - ZombyDragon - 17.08.2006

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 )


RE: Patching extra functionality into <gamemd.exe> - VK - 17.08.2006

I try to add 8 new colors in the combo boxSmile
some good resultsWink


RE: Patching extra functionality into <gamemd.exe> - pd - 17.08.2006

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).


RE: Patching extra functionality into <gamemd.exe> - VK - 17.08.2006

Yes.
First 8 colors show always.
another colors - only if you add entry to [MenuColors] sectionSmile
up to 16 new colors.



RE: Patching extra functionality into <gamemd.exe> - Bobingabout - 17.08.2006

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.


RE: Patching extra functionality into <gamemd.exe> - Nighthawk - 18.08.2006

Maybe he just copy-pasted the same colour a few times to test it


RE: Patching extra functionality into <gamemd.exe> - pd - 18.08.2006

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).


RE: Patching extra functionality into <gamemd.exe> - VK - 18.08.2006

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


RE: Patching extra functionality into <gamemd.exe> - Bobingabout - 18.08.2006

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


RE: Patching extra functionality into <gamemd.exe> - VK - 18.08.2006

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



RE: Patching extra functionality into <gamemd.exe> - Bobingabout - 19.08.2006

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.



RE: Patching extra functionality into <gamemd.exe> - VK - 19.08.2006

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


RE: Patching extra functionality into <gamemd.exe> - pd - 19.08.2006

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


RE: Patching extra functionality into <gamemd.exe> - Tratos - 19.08.2006

heh, nice.


RE: Patching extra functionality into <gamemd.exe> - Renegade - 19.08.2006

I like the colors selected Wink