don't click here

Sonic 3K Object Ram Lua Script

Discussion in 'Engineering & Reverse Engineering' started by Cokie, Nov 11, 2021.

  1. Cokie


    C. Okie Member
    I am working on a lua script that shows object ram information for s3k. It displays a HUD of the objects start address in object ram, the code pointer address, the x and y coordinates and the coordinate type ( screen or play field) . It also draws a transparent box over objects and shows the hud info in the box . Although I am using this to learn about the assembly code relating to soz2 ghosts, it can be modified to draw any range of objects or all the objects for any level . I want to implement a filter by the code pointer address and the objects offset in object

    THE HUD color coded by coordinate system . Red is for screen and greens is for play field coordinates.

    Video Sample


    With a little tweak you can see any range or all of objects in object ram



    Works for any level with little tweak


    Here is the code Lua Script

    It is in early stages and is rough ( I’m new to lua ) but I am building it up more and more and clean the code design.

    Last edited: Nov 11, 2021