Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[solved]How to modify the blue box on the left of Championship
#1
As shown on title, I would like to have a way to change its color, or entirely remove it but I cannot find the color code. I'm pretty sure it is installed inside the exe code.

That box normally can't be observed in original lf2, but can be seen once you use some mod which doesn't have a blue theme, like mine. The box is indicated by the yellow arrow.

[Image: buffk.png]
Reply
Thanks given by:
#2
http://www.lf-empire.de/en/lf2-empire/ex...g/programs

Download the first package and use ResHacker program,to change LF2.exe images.


Off topic:
Can you tell me which is this lf2? And a download like please?
Reply
Thanks given by:
#3
the Resource Hacker does NOT work with the blue box. In other words, no matter how I change the pictures the box stays, in 1v1 and 2v2 championships (this is somehow annoying)

And the mod link:
Wretch blog
Direct download:
Mediafire

The newest version is v199C official (no beta)
Reply
Thanks given by: empirefantasy
#4
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
Reply
Thanks given by: rewlf2
#5
Thanks very much and it worked.
I'm going to give credit for this tweak as well in my mod.
Reply
Thanks given by:
#6
is there ant tuts for hex for begginers:)

Reply
Thanks given by:
#7
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.
Reply
Thanks given by:




Users browsing this thread: 2 Guest(s)