Editing client I need some help please :)

12/29/2010 00:33 denominator#1
Well I`m trying to add a new button to the VIP so basically it would be "open warehouse" "remote repair" "remote compose" "ScrollMet" the latter being the button I want to add.

I`m a little stuck for the moment but it could be something silly like I need to define where the actual button is on the VIP GUI type of thing. Now I will probably be asking a few more questions on this but right now I have added a new button(s) in Conquer 2.0\data\interface\VIP and I have also added them to Conquer 2.0\ani\Control

I have used a lot of copy and paste and I will have another look at it shortly but for now it doesn`t seem to show but as I said I probably need to define the button further down than the other buttons.

My question is HOW?!?! I have looked in the ini and various other folders etc but I might need to check c3 files as well? Any help would be welcomed also would I need to implement it into OldCODB or Rickardo source?
12/29/2010 01:23 Syst3m_W1z4rd#2
If you want to add a new button, then you will need a hex editor.
12/29/2010 01:31 denominator#3
Yup got a hex editor already, so I hex edit the Conquer.exe? Ok how on earth do I add new buttons without overwriting anything else and corrupting the exe >.<
12/29/2010 02:28 Korvacs#4
You will probably need a resource hacker aswell to understand how the gui is all linked togeather.
12/29/2010 02:38 Syst3m_W1z4rd#5
Wouldn't it also require a new packet?
12/29/2010 02:47 denominator#6
Yup got reshack also, I have changed the icons already and quite a bit of info for the exe. It has no real affiliation with TQ or Conquer anymore. Maybe it would just be easier to do something with the source instead so it auto wraps the mets into scrolls instead :( I don`t want to have to do that but meh. I will have a mess around with reshack first to see if I can do anything with that.

Ok well I have kinda added a button to it BUT the button is invisible and it opens remote compose o.0? I used reshack and didn`t know what to add it as? Ok this is what I found and as you can see I added "ScrollMet" BUT I know that some of the numbers are wrong so how on earth do I find the right number?

Code:
338 DIALOG 0, 0, 187, 133
STYLE WS_CHILD
CAPTION ""
LANGUAGE LANG_CHINESE, 0x2
FONT 12, "System"
{
   CONTROL "Lev", 2298, STATIC, SS_LEFT | WS_CHILD | WS_VISIBLE | WS_GROUP, 56, 11, 73, 12 
   CONTROL "Package", 2299, BUTTON, BS_OWNERDRAW | BS_FLAT | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 30, 35, 66, 10 
   CONTROL "Repair", 1568, BUTTON, BS_OWNERDRAW | BS_FLAT | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 30, 56, 66, 10 
   CONTROL "Append", 1569, BUTTON, BS_OWNERDRAW | BS_FLAT | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 30, 77, 66, 10 
   CONTROL "ScrollMet", 1570, BUTTON, BS_OWNERDRAW | BS_FLAT | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 30, 96, 66, 10 
   CONTROL "Query", 1571, BUTTON, BS_OWNERDRAW | BS_FLAT | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 53, 109, 50, 9 
   CONTROL "Forum", 1572, BUTTON, BS_OWNERDRAW | BS_FLAT | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 123, 109, 50, 9 
   CONTROL "X", 1573, BUTTON, BS_OWNERDRAW | BS_FLAT | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 168, 7, 12, 10 
}
Ok now the button is either not there or it is invisible lol. Because of adding in an extra line I had to fiddle with the numbers ;) The other things are STILL working though so that`s a good thing I guess lol.