Hacking TurboGrafx-16/Pc Engine injection Guide

Mr Objection

Well-Known Member
OP
Member
Joined
Jul 10, 2016
Messages
339
Trophies
0
Age
28
XP
394
Country
Argentina
Hi, I am posting a guide for injecting Turbografx 16/Pc engine games. I am just posting it, I am not the creator.

First you need a legitime virtual console game to do this, also you will need a Hex Editor

Locate the file pce.pkg in the VC game folder in this case the R-Type Folder.

ciluAtC.jpg

Open pce.pkg in a hex editor (make a back-up if you aren't confident).

UGLBuKu.jpg


You now need to locate where the rom file is. This can be easily done by downloading a copy of the US R-Type rom. And opening that in a hex editor. Then copying the opening few rows of hex.

YzWGa14.jpg


Return to PCE.pkg in the hex editor. And search for the hex values you just copied from the R-Type rom.

c3IoqHT.jpg

You have found where the rom is. Delete everything from the hex value 78 onwards.

euOv9x1.jpg

You'll end up with something that looks like this.....

1ETszWH.jpg

Now find a rom you want to try out. Open it in the hex editor, select all and cut.

GnTGJ1V.jpg


Paste it into pce.pkg and save, injection done. See if it works.

muPdj7B.jpg


Disclaimer: This guide wasnt made by me, it was made by HerptyDerpty , so I can't help you if this isnt working.
 
Last edited by Mr Objection,
  • Like
Reactions: Subtle Demise

Bug_Checker_

Well-Known Member
Member
Joined
Jun 10, 2006
Messages
950
Trophies
0
XP
664
Country
United States
1mbit and 2 megabits USA games which should work:
Code:
Boxyboy                            NEC 1990 TGX010031 TurboChip
Keith Courage in Alpha Zones       NEC 1989 TGX020001 TurboChip
Victory Run                        NEC 1989 TGX020002 TurboChip
Legendary Axe, The                 NEC 1989 TGX020003 TurboChip
Alien Crush                        NEC 1989 TGX020005 TurboChip
World Class Baseball               NEC 1989 TGX020007 TurboChip
China Warrior                      NEC 1989 TGX020008 TurboChip
Deep Blue                          NEC 1989 TGX020012 TurboChip
Moto Roader                        NEC 1989 TGX020013 TurboChip
J.J. & Jeff                        NEC 1990 TGX020014 TurboChip
Dragon Spirit                      NEC 1989 TGX020016 TurboChip
Fantasy Zone                       NEC 1989 TGX020017 TurboChip
Galaga '90                         NEC 1989 TGX020018 TurboChip
World Court Tennis                 NEC 1989 TGX020019 TurboChip
Pac-Land                           NEC 1990 TGX020021 TurboChip
Takin' it to the Hoop              NEC 1989 TGX020026 TurboChip
Cratermaze                         NEC 1990 TGX020027 TurboChip
King Of Casino                     NEC 1990 TGX020033 TurboChip
Timeball                           NEC 1990 TGX020034 TurboChip
Chew Man Fu                        NEC 1990 TGX020035 TurboChip
Double Dungeons                    NEC 1990 TGX020036 TurboChip
Dragon's Curse                     NEC 1991 TGX020039 TurboChip
Psychosis                          NEC 1990 TGX020040 TurboChip
Drop Off                           NEC 1990 TGX020042 TurboChip
Super Volleyball                   NEC 1990 TGX020043 TurboChip
Legendary Axe II, The              NEC 1990 TGX020048 TurboChip
Bomberman                          NEC 1991 TGX020053 TurboChip

4mbits USA games which should work:
Code:
R-Type                                    NEC 1989 TGX040011 TurboChip
Ordyne                                    NEC 1989 TGX040022 TurboChip
Space Harrier                             NEC 1989 TGX040025 TurboChip
Bloody Wolf                               NEC 1990 TGX040037 TurboChip
Splatterhouse                             NEC 1990 TGX040041 TurboChip
Bravoman                                  NEC 1990 TGX040047 TurboChip
Ninja Spirit                              NEC 1990 TGX040050 TurboChip
Aero Blasters                             NEC 1990 TGX040051 TurboChip
Super Star Soldier                        NEC 1991 TGX040052 TurboChip
Yo, Bro                                   NEC 1991 TGX040054 TurboChip
TV Sports Basketball                      NEC 1991 TGX040055 TurboChip
TaleSpin                                  NEC 1991 TGX040056 TurboChip
Bonk's Revenge                            NEC 1991 TGX040058 TurboChip
Gunboat                                   NEC 1992 TGX040060 TurboChip
Davis Cup Tennis                          NEC 1991 TGX040061 TurboChip
Impossamole                               NEC 1991 TGX040062 TurboChip
Silent Debuggers                          NEC 1991 TGX040063 TurboChip
Darkwing Duck                             NEC 1992 TGX040066 TurboChip
Falcon                                    TTI 1992 TGX040067 TurboChip
Andre Panza Kick Boxing                   NEC 1990 TGX040068 TurboChip
Night Creatures                           NEC 1992 TGX040069 TurboChip
Dungeons & Dragons: Order of the Griffon  TTI 1992 TGX040072 TurboChip
Ghost Manor                               TTI 1992 TGX040076 TurboChip
Champions Forever Boxing                  NEC 1991 TGX040077 TurboChip
Jackie Chan's Action Kung Fu              TTI 1992 TGX040079 TurboChip
New Adventure Island                      TTI 1992 TGX040080 TurboChip
Dead Moon                                 TTI 1992 TGX040081 TurboChip
Soldier Blade                             NEC 1992 TGX040082 TurboChip
Legend of Hero Tonma                      TTI 1993 TGX040083 TurboChip
Air Zonk                                  TTI 1992 TGX040084 TurboChip
Samurai Ghost                             TTI 1992 TGX040085 TurboChip
Magical Chase                             TTI 1993 TGX040086 TurboChip
Shockman                                  TTI 1992 TGX040087 TurboChip
Somer Assault                             NEC 1992 TGX040089 TurboChip
Time Cruise                               TTI 1992 TGX040090 TurboChip
World Sports Competition                  NEC 1992 TGX040092 TurboChip
Bomberman '93                             TTI 1993 TGX040093 TurboChip

6mbits and 8megabits USA games which MAY work:
Code:
Raiden                                     NEC 1991 TGX060075 TurboChip
Neutopia II                                TTI 1992 TGX060078 TurboChip
Bonk 3: Bonk's Big Adventure               TTI 1993 TGX080097 TurboChip

3megabits USA games some/all might work or might not:
Code:
Vigilante                  NEC 1989 TGX030004 TurboChip
Dungeon Explorer           NEC 1989 TGX030006 TurboChip
Power Golf                 NEC 1989 TGX030009 TurboChip
Blazing Lazers             NEC 1989 TGX030010 TurboChip
Military Madness           NEC 1989 TGX030015 TurboChip
Final Lap Twin             NEC 1990 TGX030020 TurboChip
Bonk's Adventure           NEC 1990 TGX030028 TurboChip
Neutopia                   NEC 1990 TGX030029 TurboChip
Cyber Core                 NEC 1990 TGX030030 TurboChip
Devil's Crush              NEC 1990 TGX030038 TurboChip
Tiger Road                 NEC 1990 TGX030044 TurboChip
Veigues Tactical Gladiator NEC 1990 TGX030045 TurboChip
TV Sports Football         NEC 1990 TGX030046 TurboChip
Battle Royale              NEC 1990 TGX030049 TurboChip
Ballistix                  NEC 1992 TGX030059 TurboChip
TV Sports Hockey           NEC 1991 TGX030064 TurboChip
Hit the Ice                TTI 1992 TGX030095 TurboChip
Chase H.Q.                 TTI 1992 TGX030096 TurboChip

Still to be determined USA games:
Code:
Jack Nicklaus' Turbo Golf     Accolade         1990    ATGX02JTTC   TurboChip
Turrican                      Accolade         1991    ATGX04TUTG   TurboChip
Sonic Spike Volleyball        IGS              1990    ITGX10001    TurboChip
Tricky Kick                   IGS              1990    ITGX10004    TurboChip
Sinistron                     IGS              1991    ITGX10007    TurboChip
Side Arms Hyper Dyne          Radiance Software1989    RTGX10001    TurboChip

Klax                          Tengen           1990    TTGX20001    TurboChip
Parasol Stars                 Working Designs  1991    TWG030701    TurboChip
Cadash                        Working Designs  1991    TWG040501    TurboChip
 
Last edited by Bug_Checker_,
  • Like
Reactions: Baphomet

Mr Objection

Well-Known Member
OP
Member
Joined
Jul 10, 2016
Messages
339
Trophies
0
Age
28
XP
394
Country
Argentina
Look I didn't make the rules. Talk to an admin if you want to question the rules
I know that too, I was just asking your personal point of view, but lets finish with this

--------------------- MERGED ---------------------------

1mbit and 2 megabit USA games which should work.
Code:
Boxyboy                            NEC 1990 TGX010031 TurboChip
Keith Courage in Alpha Zones       NEC 1989 TGX020001 TurboChip
Victory Run                        NEC 1989 TGX020002 TurboChip
Legendary Axe, The                 NEC 1989 TGX020003 TurboChip
Alien Crush                        NEC 1989 TGX020005 TurboChip
World Class Baseball               NEC 1989 TGX020007 TurboChip
China Warrior                      NEC 1989 TGX020008 TurboChip
Deep Blue                          NEC 1989 TGX020012 TurboChip
Moto Roader                        NEC 1989 TGX020013 TurboChip
J.J. & Jeff                        NEC 1990 TGX020014 TurboChip
Dragon Spirit                      NEC 1989 TGX020016 TurboChip
Fantasy Zone                       NEC 1989 TGX020017 TurboChip
Galaga '90                         NEC 1989 TGX020018 TurboChip
World Court Tennis                 NEC 1989 TGX020019 TurboChip
Pac-Land                           NEC 1990 TGX020021 TurboChip
Takin' it to the Hoop              NEC 1989 TGX020026 TurboChip
Cratermaze                         NEC 1990 TGX020027 TurboChip
King Of Casino                     NEC 1990 TGX020033 TurboChip
Timeball                           NEC 1990 TGX020034 TurboChip
Chew Man Fu                        NEC 1990 TGX020035 TurboChip
Double Dungeons                    NEC 1990 TGX020036 TurboChip
Dragon's Curse                     NEC 1991 TGX020039 TurboChip
Psychosis                          NEC 1990 TGX020040 TurboChip
Drop Off                           NEC 1990 TGX020042 TurboChip
Super Volleyball                   NEC 1990 TGX020043 TurboChip
Legendary Axe II, The              NEC 1990 TGX020048 TurboChip
Bomberman                          NEC 1991 TGX020053 TurboChip
Sadly Street Fighter II seems to not work
 
Last edited by Mr Objection,

hippy dave

BBMB
Member
Joined
Apr 30, 2012
Messages
9,868
Trophies
2
XP
29,084
Country
United Kingdom
As I suspected, that .pkg file does look like the same format as used by the VC on 3DS. I figured out the format completely so you can edit the header to work with any size ROM, there's a discussion thread about it somewhere in the 3DS section of this site, plus on a certain iso site for 3DS stuff (VC subsection of CIA section), there's more discussion, ready-made .pkg files etc.
 

hippy dave

BBMB
Member
Joined
Apr 30, 2012
Messages
9,868
Trophies
2
XP
29,084
Country
United Kingdom
Someone could, but it's not likely to be me. Another good option would be to extract the .pkg from the various injects that have been posted on the aforementioned iso site.
 

hippy dave

BBMB
Member
Joined
Apr 30, 2012
Messages
9,868
Trophies
2
XP
29,084
Country
United Kingdom
Found my writeup from the iso site:

hippy dave said:
Ok let's see... description of pce.pkg:
All the sizes are stored as four bytes, in reverse byte order.

- The first four bytes are the total size of the pce.pkg file minus 4 (ie the size of the rest of the file after the first four bytes) - so you can put this in last.

- Then there are three other files stored, in the format: (four byte size of data section) (filename followed by null 0x00 byte) (data section)... so you have:

-- pceconfig.bin, which has its size listed as 0x000000A0 bytes (160 bytes), followed by its filename and a 0x00 byte, then the 0xa0 bytes from offset 0x16 to 0xb5 are its data. It's mostly zeros with the filename of the rom listed twice at particular locations, you can safely overwrite the filename even if it's longer (within reason).

-- then two copies of the same thing: the rom file stored in the previously described format... the rom filesize (which is where you saw that changed byte, because 0x00080000 is 512KB and 0x00100000 is 1MB), the rom filename (as listed in pceconfig.bin) followed by a 0x00 byte, and then the rom data. Then rom size/name/data is repeated a second time and that's the end of the file.
 
  • Like
Reactions: Baphomet

Baphomet

Homebrew Justice Warrior™
Member
Joined
Feb 12, 2016
Messages
155
Trophies
0
Age
38
XP
248
Country
Jamaica
As I suspected, that .pkg file does look like the same format as used by the VC on 3DS. I figured out the format completely so you can edit the header to work with any size ROM, there's a discussion thread about it somewhere in the 3DS section of this site, plus on a certain iso site for 3DS stuff (VC subsection of CIA section), there's more discussion, ready-made .pkg files etc.

This is really useful information, thank you.
 
  • Like
Reactions: hippy dave

Notshane

Well-Known Member
Member
Joined
Dec 13, 2012
Messages
204
Trophies
0
XP
359
Country
United States
Would it be possible for me to inject Madou Monogatari into one of the Turbografx-16 games, or do we have to wait until they release a CD one?
 

hippy dave

BBMB
Member
Joined
Apr 30, 2012
Messages
9,868
Trophies
2
XP
29,084
Country
United Kingdom
It mostly likely will not work. Here is my partial explanation why.
http://gbatemp.net/threads/turbogra...omeone-know-how-to-do-it.434385/#post-6531903
Oh ok, great info. Would be curious to see for sure whether bank switching is supported tho, when I was poking around in the binary I got the impression the emulator's pretty well designed, they might have made it fully featured instead of just doing what was needed for the games in question (there's strings in there referencing CD ROM, tho I don't know if that means it's fully supported, and we might not find out how unless they release a CD game).
 

