Z
Z
zenija20072021-11-24 09:54:19
hex
zenija2007, 2021-11-24 09:54:19

What is the correct way to edit the 2 bits after 0x07 (IF, JUMPIFNOT) in the hex code of a file?

Hello. I only understand hex editing using the example of cooked (cooked) files for games on the UT3 engine. But among the many articles and messages on the forums, I did not find how to properly edit the offset in IF conditions. In hexadecimal code, they are represented as 07 + 2 bits for setting the offset. The offset specifies where the IF condition closes. For example, I remove unnecessary arguments from the list of conditions, as a result, the size of the IF function changes and it no longer closes in the right place. 0B tokens and dummy variable calls are used to keep the file working after code changes. But besides this, in all modifications, 2 bits change after 07.
I can’t figure it out on my own, I will be grateful if you tell me what to read on this topic or where there are specialists who can help. Unfortunately, there is zero activity on the nexus forums where I expected to get help. UT3 forums don't raise such questions at all.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question