xTVaser / pcsx2-rr

PCSX2-rr - The Playstation 2 Emulator with TAS Tools (Now Merged into PCSX2 Core!)

Home Page:http://pcsx2.net/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sample Lua file

xTVaser opened this issue · comments

Would be nice to have a sample lua file that shows off the majority of the features

A final step would be to finalize the lua documentation wiki page

https://github.com/xTVaser/pcsx2-rr/blob/master/bin/lua/gui.lua
https://github.com/xTVaser/pcsx2-rr/blob/master/bin/lua/sample/KeyWriter.lua
https://github.com/xTVaser/pcsx2-rr/blob/master/bin/lua/sample/SimpleTest.lua

I think the above 3 files do cover most of the features.

I'm sure somebody dedicated could write up a better tutorial LUA file, but it should be enough for most people to figure out whatever they're trying to do.

lol i totally missed the gui.lua, go figure. Ya the emu.registerbefore() call was what I was missing, thanks.

You're right that it does cover most of the features, but it would be nice to maybe combine them all into one file, as well as if new lua functions are added for floats/strings then the samples should be updated at the least to include them somewhere. But this is pretty low priority.