Sonic 3K Object Ram Lua Script

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

  1. Cokie

    Cokie

    C. Okie Member
    5
    3
    3
    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






    [​IMG]

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


    [​IMG]


    [​IMG]

    Works for any level with little tweak

    [​IMG]

    Here is the code https://github.com/Cokie1/Sonic3k-O...e499eaf6/Sonic3k-ObjRam-Inspector1 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.

    -Cokie
     
    Last edited: Nov 11, 2021