This is a GitHub repository containing the source code of Pokémon Red and Blue, disassembled and refactored to human-readable (and editable!) asm.
While the code is refactored, its functionality is untouched, and the ROMs you built with this code will be identical to the one that is on US Pokémon Red or Blue cartridge.
It is a really cool and interesting project!
What I did with this some months ago as an experiment with this was adding a "BEPIS" type in the game, a type that was resisting any other type and itself, but normal, to which it was weak to, and I made Charmander being of this type to test it, and it worked. Was a fun thing to do
I'm still amazed how I can just build a childhood game from source, and even modify some stuff from it super easily
@Siphonay How many more types are there room for?
@not_on_pizza I don't actually know but my guess would be that there would be a maximum number of 255 types since every other thing is the game is coded using 8-bit adresses
@Siphonay That's so cool!
@Siphonay aren't there a few forks fixing the present big when it's possible?
@Siphonay thanks for the link.
@Siphonay I used this to make a build of the game (actually their ruby source code) so that when you go to a pokemon center and try to heal your pokemon the person says "sorry our systems are down", so you can't heal them there.
also when you white-out the game softlocks :3
@blackle healing machine broke
@Siphonay There's one of crystal too! I don't know if there's one of gold and silver, but probably.
@Felthry there is, and also ones for ruby/sapphire and emerals
@Siphonay I did not know there was one for RSE!
@Siphonay This is amazing, but how have Nintendo's lawyers not caught wind of it?
there's no money in chasing this down, so they're not motivated
they'll probably shut down this repo but they're not like screaming into phones for it
and once it's out there, it's potentially out there forever anyway
(plus it'd probably remind people to buy the remakes if those are/will be a thing? maybe they got smart about how this 'viral' thing works)
@Siphonay They did the same thing for pokemon crystal! That being said; the actual legit source codes for these games is technically out there now due to all of the leaks over the past couple years and is far easier to work with due to being significantly cleaner and with better comments. Then again; working with the disassembly is more legal than working with stolen source code.
@Troasta nope, the leaked source code isn't easier to work with for the simple fact that we don't have the toolchains to build it back. For having skimmed through it the C code is actually pretty antiquated and mostly commented in Japanese.
The pret project is not just about decompiling ROMs, it's actually about refactoring and commenting the code in a way that makes it easier to read and modify, while still keeping the ASM routines in ways that produce a build identical to the official one, and they've actually been really good at it, as it has been the base to all the advanced ROM hacks out there
This generalist Mastodon server welcomes enthusiasts of the Pokémon franchise, to talk about it or anything else. Join the federation!