Bug_Checker_

Well-Known Member
Member
Joined
Jun 10, 2006
Messages
950
Trophies
0
XP
664
Country
United States
Oh ok, great info. Would be curious to see for sure whether bank switching is supported tho, when I was poking around in the binary I got the impression the emulator's pretty well designed, they might have made it fully featured instead of just doing what was needed for the games in question (there's strings in there referencing CD ROM, tho I don't know if that means it's fully supported, and we might not find out how unless they release a CD game).
Banking
=======
Normally address spacebanks 00-F6 are assigned to regular HuCard ROM space. There
are a couple of special situations:
Street Fighter II:
- address space banks 40-7F switchable by writing to 1FF0-1FF3
1FF0 - select rom banks 40-7F
1FF1 - select rom banks 80-BF
1FF2 - select rom banks C0-FF
1FF3 - select rom banks 100-13F
Populous:
- address space banks 40-43 contains 32KB RAM
CDRom units:
- address space banks 80-87 contains 64KB RAM
Super System Card:
- address space banks 68-7F contains 192KB RAM

Source:
https://github.com/mamedev/mame/blob/master/src/mame/drivers/pce.cpp
 

Baphomet

Homebrew Justice Warrior™
Member
Joined
Feb 12, 2016
Messages
155
Trophies
0
Age
38
XP
248
Country
Jamaica
Oh ok, great info. Would be curious to see for sure whether bank switching is supported tho, when I was poking around in the binary I got the impression the emulator's pretty well designed, they might have made it fully featured instead of just doing what was needed for the games in question (there's strings in there referencing CD ROM, tho I don't know if that means it's fully supported, and we might not find out how unless they release a CD game).

I also had a look and it seems there are a lot of things hinting at it supporting CD Rom games (1,2,3), this works (not sure if it's really an indication of anything though) and Ogg Vorbis also appears to be supported (which is the sound format used by the Wii version of the TG16 VC). I wish I understood these things better... it feels quite close... and, at the same time, so far away. :unsure:
 
Last edited by Baphomet,
  • Like
Reactions: Mr Objection

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    Xdqwerty @ Xdqwerty: Where's everybody?