News: 11 March 2016 - Forum Rules
Current Moderators - DarkSol, KingMike, MathOnNapkins, Azkadellia, Danke

Author Topic: Sprite format help: for Kamen no Ninja Hanamaru  (Read 3111 times)

Hamtaro126

  • Full Member
  • ***
  • Posts: 174
  • R.I.P. 2006-2012
    • View Profile
Sprite format help: for Kamen no Ninja Hanamaru
« on: April 12, 2011, 07:46:36 pm »
Hello. I need some assisance for a Proof-of-Concept hack of Hanamaru, Since GRDI and Myself know that Wagyan Land was hacked into Hanamaru, and then Yo! Noid, It will be redone as Yo! Wagyan (may change, it is WIP!)

I can't find the sprites in the hex editor, And it should consists of Tiles, Attributes, Cooridnates, and possibly Priority, and I can only do CHR at this time!

Can credit the person if the format is found, Good luck finding it out!
« Last Edit: April 12, 2011, 08:03:11 pm by Hamtaro126 »
(Ban is Repealed because of refusal to accept action. Making this major problem worse, So if no-one tempbans me, I WILL NOT COME BACK PERMANENTLY)

Erase this when you are ready to act like a MAN!!!

KingMike

  • Forum Moderator
  • Hero Member
  • *****
  • Posts: 6958
  • *sigh* A changed avatar. Big deal.
    • View Profile
Re: Sprite format help: for Kamen no Ninja Hanamaru
« Reply #1 on: April 12, 2011, 09:04:22 pm »
Hanamaru uses CHR-ROM so the sprites are uncompressed. So, it'd take very basic ROM hacking skills to change them.
Almost all NES games store sprites as a single page of RAM (0n00 to 0nFF). Open FCEUX, set a write breakpoint (Debugger, Add, enter the CPU address, click CPU RAM and Write) for $4014 to figure out which page n is used for sprites.
Then you have it narrowed down to a $100-byte range in RAM. Open FCEUX' hex editor, figure out which address each sprite is in, then set a write breakpoint to see where the data for each sprite comes from.
Each sprites data is 4 bytes: first is Y, second is tile number, third is attributes, fourth is X.
Now have fun doing the tedious part of finding where each and every sprite's data is.
"My watch says 30 chickens" Google, 2018

Hamtaro126

  • Full Member
  • ***
  • Posts: 174
  • R.I.P. 2006-2012
    • View Profile
Re: Sprite format help: for Kamen no Ninja Hanamaru
« Reply #2 on: April 12, 2011, 09:25:53 pm »
Thank you, Now I can get to finishing my hack,

It may have a release around 2012-2013 at this rate, depending on what I am needing to change

And I am almost done with redoing the script!

Screenshots will come when released, because it is a WIP!
(Ban is Repealed because of refusal to accept action. Making this major problem worse, So if no-one tempbans me, I WILL NOT COME BACK PERMANENTLY)

Erase this when you are ready to act like a MAN!!!