<?xml version="1.0" encoding="utf-8"?>
<CheatTable CheatEngineTableVersion="46">
  <CheatEntries>
    <CheatEntry>
      <ID>9</ID>
      <Description>"Get Ingame First Then Enable"</Description>
      <Options moHideChildren="1"/>
      <GroupHeader>1</GroupHeader>
      <CheatEntries>
        <CheatEntry>
          <ID>6</ID>
          <Description>"Find + Register GEngine"</Description>
          <Options moHideChildren="1"/>
          <VariableType>Auto Assembler Script</VariableType>
          <AssemblerScript>[ENABLE]
{$lua}
if not syntaxcheck then
  local function isValidPointer(addr)
    if not addr or addr == 0 then return false end
    if addr &lt; 0x10000 then return false end
    if addr % 8 ~= 0 then return false end
    return true
  end

  local function hasValidVTable(objectPtr)
    local success, vtable = pcall(readPointer, objectPtr)
    if not success or not isValidPointer(vtable) then
      return false
    end
    if vtable &lt; 0x100000000 or vtable &gt; 0x7FFFFFFFFFFF then
      return false
    end
    return true
  end

  local function validateGEngine(gEngineAddr)
    local enginePtr = readPointer(gEngineAddr)
    if not isValidPointer(enginePtr) or not hasValidVTable(enginePtr) then
      return false
    end
    for viewportOffset = 0x700, 0x900, 0x8 do
      local success1, viewportPtr = pcall(readPointer, enginePtr + viewportOffset)
      if success1 and isValidPointer(viewportPtr) and hasValidVTable(viewportPtr) then
        for worldOffset = 0x70, 0x100, 0x8 do
          local success2, worldPtr = pcall(readPointer, viewportPtr + worldOffset)
          if success2 and isValidPointer(worldPtr) and hasValidVTable(worldPtr) then
            for giOffset = 0x150, 0x200, 0x8 do
              local success3, giPtr = pcall(readPointer, worldPtr + giOffset)
              if success3 and isValidPointer(giPtr) and hasValidVTable(giPtr) then
                return true
              end
            end
          end
        end
      end
    end
    return false
  end

  local function findGEngine()
    local patterns = {
      {"48 8B 0D ?? ?? ?? ?? 48 85 C9 74", 3, 7},
      {"48 8B 05 ?? ?? ?? ?? 48 8B 88 ?? ?? ?? ??", 3, 7},
      {"48 8B 0D ?? ?? ?? ?? 48 8B 01 FF", 3, 7},
      {"48 89 0D ?? ?? ?? ?? 48 85 C9", 3, 7},
      {"48 8B 05 ?? ?? ?? ?? 48 85 C0 74", 3, 7},
      {"48 8B 0D ?? ?? ?? ?? 4C 8B 01", 3, 7},
      {"4C 8B 05 ?? ?? ?? ?? 4C 85 C0", 3, 7},
      {"48 8B 15 ?? ?? ?? ?? 48 85 D2 74", 3, 7},
    }
    print("Scanning for GEngine...")
    local candidateCounts = {}
    for i, patternData in ipairs(patterns) do
      local pattern = patternData[1]
      local offsetPos = patternData[2]
      local instrLen = patternData[3]
      local result = AOBScan(pattern, "+X")
      if result and result.Count &gt; 0 then
        local maxCheck = math.min(result.Count, 50)
        for j = 0, maxCheck - 1 do
          pcall(function()
            local instructionAddrStr = result.getString(j)
            local instructionAddr = getAddress(instructionAddrStr)
            local offsetAddr = instructionAddr + offsetPos
            local ripOffset = readInteger(offsetAddr)
            local gEngineAddr = instructionAddr + instrLen + ripOffset
            if validateGEngine(gEngineAddr) then
              candidateCounts[gEngineAddr] = (candidateCounts[gEngineAddr] or 0) + 1
            end
          end)
        end
        result.destroy()
      end
    end

    local bestAddr = nil
    local bestCount = 0
    for addr, count in pairs(candidateCounts) do
      print(string.format("  %X: %d patterns", addr, count))
      if count &gt; bestCount then
        bestAddr = addr
        bestCount = count
      end
    end
    if bestAddr then
      registerSymbol("GEngine", bestAddr, true)
      print(string.format("GEngine registered: %X", bestAddr))
      return true
    end
    print("GEngine not found!")
    return false
  end
  findGEngine()
end
{$asm}

[DISABLE]
{$lua}
if not syntaxcheck then
  if getAddress("GEngine") then
    unregisterSymbol("GEngine")
    print("GEngine unregistered")
  end
end
{$asm}
</AssemblerScript>
          <CheatEntries>
            <CheatEntry>
              <ID>8</ID>
              <Description>"Set Fly Speed to 1200 and then set Movement to 5 then Collision to 0"</Description>
              <GroupHeader>1</GroupHeader>
            </CheatEntry>
            <CheatEntry>
              <ID>7</ID>
              <Description>"FlySpeed"</Description>
              <ShowAsSigned>0</ShowAsSigned>
              <VariableType>Float</VariableType>
              <Address>GEngine</Address>
              <Offsets>
                <Offset>274</Offset>
                <Offset>330</Offset>
                <Offset>2E8</Offset>
                <Offset>30</Offset>
                <Offset>0</Offset>
                <Offset>38</Offset>
                <Offset>1D8</Offset>
                <Offset>78</Offset>
                <Offset>BD0</Offset>
              </Offsets>
            </CheatEntry>
            <CheatEntry>
              <ID>3</ID>
              <Description>"MovementMode (1 walk,3 fall,5 fly)"</Description>
              <ShowAsSigned>0</ShowAsSigned>
              <VariableType>Byte</VariableType>
              <Address>GEngine</Address>
              <Offsets>
                <Offset>221</Offset>
                <Offset>330</Offset>
                <Offset>2E8</Offset>
                <Offset>30</Offset>
                <Offset>0</Offset>
                <Offset>38</Offset>
                <Offset>1D8</Offset>
                <Offset>78</Offset>
                <Offset>BD0</Offset>
              </Offsets>
            </CheatEntry>
            <CheatEntry>
              <ID>2</ID>
              <Description>"CollisionEnabled (3 or 1 on, 0 off)"</Description>
              <ShowAsSigned>0</ShowAsSigned>
              <VariableType>Byte</VariableType>
              <Address>GEngine</Address>
              <Offsets>
                <Offset>35F</Offset>
                <Offset>338</Offset>
                <Offset>2E8</Offset>
                <Offset>30</Offset>
                <Offset>0</Offset>
                <Offset>38</Offset>
                <Offset>1D8</Offset>
                <Offset>78</Offset>
                <Offset>BD0</Offset>
              </Offsets>
            </CheatEntry>
            <CheatEntry>
              <ID>1</ID>
              <Description>"Player_BP_C (useless, info only)"</Description>
              <ShowAsHex>1</ShowAsHex>
              <VariableType>8 Bytes</VariableType>
              <Address>GEngine</Address>
              <Offsets>
                <Offset>2E8</Offset>
                <Offset>30</Offset>
                <Offset>0</Offset>
                <Offset>38</Offset>
                <Offset>1D8</Offset>
                <Offset>78</Offset>
                <Offset>BD0</Offset>
              </Offsets>
            </CheatEntry>
          </CheatEntries>
        </CheatEntry>
      </CheatEntries>
    </CheatEntry>
  </CheatEntries>
  <UserdefinedSymbols/>
</CheatTable>
