Changing a group of offsets by the same value?
Posted: Thu Sep 19, 2019 3:26 pm
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:
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?
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>