Post subject: Debugging/reverse engineering/etc. with lsnes?
Joined: 2/27/2014
Posts: 1
Location: Columbus, OH
So, I'm not quite a newbie as far as debugging and reverse engineering goes, but this is pretty much my first time TASing. I'm curious how to get lsnes to actually do anything as far as debugging/RE goes. I don't really know Lua which probably isn't helping, but I can't seem to actually get memory.settrace to do anything, the console just spits out the following: Error running Lua hunk: [string "memory.settrace("trace.txt")"]:1: attempt to call field 'settrace' (a nil value). I'm assuming I haven't loaded some module or something, since I'm actually unable to get any of the memory functions working; they all throw the same error. Maybe I should be using something else for actual debugging? I am using lsnes rr1-Δ18ε3, for what it's worth. Thanks for the help!
Masterjun
He/Him
Site Developer, Skilled player (1987)
Joined: 10/12/2010
Posts: 1185
Location: Germany
If you want to use debugging features with lsnes I'd suggest using lsnes rr2 (the beta). It's the version with a lot of features such as Trace log without using Lua (Tools > Trace Log) where you also can set breakpoints or the Disassembler which could be very useful. You could also check out lua.pdf for a lot of things you can do with Lua.
Warning: Might glitch to credits I will finish this ACE soon as possible (or will I?)