EB ROM Hack source code
By Tomato (tomato@starmen.net)
http://www.starmen.net/pkhack
http://www.starmen.net/tomato

This zip contains all the source code and stuff I have lying around for hacking the
EarthBound SNES ROM.  A lot of it was used in PK Hack but there was some stuff that was
never included, such as store editing and some other stuff I can't remember because it's
been so long. I've also included the EBSE source, I forget if I included it with the
executable.

I ran all this code using DJGPP, a free C/C++ compiler you can get at
http://www.delorie.com. I love command lines! I always feel claustrophobic in visual
stuff like BC++, VC++, etc. I always have the same feeling whenever I use Macs. I just need
my command lines darnit!

Speaking of Macs, for those of you out there (probably none) who can program a Mac, you can
theoretically use this source code to make a PK Hack Mac, since the code is written in C++
and highly portable. Then again, the chances of anybody possessing the knowledge to program
a Mac would have already been able to figure out the EB ROM and would have hacked it up
already.

I spent a lot of time writing all this source code. Not because I wanted people to be able
to make Runaway Dogs give you four bajillion exp. And I didn't do it because I wanted the
community to have something more, I did it because I wanted to do it and it was fun. When it
stopped being fun I stopped working on it. I didn't much appreciate people bugging me about
when PK Hack .2 would come out, and the freaky kids who thought me and spaan owed them new
versions of PK Hack. I remember about a week before we released .1 some lamers had started
a petition to get it released, I guess because they thought we were holding it back from
them. Losers!

I really would like to continue hacking the EB ROM, but spaan's always real busy and
probably has no interest anymore in it (I wouldn't blame him) and since I can't get the
PK Hack GUI to compile, and since it's in evil code (why the hell are all these variables
called "joe"?!!!) I'd have to redo the entire GUI, or start a PK Hack 2 (I have since
learned how to do Windows programming if you haven't noticed), all of which would take a
lot of time. And I don't have any time what with this cat skeet shooting classes and all.

Maybe if I become a millionaire someday or something I'll start do more EB hacking. Until
then, I really hope some aspiring Tomato/spaanoft acolytes decide to make their own
EB hacking stuff. Go ahead and use this source code as a basis or use the actual code
itself if you want. JUST MAKE SURE TO GIVE US (ESPECIALLY ME) CREDIT!

As you can see I documented a lot of my code. I documented nearly everything that I sent
to spaanoft so he could see how to use it and what it does, what requirements it has to
meet, etc. Learn well, kids. In projects like this DOCUMENTATION SAVES LIVES. And it pays
off because people can look at your code and understand it more easily and use it more
easily. That doesn't mean to write documentation that's novel-sized, though. Just write
good documentation.

Now that I've ranted enough, which is usually spaan's job, I leave you with this source
code. May the force live long and prosper. Oh yeah there's probably some stupid files
in there that print out "Hello poopface" or whatever. I just zipped up all the source I
had in my PK Hack directory at the time.

-Tomato-
 April 18, 2001