TurboGrafx-16/Pc Engine injection Guide

Discussion in 'Wii U - Hacking & Backup Loaders' started by Mr Objection, Jul 15, 2016.

  1. Mr Objection
    OP

    Mr Objection GBAtemp Fan

    Member
    320
    148
    Jul 10, 2016
    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.

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

    [​IMG]

    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.

    [​IMG]

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

    [​IMG]
    You have found where the rom is. Delete everything from the hex value 78 onwards.

    [​IMG]
    You'll end up with something that looks like this.....

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

    [​IMG]

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

    [​IMG]

    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, Jul 15, 2016
    Subtle Demise likes this.


  2. xtheman

    xtheman GBAtemp Guru

    Member
    5,843
    5,254
    Jan 28, 2016
    United States
    No naming rom sites
     
  3. Mr Objection
    OP

    Mr Objection GBAtemp Fan

    Member
    320
    148
    Jul 10, 2016
    Argentina
    this rules seem a bit rough but ok
     
  4. xtheman

    xtheman GBAtemp Guru

    Member
    5,843
    5,254
    Jan 28, 2016
    United States
    Actually it isn't.
     
  5. Mr Objection
    OP

    Mr Objection GBAtemp Fan

    Member
    320
    148
    Jul 10, 2016
    Argentina
    I was joking, but you have to admit that it is just a name, it isnt a link or something like that
     
  6. Bug_Checker_

    Bug_Checker_ GBAtemp Advanced Fan

    Member
    950
    444
    Jun 10, 2006
    United States
    1mbit and 2 megabits USA games which should work:
    Warning: Spoilers inside!

    4mbits USA games which should work:
    Warning: Spoilers inside!

    6mbits and 8megabits USA games which MAY work:
    Warning: Spoilers inside!

    3megabits USA games some/all might work or might not:
    Warning: Spoilers inside!

    Still to be determined USA games:
    Warning: Spoilers inside!
     
    Last edited by Bug_Checker_, Jul 16, 2016
    Baphomet likes this.
  7. xtheman

    xtheman GBAtemp Guru

    Member
    5,843
    5,254
    Jan 28, 2016
    United States
    Look I didn't make the rules. Talk to an admin if you want to question the rules
     
  8. Mr Objection
    OP

    Mr Objection GBAtemp Fan

    Member
    320
    148
    Jul 10, 2016
    Argentina
    I know that too, I was just asking your personal point of view, but lets finish with this

    — Posts automatically merged - Please don't double post! —

    Sadly Street Fighter II seems to not work
     
    Last edited by Mr Objection, Jul 16, 2016
  9. hippy dave

    hippy dave Butts Butts Megabutts

    Member
    2,572
    1,792
    Apr 30, 2012
    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.
     
  10. Coc4tm

    Coc4tm WIP Nintendo hacker.

    Member
    341
    226
    Feb 12, 2016
    France
    fw.img
    Can anyone create a program that do this automatticly ?
     
    asper likes this.
  11. hippy dave

    hippy dave Butts Butts Megabutts

    Member
    2,572
    1,792
    Apr 30, 2012
    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.
     
  12. hippy dave

    hippy dave Butts Butts Megabutts

    Member
    2,572
    1,792
    Apr 30, 2012
    Found my writeup from the iso site:

     
    Baphomet likes this.
  13. Mr Objection
    OP

    Mr Objection GBAtemp Fan

    Member
    320
    148
    Jul 10, 2016
    Argentina
    Street fighters 2 was injected in the 3ds vc?
     
  14. Baphomet

    Baphomet Homebrew Justice Warriorâ„¢

    Member
    155
    211
    Feb 12, 2016
    Jamaica
    This is really useful information, thank you.
     
    hippy dave likes this.
  15. hippy dave

    hippy dave Butts Butts Megabutts

    Member
    2,572
    1,792
    Apr 30, 2012
    e: actually I can't find it, maybe it wasn't - I expected it would have worked tho if done as above.
     
    Last edited by hippy dave, Jul 16, 2016
  16. Notshane

    Notshane Advanced Member

    Newcomer
    81
    3
    Dec 13, 2012
    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?
     
  17. Bug_Checker_

    Bug_Checker_ GBAtemp Advanced Fan

    Member
    950
    444
    Jun 10, 2006
    United States
  18. hippy dave

    hippy dave Butts Butts Megabutts

    Member
    2,572
    1,792
    Apr 30, 2012
    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).
     
  19. Bug_Checker_

    Bug_Checker_ GBAtemp Advanced Fan

    Member
    950
    444
    Jun 10, 2006
    United States
    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
     
  20. Baphomet

    Baphomet Homebrew Justice Warriorâ„¢

    Member
    155
    211
    Feb 12, 2016
    Jamaica
    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, Jul 24, 2016
    Mr Objection likes this.