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

Author Topic: Help creating patch files.  (Read 1479 times)

Bonkers!

  • Jr. Member
  • **
  • Posts: 8
    • View Profile
Help creating patch files.
« on: May 06, 2016, 05:42:47 pm »
I'm currently in the middle of creating a graphics hack for the NES game, The Last Starfighter (MSX Uridium sprites) using YY-CHR. Just wondering how to create a patch from the hack?

jink640

  • Sr. Member
  • ****
  • Posts: 377
  • From nuggets to dust.
    • View Profile
Re: Help creating patch files.
« Reply #1 on: May 06, 2016, 05:53:37 pm »
Get lunar IPS (or some other program) and click the "create a patch option". after that, it will ask you to select the original rom, then the modified rom. It should spit out some IPS patch.  :thumbsup:

vortex

  • Jr. Member
  • **
  • Posts: 60
    • View Profile
Re: Help creating patch files.
« Reply #2 on: May 06, 2016, 05:57:40 pm »
I'm currently in the middle of creating a graphics hack for the NES game, The Last Starfighter (MSX Uridium sprites) using YY-CHR. Just wondering how to create a patch from the hack?
When you have your hack ready, you will also need the original Rom of it. Open Lunar IPS, select Create patch. When it asks for Original Rom, choose the original Rom file, and when it asks for the Modified Rom, choose your hack. Then it will ask for the name of the IPS. That's it.

This IPS will then contain all the changes you made to the game. Changes only and can be applied to original Rom. But you also need to drop the original rom you used into the hash calculator to look up the CRC-32 id. The users need to use the exact same original Rom to patch to. If they don't use the exact same one, the result will be a bugged rom.

Additionally you can choose other formats like UPS, xdelta etc, which also include the security check, since they remember the CRC of the original rom and the info is in the patch itself, so users can not patch wrong, they can only get a "CRC target mismatch".

Bonkers!

  • Jr. Member
  • **
  • Posts: 8
    • View Profile
Re: Help creating patch files.
« Reply #3 on: May 07, 2016, 10:40:35 am »
Wow, is that it!? I thought I'd have to become some super-duper code-meister! Much appreciated, folks! Thanks for your time and help!

henke37

  • Hero Member
  • *****
  • Posts: 643
    • View Profile
Re: Help creating patch files.
« Reply #4 on: May 09, 2016, 08:33:51 am »
Just note that IPS is a horrible patch format. It has no checksums to ensure that it is being applied correctly.

There are much better ones out there. The tools are just as simple to use, provide the original file and the modified file and the patcher will create a patch file.