Posts: 41
Threads: 9
Joined: Jul 2010
Use OllyDbg
00432C31 . 68 9A4D3200 PUSH 324D9A ; 324D9A based color, change to your color 261606
00434C6F |. 68 9A4D3200 PUSH 324D9A ; 324D9A based color, change to your color 261606
Posts: 188
Threads: 45
Joined: Dec 2011
Thanks very much and it worked.
I'm going to give credit for this tweak as well in my mod.
Thanks given by:
Posts: 188
Threads: 45
Joined: Dec 2011
01-01-2012, 06:37 AM
(This post was last modified: 01-01-2012, 09:43 AM by rewlf2.)
As something worthy to return to fellows, a simple tutorial is made here:
Firstly, since the color function is installed inside the exe file, there should be some code storing its color, if fortunate it shouldn't be encrypted badly and in form of its color, say #324D9A.
The good news is the code can be found by OllgDbg, in the form of PUSH command, that is "PUSH 324D9A". (This means in XVI32, the command is 68 9A4D32, as of assembly code format.)
(Important) The unmodified LF2 uses two of "PUSH 324D9A" to control colors for each of the boxes, one at 00432C31, another at 00434C6F.
To change the color simply change each command from "PUSH 324D9A" to "PUSH XXXXXX", where XXXXXX is the desired color code.
-----
New update: In v2.0a exe file, it is found 3 of "PUSH 324D9A" are found. The third PUSH command (located at the last) controls the four blue blocks in 2V2 championship.
In v1.9c exe file there are 4 of them, and the extra one controls the color of two main menus.
*If you cannot find it in your mod, download newest version of OllyDbg, it has better searching methods for your sake. However it doesn't store changes so use another hex program like XVI32 to edit it.
Be careful mixing up with codes for backgrounds in v1.9c exe.
Thanks given by: