Posts for eatyourvegetables

Experienced Forum User
Joined: 3/21/2017
Posts: 3
I'm having difficulties compiling lsnes on Ubuntu 16.10. Basically I know nothing about compiling and the inner workings but have managed to compile several libraries using step-by-step dummy-friendly instructions. Unfortunately the manual.txt included in the source is way too advanced for me. Can someone give pointers in how to successfully compile lsnes? I need it for snes and with lua support.
Experienced Forum User
Joined: 3/21/2017
Posts: 3
Thank you all for your input! I didn't find a function
gui.screenshot_bitmap()
from http://tasvideos.org/Lsnes/LuaFunctions.html#GuiScreenshot Is this the right place? I believe taking a screenshot and saving it each frame might be terribly slow, although I have a decent computer and the resolution of old consoles is not very high. Thanks for the link to Mario-ai, I'll look into it. I come from the machine learning world, and both using pixels and reading game state from memory are interesting options. How do I know where is the current frame stored in the memory?
Post subject: Extracting frames for an external program
Experienced Forum User
Joined: 3/21/2017
Posts: 3
Hello, I'm an ai developer, and interested in trying my claws in making ai for simple games, such as Super Mario World or even simpler. I would like to extract each frame (like, an array of exact pixel values) of a game to feed it to an analysing script (to utilize computer vision methods and whatnot) and give back a list of inputs to the game. I tried reading BizHawk documentation about Lua scripting, but I didn't find anything related to reading the screen, only drawing on it. Do you have any idea how to accomplish this?