+  RHDN Forum Archive
|-+  Romhacking
| |-+  ROM Hacking Discussion
| | |-+  Converting .prg and .chr back to .nes file
Pages: 1 [2]
Author Topic: Converting .prg and .chr back to .nes file  (Read 1 times)
Spikeman
Guest
« Reply #15 on: March 07, 2010, 12:05:19 am »

Anticipating a potential problem with that method:

The original ROM may have had 0d,0a in it somewhere. There are ways around that though. You could find the spots in the original Mario game that have those bytes and where they correspond in your files, then change them to some other byte sequence temporarily.

Hopefully you won't have to do anything like this, so just throwing this out there to save you potential headaches.
UglyJoe
Guest
« Reply #16 on: March 07, 2010, 12:11:02 am »

Yeah, I anticipated that.  The PRG for SMB does have a few occurrences of that.  The dumping program will replace 0d0a with 0d0d0a.  The s&r will replace 0d0d0a with 0d0a.  As long as he doesn't run the s&r twice on the same file, the original 0d0a occurrences will remain intact.
haogden
Guest
« Reply #17 on: March 07, 2010, 12:20:51 pm »

When I installed TranslHextion, I got an error message saying, "Januschan JOME regular failed to install".  But the program still installed, so I'm going to try what was suggested anyway.  I don't know if this failure to install had anything to do with me having Vista 64 bit, that seems to be my problem with a lot of this stuff.

March 07, 2010, 12:51:04 pm - (Auto Merged - Double Posts are not allowed before 7 days.)
I did exactly as described.  The .prg file actually wound up being 32769 bytes instead of the 32768 you said it should be (I don't know if that matters).  The .chr file was exactly the size you said it should be. 

I ran command prompt once using the 16 digit header and once using the 32 digit header, since I am not sure which I should be doing.  When I open the .nes file with the 16 digit header in my emulator (VirtuaNES), it gives me the message I normally see when using a hacked .nes file: "Because a NES header is illegal, there can be the thing that does not work normally.  Do Execute?".  When I click yes, I just get a gray screen.  When I open the .nes file with the 32 digit header in VirtuaNES, I get: "Error:  Executed an undefined order".

Any ideas?  I am nowhere near giving up.

March 07, 2010, 01:56:44 pm - (Auto Merged - Double Posts are not allowed before 7 days.)
I FIGURED IT OUT!  The 32 digit header was the one I needed to be using.  I opened the .nes file with that header in Translhextion, and I opened the original SMB.nes in another Translhextion window beside it.  For whatever reason, there was just one thing that didn't match up, and it just happened to be within the first two lines.  I don't know why, but there was a 0d0a where there should have been a 0a.  Thanks yet again to everybody who helped me with this.  If anybody wants the hack, I'll upload it to somewhere, though I know there have probably already been 900 million SMB hacks made.
« Last Edit: March 07, 2010, 04:21:15 pm by haogden »
Karatorian
Guest
« Reply #18 on: March 08, 2010, 08:05:13 am »

Quote from: haogden on March 07, 2010, 12:20:51 pm
If anybody wants the hack, I'll upload it to somewhere, though I know there have probably already been 900 million SMB hacks made.
Naw, only a few hundred or so =_= I'd suggest you add your hack to the database, that way everyone can find it.
Pages: 1 [2]  


Powered by SMF 1.1.4 | SMF © 2006-2007, Simple Machines LLC