How can I tell if I have the source code to a GBC game?

Started by RetroProf, December 10, 2011, 10:16:22 AM

Previous topic - Next topic

RetroProf

OK, I can't reveal too much about this, since 1) I'm planning a big website reveal in the new year and 2) until I know what I've got it might actually be nothing at all.

I've been speaking with a major localiser who gave me some files, including a whole bunch relating to an extremely popular GBC game. The majority are Japanese and English text files, since it was localisation work, but a couple of files caught my interest.

One doesn't have a file extension but is called "[GAME NAME] Full"

Inside it seems to contain text from all the other files, in ASCII format, but also a tonne of gibberish code which neither Notepad++ nor Word nor anything else I have can open correctly.

Random section of code, there are reams and reams and reams of this stuff.
QuoteØØØØÔ    !ØØ       !ØØ       !ØØ       !ØØ       !ØØ       !ØØ       !ØØ      !ØØ       !ØØ          ØØ        ØØ
       ØØ
       ØØ        ØØ
       ØØ        ØØ        ØØ        ØØ        ØØ        ØØ        ØØ        ØØ        ØØ        ØØ        ØØ        ØØ        ØØ        ØØ        ØØ        ØØ        ØØ       ØØ        ØØ!       ØØ"       ØØ#       ØØ$       ØØ%       ØØ&       ØØ'       ØØ(       ØØ)       ØØ*       ØØ+       ØØ,       ØØ-       ØØ.       ØØ/       ØØ0       ØØ1       ØØ2       ØØ3       ØØ4       ØØ5       ØØ6       ØØ7       ØØ8       ØØ9       ØØ:       ØØ;       ØØ<       ØØ=       ØØ>       ØØ?       ØØ@       ØØA       ØØB       ØØC       ØØD       ØØE       ØØF       ØØG       ØØH       ØØI       ØØJ       ØØK       ØØL       ØØM       ØØN       ØØO       ØØP       ØØQ       ØØR       ØØS       ØØT       ØØU       ØØV       ØØW       ØØX       ØØY       ØØZ       ØØ[       ØØ\       ØØ]       ØØ^       ØØ_       ØØ`       ØØa       ØØb       ØØc       ØØd       ØØe       ØØf       ØØg       ØØh       ØØi       ØØj       ØØk       ØØl       ØØm       ØØn       ØØo       ØØp       ØØq       ØØr       ØØs       ØØt       ØØu       ØØv       ØØw       ØØx       ØØy       ØØz       ØØ{       ØØ|       ØØ}       ØØ~       ØØ       ØØ¥       ØØª       ØØ­       ØØ°       ØØ³       ØØ•       ØØº       ØØ½       ØØÃ       ØØÅ       ØØÉ       ØØÑ       ØØÔ         >   õ   
   r   Ã   (   X   è   _       ...   ú  Ö!  ©$  6'  Ê)   ,  à.  _1  ÷3   6  õ8   ;  {=  ¦?   B  )D  cF  8I  cK  îM  nP  åR   
U  ÖV   Y  ±[  .^  F`  øb   e  cg  ´i  ,k  Kn  p  @s  du  "w  =z  Š|  "  (ª  Ó°  "º  ؽ  FÉ  €Ô  1  ãΠ >ä   ÷  hú  ý  ´ÿ  zÊ  8£  »´  X¤  N©  ¢Ç  ÏР Eø  ã±   «  3¦  )ü  ö¼  Y¸  ¤À  På  Ô€  Ý®  $ƒ  8è  Îê  ÷ì  eñ  óï  (×  ô  <†   Þ   ˆ  ‰  –Š  퍠 0  ,"  6•  %˜  ,,™  Ö  \  ºž   ß  å   i   ‡   ,,  ›     &

Is this Notepad++ trying to display some kind of assembly code? Is there a program I should try opening it in? How do GBC games work? Surely they need to be compiled into a BIN file for burning to cartridge ROM chips, right? And why would a localiser be given the source? I'm just being naive and hopeful.

I should add, these have been through several OS and programs during editing, so this might be leftover junk from a Mac word processor.

I don't know what I have, so am asking here.

I'll be making all files available in the new year, NDAs be damned.

Auryn

I think that it's too regular to be programming code, I think it's more a pointer table but it's difficult to say like that, an hex view should tell more.

BRPXQZME

Quote from: Szczepaniak on December 10, 2011, 10:16:22 AM
Is there a program I should try opening it in?
Well, it probably won't have the answer, but the first thing Unix junkies will try is running it through file.
we are in a horrible and deadly danger

IIMarckus

It could be a pointer table; converting that text to ISO‐8859‐1 seems to show a lot of values between $4000 and $8000, which makes sense on the GBC. But it's dangerous making this kind of assumption without the actual file.

Quote from: Szczepaniak on December 10, 2011, 10:16:22 AM
OK, I can't reveal too much about this, since 1) I'm planning a big website reveal in the new year and 2) until I know what I've got it might actually be nothing at all.

I've been speaking with a major localiser who gave me some files, including a whole bunch relating to an extremely popular GBC game. The majority are Japanese and English text files, since it was localisation work, but a couple of files caught my interest.

One doesn't have a file extension but is called "[GAME NAME] Full"

Inside it seems to contain text from all the other files, in ASCII format, but also a tonne of gibberish code which neither Notepad++ nor Word nor anything else I have can open correctly.

Can you provide a hexdump of offsets 0x100 to 0x150? That would conclusively show if it's a Game Boy ROM. (It would also reveal the internal title.)

RetroProf

I know what the game is, I just don't want to say it otherwise everyone will get excited over nothing.

Is this what you mean? I got a hex editor (thanks for the suggestion) and opened it up, which tidied things up a bit. Looking through it, I'm now pretty sure it's just some kind of translation file. There doesn't appear to be enough stuff to constitute a game. Regardless, even if it isn't, I'm sure fans of the series will want them. It's not often corporate files get leaked to the public. Expect a Hardcore Gaming 101 release in the new year. :D


RedComet

Twilight Translations - More than just Dragonball Z. :P

RetroProf

No, that's just all that would fit in my screengrab. It's from the top, so I would assume anything pertinent would have been in the opening section. The file itself is about 233kb. This thing scrolls and scrolls for ages. The game dialogue is readable as ASCII if you scroll down.

I'm making the file available for download early January on HG101. I just wanted to check in case I'd struck real gold and could describe it as such. Looks like I haven't, so it's being bundled with a bunch of other mostly Japanese and English text dumps from my same contact. It might have some academic worth to a GBC romhacker, I have no idea.

RetroProf

The file in question was from Ghost Babel on the GBC. Grab it via this blog entry:
http://blog.hardcoregaming101.net/2012/01/konami-files-4-metal-gear-and.html

Is it anything valuable? Or is it just a regular dialogue file that ended up with extra stuff in it?

KaioShin

Get a ROM of the game and search it for a longer hex string from that snapshot (one that looks unique, so not D8D8D8D8...). If you find that code in the game you know it's from the ROM. If not it's something else obviously. Might be scripting data for example. The part you showed a screenshot of is definitely no assembly code, it could be anything from junk data to padding.
All my posts are merely personal opinions and not statements of fact, even if they are not explicitly prefixed by "In my opinion", "IMO", "I believe", or similar modifiers. By reading this disclaimer you agree to reply in spirit of these conditions.

RedComet

Looks more like a screenplay in a way. I didn't take a close look at it but it has scene information like Snake's positioning and such before some of the dialogue. The first $600 bytes could be a header that some text editor they used attached to it. Also, the final and full files look like compilations of the smaller files (which you can open in a text editor for viewing). Hope that helps some.
Twilight Translations - More than just Dragonball Z. :P

Nagato

Deleted.

RetroProf