Changing a group of offsets by the same value?

Anything Cheat Engine related, bugs, suggestions, helping others, etc..
Post Reply
dd777
Cheater
Cheater
Posts: 33
Joined: Sat May 06, 2017 5:47 am
Reputation: 11

Changing a group of offsets by the same value?

Post by dd777 »

So, this is likely to seem like a really stupid question, but is there any way to adjust a bunch of pointer offsets by the same value? As in, let's say I have something like this:
Example

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<CheatTable>
  <CheatEntries>
    <CheatEntry>
      <ID>231</ID>
      <Description>"Quickslot 4"</Description>
      <Options moHideChildren="1"/>
      <LastState Value="" Activated="1" RealAddress="00000000"/>
      <GroupHeader>1</GroupHeader>
      <CheatEntries>
        <CheatEntry>
          <ID>232</ID>
          <Description>"Item Exists"</Description>
          <LastState Value="0" RealAddress="14588788"/>
          <VariableType>Byte</VariableType>
          <Address>Inquisitor.exe+B5934</Address>
          <Offsets>
            <Offset>860</Offset>
            <Offset>14</Offset>
            <Offset>9DC</Offset>
          </Offsets>
        </CheatEntry>
        <CheatEntry>
          <ID>233</ID>
          <Description>"Item"</Description>
          <DropDownListLink>Item</DropDownListLink>
          <LastState Value="-1" RealAddress="14588790"/>
          <VariableType>4 Bytes</VariableType>
          <Address>Inquisitor.exe+B5934</Address>
          <Offsets>
            <Offset>868</Offset>
            <Offset>14</Offset>
            <Offset>9DC</Offset>
          </Offsets>
        </CheatEntry>
        <CheatEntry>
          <ID>234</ID>
          <Description>"Charges"</Description>
          <LastState Value="0" RealAddress="14588794"/>
          <VariableType>4 Bytes</VariableType>
          <Address>Inquisitor.exe+B5934</Address>
          <Offsets>
            <Offset>86C</Offset>
            <Offset>14</Offset>
            <Offset>9DC</Offset>
          </Offsets>
        </CheatEntry>
        <CheatEntry>
          <ID>235</ID>
          <Description>"Max Charges"</Description>
          <LastState Value="0" RealAddress="14588798"/>
          <VariableType>4 Bytes</VariableType>
          <Address>Inquisitor.exe+B5934</Address>
          <Offsets>
            <Offset>870</Offset>
            <Offset>14</Offset>
            <Offset>9DC</Offset>
          </Offsets>
        </CheatEntry>
      </CheatEntries>
    </CheatEntry>
  </CheatEntries>
</CheatTable>
And I wanted to change all the top-level offsets by the same number, +30 (so 860 -> 890, 868 -> 898, etc.), how would I go about doing that? Changing from the "Adjust address by" changes the base pointer instead of the offset, and incrementing the offset increments all the values by consecutive amounts (so 860 -> 890, but the second entry would be +60, and the third would be +90, etc.). I don't really understand coding and lua/assembly, so I'm just sort of lost, because there has to be a better way than copy-pasting and changing all these entries by hand, right?

Affly
Noobzor
Noobzor
Posts: 12
Joined: Sun Mar 19, 2017 11:50 am
Reputation: 1

Re: Changing a group of offsets by the same value?

Post by Affly »

If you know Lua it is possible to make a function that will generate all the pointers automatically. Refer to this thread for pointers.
[Link]

If you don't know Lua then ye... changing by hand is about the only way.

dd777
Cheater
Cheater
Posts: 33
Joined: Sat May 06, 2017 5:47 am
Reputation: 11

Re: Changing a group of offsets by the same value?

Post by dd777 »

...Changing by hand it is, I guess. :(

Post Reply

Who is online

Users browsing this forum: No registered users