How to hack a pal game to a ntsc game!

NES development discussion in English, Español, Français, Português, русский язык, or any language.

Moderator: Moderators

Post Reply
User avatar
byemu
Posts: 297
Joined: Mon Sep 05, 2011 5:56 pm
Contact:

How to hack a pal game to a ntsc game!

Post by byemu »

Anyone tell me:
How to hack a pal game to a ntsc game (or ntsc to pal)!
User avatar
rainwarrior
Posts: 8731
Joined: Sun Jan 22, 2012 12:03 pm
Location: Canada
Contact:

Re: How to hack a pal game to a ntsc game!

Post by rainwarrior »

Depends on the game and what it does. Also depends whether you want it to play at 6/5 speed or not. If it takes advantage of the extended PAL vblank, you'll probably have a hard time.

Anyhow, start by learning the difference between NTSC and PAL. If you already know how to program an NES and hack a ROM, it should be fairly clear what you need to do from the differences. If you don't, then you will need to learn that first.

I doubt there's a generic way to describe how to hack PAL to NTSC that you could just take and apply if you aren't already a ROM hacker, and if you are, the wiki page I linked above should be pretty much all you need. The actual steps you need to take will be different for every game. (Some games will even run "ok" if you just put them in the other mode.)

If there is a specific game you are trying to port, let us know your progress, what you have tried, where you are stuck, etc.
User avatar
Dwedit
Posts: 4922
Joined: Fri Nov 19, 2004 7:35 pm
Contact:

Re: How to hack a pal game to a ntsc game!

Post by Dwedit »

It depends on why the game isn't compatible.
Some games rely on the PAL NES having a much longer vblank period, so there's more time to draw stuff. Games like Asterix would need their VRAM update code rewritten.
Some games are using timed code starting from the vblank, or starting from scanline -1, or starting from a sprite 0 hit. You can simply change the timing.
Some games need the music pitch adjusted back to NTSC notes.
Here come the fortune cookies! Here come the fortune cookies! They're wearing paper hats!
User avatar
Bregalad
Posts: 8055
Joined: Fri Nov 12, 2004 2:49 pm
Location: Divonne-les-bains, France

Re: How to hack a pal game to a ntsc game!

Post by Bregalad »

I did hack a few games, and it innolved mainly 2 thins :
- I had to find the pitch table, and multiply all values by 15/16 (NTSC->PAL), for PAL->NTSC you'd have to multiply them by 16/15
- Find where the game have timed code for special video effects, and adjust the clock cycles for PAL (usually you'd do this with trial and error).
User avatar
Hamtaro126
Posts: 818
Joined: Thu Jan 19, 2006 5:08 pm

Re: How to hack a pal game to a ntsc game!

Post by Hamtaro126 »

At one time, I did a hack that is still doable, I put Hebereke's Sound Engine in place of Ufouria's Sound engine...

This was essentially the only way to make a real NTSC version of Ufouria, and besides, other change is not needed to put it in, at least for this game, because the Game speed is the same in both PAL and NTSC!

IPS Patch: http://acmlm.kafuka.org/uploader/get.php?id=4339
AKA SmilyMZX/AtariHacker.
User avatar
byemu
Posts: 297
Joined: Mon Sep 05, 2011 5:56 pm
Contact:

Re: How to hack a pal game to a ntsc game!

Post by byemu »

Hamtaro126 wrote:At one time, I did a hack that is still doable, I put Hebereke's Sound Engine in place of Ufouria's Sound engine...

This was essentially the only way to make a real NTSC version of Ufouria, and besides, other change is not needed to put it in, at least for this game, because the Game speed is the same in both PAL and NTSC!

IPS Patch: http://acmlm.kafuka.org/uploader/get.php?id=4339

Thanks!
And do you have a Gimmick IPS can hack Gimmick(E) to NTSC!
User avatar
rainwarrior
Posts: 8731
Joined: Sun Jan 22, 2012 12:03 pm
Location: Canada
Contact:

Re: How to hack a pal game to a ntsc game!

Post by rainwarrior »

There shouldn't be a need to hack it; there is an NTSC gimmick prototype kicking around somewhere (I don't have it, personally, but I know one exists).
guitarzombie
Posts: 164
Joined: Sat Dec 07, 2013 6:18 pm

Re: How to hack a pal game to a ntsc game!

Post by guitarzombie »

I wish someone did this for Super Turrican! Its just beyond my scope of programming, but I do understand what goes into it.

I read somewhere that this game can auto detect whether its being played on a PAL or NTSC system and change accordingly. Where did this rumor start?! (as its not true)
tepples
Posts: 22705
Joined: Sun Sep 19, 2004 11:12 pm
Location: NE Indiana, USA (NTSC)
Contact:

Re: How to hack a pal game to a ntsc game!

Post by tepples »

I don't know about Turrican, but Thwaite and RHDE both autodetect NTSC or PAL by measuring the time between two vblank NMIs. This triggers one of three speed settings, which have these effects in both games:
  • Famicom, NTSC NES, and NTSC famiclone mode (0): Normal
  • PAL famiclone (Dendy) mode (2): Increase movement speeds by 20%, increase music tempo by 20%, and repeat tasks that run every tenth of a second after 5 frames instead of 6
  • PAL NES mode (1): Same as Dendy mode, plus transpose the pitch up a semitone, and in RHDE, redraw up to half the playfield (15x24) every vblank instead of one-fifth of the playfield (6x24)
Codemasters games tend to do the same, just without any difference between Dendy and PAL NES because they weren't aware of Dendy.
guitarzombie
Posts: 164
Joined: Sat Dec 07, 2013 6:18 pm

Re: How to hack a pal game to a ntsc game!

Post by guitarzombie »

I read somewhere that it auto detects. But when I tried it myself it doesnt, plus there is the PAL version, and then the NTSC prototype thats not being dumped. So A) if it DOES autodetect theres prob not a reason for the NTSC version and B) just turn off pal emulation on your emulator and there ya go, no difference. At least I think that might be it.

(BTW thats cool that it CAN be done)
Post Reply