Crash, Cyprys, Lapogne. Here's just a simple lua script I edited from a base script (from pirohiko's Crash Bandicoot 2 Lua script)... Edited to fit Spyro 2. This is if you guys check this and I'm not on skype (which is likely lol). Sure it's basic, and not exactly the best ever, but it works. Some values aren't written down because Crash already has most of the values we need, and the others shouldn't be too hard to find...
Also, to anyone reading this. How do I make lua script text... not... so small ? lol
Language: lua
--Hello, this is a lua script designed for "NTSC-U Spyro 2: Ripto's Rage". -- means it's a comment line!
local HEADER = 0x5F38C
local pScale = 2109000
local vScale = 100000
--The above values needn't be messed with! (??)
gui.register(function()
local addr = memory.readdword(HEADER)
if addr ~= 0 then
addr = addr -0x80000000
else
--That's for drawing the Gui Register and header, not much on that.
gui.text(8,45,"")
return
end
--(line 16)
--These values affect Spyro's world. "Local x - Local XY are all about spyro's position".
--
--
--Where as values "Local D - Local Orbs" all affect Spyro's enviroment.
--The values "local X - Local D... After "readdwordsigned"...
--The ( x ) is there for us to input the addresses where needbe.
local X = memory.readdwordsigned( x ) / pScale
local Y = memory.readdwordsigned( x ) / pScale
local Z = memory.readdwordsigned( x ) / pScale
local XV = memory.readdwordsigned( x ) / vScale
local YV = memory.readdwordsigned( x ) / vScale
local ZV = memory.readdwordsigned( x ) / vScale
local V = memory.readdwordsigned( x ) / vScale
local XY = math.sqrt(XV*XV+YV*YV)
local D = memory.readwordsigned( x ) / 4096*360
local Gems = memory.readword(0x67660)
local Orbs = memory.readword(0x6702C)
--
--These values affect the actual text that gets put onto the screen.
--
gui.text(8,52,
string.format("%8d : Rerecord Count \n",movie.rerecordcount() )
..string.format("%4d/%3d : Gems \n", Gems , 10000 )
..string.format("%4d/%3d : Orbs \n", Orbs , 64 )
.."\n"
..string.format("%8.2f : Z Pos \n", Z )
..string.format("%8.2f : Z Vel \n", ZV )
..string.format("%8.2f : X Pos \n", X )
..string.format("%8.2f : X Vel \n", XV )
..string.format("%8.2f : Y Pos \n", Y )
..string.format("%8.2f : Y Vel \n", YV )
..string.format("%8.2f : XY Vel \n", XY )
..string.format("%8.2f : Velocity \n", V )
..string.format("%8.2f : Degrees \n", D )
)
end)