N
N
Newbieee2021-12-16 20:16:16
RAM
Newbieee, 2021-12-16 20:16:16

What is offset and how to refer to the information that is stored in it?

I have an offset: 0x0264FEF8 by which (or in which) an array of all possible colors of the main menu of the test software should be stored.
For example, the menu background color is set to white, it is stored as number "0", but I want to set it to green, and it is stored as number "3".
How to get access to this array having "offset" and manually select an acceptable color, and also what is offset and what is it "eat" with?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
F
freeExec, 2021-12-16
@freeExec

0x0264FEF8 + (color element size) * (color index)

S
SagePtr, 2021-12-16
@SagePtr

To begin with, to understand the displacement in what and relative to what

R
res2001, 2021-12-17
@res2001

offset - offset (from some base address).
Those. the address of your object is calculated like this: base address + offset.
It remains to find out the base address and you can work with colors.

D
dollar, 2021-12-17
@dollar

What is offset?

"offset" - in this context, this is the address of the array in memory.
Theoretically, the elements in this "array" are not required to be stored in memory in the same way as they are in C++, because in Lua any "array" is actually a hash table, and can contain elements of different types.
How to access the information that is stored in it?

It depends on what exactly you want to apply, what funds you have. For example, if Lua is built into your own application, from which you want to get access, then it is better to do this using the Lua API itself, that is, take out the desired element from the table and receive it on a silver platter.
If you want to read the memory of another process, then in fact this is a hack and there can be no universal recipes here.
You can study the memory of that application in some way, you can use the same utilities for cheats in games - ArtMoney or a more serious analogue of CheatEngine. When changing the color in the application itself, look for it in memory until you find the exact address. And then see how it works, what it depends on, etc.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question