There's also a way to display some huge string of numbers, breaking it into lines where it fits the best. Bonus points for displaying slot numbers over object sprites.
Language: lua
-- SolarJetman objects
function DrawTable()
local Xcam = memory.readwordsigned(0x4c)
local Ycam = memory.readwordsigned(0x4e)
for Slot = 0, 0x1f do
local ID = memory.readbyte(0x317 + Slot)
local X = memory.readwordsigned(0x200 + Slot, 0x21f + Slot) - Xcam
local Y = memory.readwordsigned(0x25d + Slot, 0x27c + Slot) - Ycam
local CellWidth = 32
local CellHeight = 8
local ScreenWidth = 256
local RowLength = 8
local OffsetX = 1
local OffsetY = 9
local Color = "white"
if ID == 0 then Color = "red" end
gui.text(
Slot * CellWidth % ScreenWidth + OffsetX, -- text X
math.floor(Slot / RowLength) * CellHeight + OffsetY, -- text Y
string.format("%2d:%02X", Slot, ID), -- output string
Color -- you guess
)
gui.text(X, Y, Slot)
end
end