How do I find hitbox data from RAM

I'm trying to find hitbox data from RAM so I can make a lua script to FCEUX that displays hitboxes, but I don't really know how to find them.

Comments

  • That depends on which game you want to make it for.

  • Originally posted by: DoNotWant



    That depends on which game you want to make it for.





    I wanted to make it for Getsu Fuuma Den.
  • Usually the boxes are calculated on the fly using the object coordinates, so it isnt just a simple lookup in RAM.

  • Originally posted by: bunnyboy



    Usually the boxes are calculated on the fly using the object coordinates, so it isnt just a simple lookup in RAM.





    I see. Well, I'm pretty sure the results of the hitbox calculations still are stored somewhere in RAM. I guess I have to find some coordinates to get me one step closer finding the hitboxes. I actually tried it already and I couldn't find the player's coordinates. What's odd tough is that I managed to find Mario's coordinates in SMB3 back at the time I did RAM Watching for that game. Are there possibly more than one way of calculating object coordinates? (other ways than calculating the position in relation of the currently loaded stage)
  • Originally posted by: Baka94


    Originally posted by: bunnyboy



    Usually the boxes are calculated on the fly using the object coordinates, so it isnt just a simple lookup in RAM.





    I see. Well, I'm pretty sure the results of the hitbox calculations still are stored somewhere in RAM. I guess I have to find some coordinates to get me one step closer finding the hitboxes. I actually tried it already and I couldn't find the player's coordinates. What's odd tough is that I managed to find Mario's coordinates in SMB3 back at the time I did RAM Watching for that game. Are there possibly more than one way of calculating object coordinates? (other ways than calculating the position in relation of the currently loaded stage)




    I doubt they'd be stored in ram, but rather a calculation and conditional block to determine which action to take next. Sprites will have their coords in a sprite table, at least on the genesis (can't imagine it would be that different than the nes).
Sign In or Register to comment.