IPB

Welcome Guest ( Log In | Register )


> EXE hex Editing - Text Colours. A possible discoverey..., Might have allready been discovered, but worth a read.
Creagor
post Dec 3 2006, 08:49 PM
Post #1


Flame Tank
Group Icon

Group: Global Moderators
Posts: 568
Joined: 21-October 06
From: Look over there! *runs*
Member No.: 40
Alliance: GDI
Favorite game: Tiberian Sun



No, not a tutorial, nothing "new", just some interesting findings. Its In the "advanced" area because I think exe editing is more "advanced" than general modding.
I will write it into a hex editing tutorial once I've messed around with it a bit more, and seen if anything else can come of this....

Okay, so while looking through the exe for references to the text colour in the map secection area/select campaign area/version text box/music select area (as you do!) I stumbled across a reference to "LightGrey". Well I thought, what has that got to do with anything. Then it hit me. Memories of a topic TShyper made ages ago on PPM (THIS one to be exact) swam into view.

The bit we are interested in:

QUOTE
"Green=" will universaly control the loading screens text for all sides, IE. GDI, NOD, 3rd & 4th sides tongue.gif

"LightGrey=" will control the colour of the text that is on the side bar, IE. "ready" or "on hold" also! the test that shows up in the tool tips.


So remembering this, I searched the exe for "green", and sure enough, there it was.
It occured to me there and then that this was obviously the part that stated which colour tags controled the things mentioned above, and that this could be changed, so that the tags "Green=" and "LightGrey=" could be freed up for other use, without disturbing the text colours.

(In the exe) I changed "Green" to "TextCol" and "LightGrey" to "TextCol2". Then I added theese "new colours" to rules.ini, in the appropriate section:

TextCol=###,###,###
TextCol2=###,###,###

Obviously the #'s were numbers, this is just an example remember. tongue.gif
"TextCol" was the code for Orange and "TextCol2" was the colour for Red. It worked! And works with any valid colour code.

You can also change the thing in the exe to "Orange" or "Red", to read off the ini "Orange" and "Red", but adding "new" tags is more fun, and looks more impressive :biggrin:

Attached Images:
One shows the results of the "TextCol" things I did. The others show the replaced "Green" and "LightGrey" in the exe, so that the more knowlageable ones here can use the offset to find its locaition in the exe, and try it yourselves.

As I said, it isnt "new" and I'm not sure if it has been found before, but it's interesting nonetheless.

This post has been edited by Creagor: Dec 3 2006, 08:54 PM
Attached image(s)
Attached Image Attached Image Attached Image
 


--------------------

Fluent in |3375p3k, 68 65 78 65 64 65 63 69 6d 61 6c, ebg13, -- --- .-. ... . -.-. --- -.. . --..-- and 01100010 01101001 01101110 01100001 01110010 0111100100101110
(Whoever translates that gets nothing, just +1 on thier geek score)
Go to the top of the page
 
: | +Quote Post
 
Start new topic
Replies
SeekSomethingNew
post Dec 20 2006, 10:57 AM
Post #2

Stealth Tank
Group Icon

Group: Members
Posts: 1,025
Joined: 31-October 06
Member No.: 208
Alliance: GDI
Favorite game: Tiberian Sun



ah yes, another person converted to the bad EXe ways muuhaaaa! tongue.gif HW rules, though i do like HDD for quick and easy edits. ah and i will tell you that offset trick when i see you online next XD


--------------------
Go to the top of the page
 
: | +Quote Post



Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 16th June 2025 - 08:08 PM


XGhozt.com