I have created a few "menu face" images, for few months ago. Problem: the exe can count only to 13. Solution: now.
I found the address with the value "13".
(NOT CHANGE THE HEX-TYPE!)
Than default hex looks like so:
Or in "decompiler" applications:
You can change "0D". 0D is a hex value and it has the value 13 than integer. The value indicates the amount of "menu face" images. He accept values between 1 and 123 (so i think). Value 0 is a exception = program broken!
To convert a integer to a hex value: https://www.binaryhexconverter.com/decim...-converter
Finished? Not completly.
The exe has only 13 "menu faces". If you want more images, you must add the images with a resource editor.
Result
Okay supplement:
The HEX-Addres 2389E indicates the amount and not "end number" (becomes immediately clear).
... this is the start number.
If you change the start number, then you must change the last hex value (01) by the address 238A5.
Example with the first sentence:
We want that the images "MENU_BACK" starts by 13 and ending by 16.
We change 01 in 0D by the address 238A5. And we change 0D in 04 by the address 2389E, because the difference 16 to 13 is 3, but "13" is included, that is the reason for 4.
I found the address with the value "13".
Code:
HEX-Addres: 2389E
HEX-TYPE: MOV (HEX: B9)
Than default hex looks like so:
Code:
B9 0D
Code:
MOV ECX, 0D
You can change "0D". 0D is a hex value and it has the value 13 than integer. The value indicates the amount of "menu face" images. He accept values between 1 and 123 (so i think). Value 0 is a exception = program broken!
To convert a integer to a hex value: https://www.binaryhexconverter.com/decim...-converter
Finished? Not completly.
The exe has only 13 "menu faces". If you want more images, you must add the images with a resource editor.
Result
Okay supplement:
The HEX-Addres 2389E indicates the amount and not "end number" (becomes immediately clear).
Code:
HEX-Address: 238A5
Default Value of address: 83 C2 01
Hex-Type: ADD EDX
If you change the start number, then you must change the last hex value (01) by the address 238A5.
Example with the first sentence:
We want that the images "MENU_BACK" starts by 13 and ending by 16.
We change 01 in 0D by the address 238A5. And we change 0D in 04 by the address 2389E, because the difference 16 to 13 is 3, but "13" is included, that is the reason for 4.
Website: Lui's Studio
Projects:
Easier Data-Editor
LF2 Modding Environment (Blog) (new version of Little Easier LF-Editor)
LF-Empire Client
Prototypes (Xmas special) (Weapon Generator, Stage Viewer, Frozen Sprite Generator, Body Auto Detection)
Programmable AI for Neora