It is currently Wed May 24, 2017 6:07 pm

All times are UTC - 7 hours





Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Wed May 17, 2017 2:31 pm 
Offline

Joined: Wed May 17, 2017 8:04 am
Posts: 1
Hi guys, i have a project in mind related with some artificial inteligence playing NES, my biggest problem is the way to get the frame output (not building the IA haha) so i then process it in my ia, i need to get a refresh rate of at least 24frames per second, i read something about accesing ram to check values and then building the image? i seriusly have no idea of how to get the image from a emulator perspective rather than just screenshoting (not optimal), any of you guys know some NES emulator that could help me with this?

Thanks in advance


Top
 Profile  
 
PostPosted: Wed May 17, 2017 3:19 pm 
Offline
User avatar

Joined: Sat Feb 12, 2005 9:43 pm
Posts: 9646
Location: Rio de Janeiro - Brazil
FCEUX has Lua scripting capabilities, which allow you to easily analyze the state of the game every frame by peeking at the RAM. You'll certainly need to research the specific game(s) you'll be working with in order to know where to find all the relevant information about the player, the enemies, the levels, and so on.

EDIT: Here's an example of a small Lua script I wrote to display information about the hardware sprites. What you need to do is a little different from this, because you're interested in the game state, which is formatted differently in each game, but the script can still show you how to set things up, read from memory, draw to the screen, and other things you might need.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 7 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group