Community

The PokéCommunity

We are still working on a better slogan!

Visit Index



Advertise here

Go Back   The PokéCommunity Forums > ROM Hacking > Research & Development
Notices

Research & Development Got a well-founded knack with ROM hacking? Love reverse-engineering the Pokémon games? Or perhaps you love your assembly language. This is the spot for polling and gathering your ideas, and then implementing them! Share your hypothesis, get ideas from others, and collaborate to create!
Research & Development programs in this forum are subject to moderator approval before they are displayed.

Post Reply
Click here to go to the first staff post in this thread.  
Thread Tools
  #1    
Old September 10th, 2009, 04:14 AM
JPAN
pokemon rom researcher
 
Join Date: Dec 2008

Advertise here
Greetings everyone. I have come before you today to present you the project I've been working on for the last month. I call it Pokemon Fire Red Hacked (Tentative Title).

This is a base for Fire Red US V1.0. It will not work with other Fire Red versions.

But what is this? Well, this is a small patch that rewrites a part of the main game engine, in order to increase the number of options you have as a ROM hacker. This include several features I've heard people complaining about and requesting, as well as some that just popped in my head.

This is a work in progress, and I aspire for it to become one day a compiled colection of all that only ASM can make possible without having to know ASM to pull it off. So, please, feel free to suggest new features and present your own if you want. You will be credited for it, of course.

















Features
  • Support for over sixty thousand different OWs, as well as access to fourty-six hundred different palettes
  • Hacks preformed in the Battle system allow you to choose options for your hack, including Status-ridden pokemon, Shinies and creation of swarm events
  • Access to GBA Hardware function through new Specials that allow you to create Timed events and Button dependent events
  • All processor math and logic functions available for your variables
  • Dynamic multichoice boxes that can be changed Runtime, making them limitless
  • A fully-fledged pokemon decryption system accessed through variables that allow you to read and edit almost all information encrypted and locked away inside your pokemon.
  • Edited some of the old Specials, allowing for replacing the Old man Pokemon and Ghost Marowak with new pokemon, as well as a new version of the Pokemon Size minigame (the Heracross and Magikarp ones)
  • Edited the Fossil Special (from pewter museum). Now it can hold 256 different 64 by 64 pixel uncompressed images
  • Edit what every Behaviour byte does when you press A in front of it(scripts), allowing for things like headbutt trees
  • Choose where you go when you die, even if it's not a pokecenter.
Also incuded in the pack is a Instruction booklet explaining the functions and some examples of those functions. Some gameplay mechanics are explained there that doesn't apply only to this hack.

This Patch should be aplied first, then any other Rom base that you want. It should have no problem working, but I didn't test them all (as long as they didnt write it over the old scripts, is should be fine). This patch is based on the "clean" patch I gave away some time now, so all scripts, people and Signposts are gone.

On a sidenote, all source code is provided in the attachment, with a compiled form also available. But all the code only work, as is, on Fire Red US v1.0. Most code, however is portable for any other Pokemon game, as long as you replace the pointers to in-game references to the ones of your version. The pokemon decrypt, timer and keypad functions are easily portable as long as you know the party location and variable 80xx family location.

First update:
I corrected all the reported bugs, and they seem to work right now. Also, the Swarm-Roam code and the Wild code are compatible with eachother, and both have been added new features.
Added Behaviour byte scripts. You can now run scripts such as the defaults for cabinets and bookshelves on all bytes. Not advised to overwrite the water Bytes, but if you really want to, you have that option.
Created a function that replaces the SethealingPlace determination of your retreat place when you whiteout.

Second Update:
Fixed some bugs in my code and in Nintendo's Safari code. Details in the version Changes.

Third update:
An early christmas present for you all, the newest version is out!
Major changes on this hack, as well as corrected bugs and somewhat extensively tested code led me to prompt this as the first full version update.
Full changes listed on the version change text.
Of course, bugs will still happen, so please report them here when you find them.

Fourth update:
After some snooping around, I found a severe problem with my hack implementation: It always required to be applied when starting a hack. Because that decreases the number of people that can apply this hack, I have made a tool in C / C++.net to apply it. This tool already includes the remaining hacks for this latest release, including the result of the Item research, button-triggered scripts, more safari balls and trainer-activated scripts that are not trainers. Now with the manual included.
When extracting the tool, extract the whole "Hack tool" folder. Any of those folders missing might corrupt your ROM and crash the tool.
Tool use:
(optional) to extend a ROM, check the "Expand ROM on opening" box
Click "Open ROM"
If it's not a Fire Red version, it should pop-up an error. If it's a FR(u), but you changed the header, same error will appear. Don't worry about it then.
Select the hacks you wish to install, by clicking on the corresponding checkboxes and buttons (advice: if you are installing the behaviour byte hack, click that one first, as that function cleans the old space, that is not detected by the Free space table, for safety reasons, but is added to the opened rom free space, and uses it for smaller hacks, eg. specials)
Click the apply button after selecting all you want from the above checkbox list
In some cases, it might ask you for variables, or tell you it created some tables. That information is available afterwards if you click the "Get Changed Data" button.
End all modifications by saving to a ROM, with a name of your choice.

This tool doesn't ovewrite hacks. as such, if you install a hack that is not a special, it will be placed at a new location and the old one will not be cleaned. Next version should have that fixed.

This tool is compiled in visual studio c++ 2005, and as such, may have dependencies with the .net framework. If it doesn't open, try installing .net framework 2.0.

I must say, even though I program in c for a long time, and c++ from recent years, the C++ .net library was a bit new to me, so the layout might be a bit wierd and seem a bit off. Tell me your opinion of it, as always, so I can improve it for next release. Also, report any bug here or by PM.
Here are the links for my work


Currently working on:
Battle Script Documentation
Another large project

Last edited by JPAN; January 22nd, 2010 at 03:06 PM. Reason: Added new patch and corrected manual
  #2    
Old September 10th, 2009, 05:13 AM
D-Trogh's Avatar
D-Trogh
Dead
 
Join Date: Jul 2005
Location: Belgium
Age: 23
Gender: Male
Send a message via Windows Live Messenger to D-Trogh
First the HG/SS ROMs dumped, now this.. WOW :)
[NTME | WPEDS | HTPE | SGPE | TGPE | PDEDS]
  #3    
Old September 10th, 2009, 05:29 AM
Gamer2020's Avatar
Gamer2020
This love is a sickness...
 
Join Date: Jun 2008
Location: Violet city!
Gender: Male
Nature: Bold
Send a message via AIM to Gamer2020 Send a message via Windows Live Messenger to Gamer2020 Send a message via Yahoo to Gamer2020 Send a message via Skype™ to Gamer2020
This is nice.
But it doesn't help those Hacking R/S/E.
But it seems you put in a lot of work so good job.
Pokemon Game Editor Download!
Pokemon TCG Assistant!
  #4    
Old September 10th, 2009, 05:36 AM
Cello's Avatar
Cello
Tonight!
 
Join Date: Aug 2009
Location: get the mascot involved
Age: 24
Gender: Male
Nature: Jolly
This is, no doubt, one of the most amazing things I could have ever thought I could wake up to see.

If I read it right you can't apply this to a hack already being worked on though, correct?
Yeah Football Fan!
  #5    
Old September 10th, 2009, 05:57 AM
JPAN
pokemon rom researcher
 
Join Date: Dec 2008
Quote:
Originally Posted by Cello View Post
If I read it right you can't apply this to a hack already being worked on though, correct?
If you're using the original scripts, or have any in the Fire Red script region (0x160000 to 0x1bb000), then no. But if you work on the 0x720000+ part of the rom (the common region for most people) then there should be no problem. Just remember to back up your hack before you try it.
Here are the links for my work


Currently working on:
Battle Script Documentation
Another large project
  #6    
Old September 10th, 2009, 05:58 AM
mervyn797
What? I'm right here. >D
 
Join Date: Mar 2009
Gender: Male
Nature: Careful
lol, i didnt understand half the features, but from what i understand, you have done a great job, looking forward to test it.
  #7    
Old September 10th, 2009, 06:02 AM
Christos's Avatar
Christos
Project Shinx
 
Join Date: Feb 2006
Location: Spain, Went's room
Nature: Serious
Send a message via Skype™ to Christos
Quote:
Originally Posted by JPAN View Post
If you're using the original scripts, or have any in the Fire Red script region (0x160000 to 0x1bb000), then no. But if you work on the 0x720000+ part of the rom (the common region for most people) then there should be no problem. Just remember to back up your hack before you try it.
A patch of a normal Fire Red ROM would work better on progressed Fire Red hacks.

Anyway, great work, I'm interested in seeing what other hackers are going to do with all these special commands.
pair | pc viruse | dave
  #8    
Old September 10th, 2009, 06:06 AM
Satoshi Ookami's Avatar
Satoshi Ookami
Memento Mori
Community Supporter
 
Join Date: Jul 2008
Location: Abyss of Time, Great Seal
Age: 22
Gender: Male
Nature: Calm
That's pretty interesting...
Ya did an awesome job man...
I'm sure it'll help tons of Fire Red hackers
ROM hacking FAQ - Read before asking how to play a hack. | Previous Sign 2 | Previous Sign

Anime List | PSN Trophy List
  #9    
Old September 10th, 2009, 03:24 PM
Full Metal's Avatar
Full Metal
C(++) Developer.
Community Supporter
 
Join Date: Jan 2008
Location: In my mind.
Age: 19
Gender: Male
Nature: Timid
Send a message via Windows Live Messenger to Full Metal
O.o
THIS IS SO FREAKING AMAZING!
i can't believe anyone else isn't psyched about this.
:D :D :D
THANKUTHANKUTHANKUTHANKU!!!

★ full metal.

I like to push it,
and push it,
until my luck is over.
  #10    
Old September 10th, 2009, 04:11 PM
cooley's Avatar
cooley
///Keepin' it simple
 
Join Date: Feb 2007
Location: United States
Age: 19
Gender: Male
Nature: Impish
Send a message via Windows Live Messenger to cooley Send a message via Skype™ to cooley
This is the best for FireRed hacking that I've seen, so far.. What really made me bite my lip was the Overworld possibilities and palettes too. But that would mean HackMew takes more time to make the new Owerworld Editor. But I'd definitely hex new Owerworlds if I new the data and whatnot.

I have a question, Is music affected in any way by this patch? In terms of Adding/subtracting tracks?

  #11    
Old September 10th, 2009, 04:17 PM
JPAN
pokemon rom researcher
 
Join Date: Dec 2008
Quote:
Originally Posted by cooley View Post
This is the best for FireRed hacking that I've seen, so far.. What really made me bite my lip was the Overworld possibilities and palettes too. But that would mean HackMew takes more time to make the new Owerworld Editor. But I'd definitely hex new Owerworlds if I new the data and whatnot.

I have a question, Is music affected in any way by this patch? In terms of Adding/subtracting tracks?
Inside the pack comes a instruction booklet that contains all information I had on Overworlds and people events, including some I found out while studying the OW decription code. So Hex editing shouldn't be such a problem.

Also, nothing was done about the music. Its the only are of the GBA programming I have still not understood. As such, no changes to the music was made.
Here are the links for my work


Currently working on:
Battle Script Documentation
Another large project
  #12    
Old September 10th, 2009, 10:34 PM
sky_queen3's Avatar
sky_queen3
Minusle Fangirl. ;)
 
Join Date: Feb 2009
Location: Australia
Age: 24
Gender: Female
Nature: Naive
*is too dumb to know how it works but I'll try it anyway*
  #13    
Old September 11th, 2009, 12:33 AM
0m3GA ARS3NAL's Avatar
0m3GA ARS3NAL
Im comin' home...
Community Supporter Tier 1
 
Join Date: Jan 2008
Location: Superjail Penitentiary
Age: 22
Gender: Male
Nature: Gentle
Well well well, our buddy JPAN has surpassed Mastermind_X himself...
At least in my book.
Say, would you mind tutoring me in ASM?
I want to learn it, and you seem more than capable...
>Boot Jailbot
>Pass *****
.
.
Jailbot OS Ver 1.1.2
Greetings Warden
of Superjail Penitentiary
Awaiting user input...

>Display User_Info
╠══User Info══╣
Username:
0m3GA ARS3NAL
Age: 18
Sex: Male ♂
Race: Caucasian
Quote:
"What is this
I don't even..."

M/O: Often acts out to get attention, but recently has changed that. Has been studying up on hacking information and hopes to participate in more advanced hacking discussion.
╠══End of File══╣
Awaiting user input...

>
  #14    
Old September 11th, 2009, 02:11 PM
ZodiacDaGreat's Avatar
ZodiacDaGreat
Working on a Mobile System
 
Join Date: Feb 2007
Location: South Pacific
Age: 22
Gender: Male
Nature: Relaxed
Send a message via ICQ to ZodiacDaGreat
Hey, cool idea
I guess I'm doing the same thing too XD but for Ruby. More on that until I'm back I'd say mine's a bit different.
  #15    
Old September 11th, 2009, 02:14 PM
.Seth's Avatar
.Seth
.explorer.
 
Join Date: Jun 2008
Location: A capacitor in a power supply board.
Gender: Male
Nature: Quiet
Wow.
This is absolutely the best thing I've seen during my time here at PC.
Very amazing work, JPAN.
You are the pseudo-god of rom hacking in my book.
  #16    
Old September 11th, 2009, 02:32 PM
DawnRyder
I cannot believe I'm back -.-
 
Join Date: Aug 2009
OMG!!! This is awesome! Thank you JPAN!
I've been waiting for something like this to come out.
I believe in Jesus Christ my Savior. If you do too, and aren't scared to admit it, then copy and paste this in your signature.

Sorry guys, but I'm leaving Pokécommunity. I just don't have time for it. As of right now you will no longer be able to contact me.
  #17    
Old September 11th, 2009, 03:55 PM
Gamer2020's Avatar
Gamer2020
This love is a sickness...
 
Join Date: Jun 2008
Location: Violet city!
Gender: Male
Nature: Bold
Send a message via AIM to Gamer2020 Send a message via Windows Live Messenger to Gamer2020 Send a message via Yahoo to Gamer2020 Send a message via Skype™ to Gamer2020
Quote:
Originally Posted by ZodiacDaGreat View Post
Hey, cool idea
I guess I'm doing the same thing too XD but for Ruby. More on that until I'm back I'd say mine's a bit different.
Quote:
Originally Posted by JPAN View Post
I call it Pokemon Fire Red Hacked (Tentative Title).
No one cares about emerald... :'(
Pokemon Game Editor Download!
Pokemon TCG Assistant!
  #18    
Old September 11th, 2009, 05:06 PM
bigfatgranny's Avatar
bigfatgranny
Pokemon Shadow's Haze.
 
Join Date: Feb 2009
Location: Illinois
Age: 20
Gender: Male
Nature: Mild
Send a message via Windows Live Messenger to bigfatgranny
Incredible. The most impressive thing I've seen in the rom hacking community in along time. I just tried it out and It's loaded with things I've wanted to do but couldnt due to my lack of asm skills. The ability to change the hero sprite in game is one I've wanted to be able to do for a long time. Two thumbs way up JPAN.
  #19    
Old September 11th, 2009, 08:37 PM
Pokepal17's Avatar
Pokepal17
More cowbell~
 
Join Date: Oct 2008
Location: Steeltown
Age: 20
Gender: Male
Nature: Modest
This is absolutely amazing. Wow, all that in one patch, I can't wait to try it out. :D
Pokémon Stardrop
  #20    
Old September 11th, 2009, 09:16 PM
0m3GA ARS3NAL's Avatar
0m3GA ARS3NAL
Im comin' home...
Community Supporter Tier 1
 
Join Date: Jan 2008
Location: Superjail Penitentiary
Age: 22
Gender: Male
Nature: Gentle
For anyone wondering, you should NOT apply this to a Clean Fire Red Rom, but instead, use JPAN's Clearing Patch, that clears out all of the scripts, signposts, and sprites in every map. Otherwise, some bugs may occur. You can find it in the OLD rom hacking thread, for those who can't find it anymore, here is a link.

http://www.pokecommunity.com/showpos...&postcount=252
(That is his post.)
>Boot Jailbot
>Pass *****
.
.
Jailbot OS Ver 1.1.2
Greetings Warden
of Superjail Penitentiary
Awaiting user input...

>Display User_Info
╠══User Info══╣
Username:
0m3GA ARS3NAL
Age: 18
Sex: Male ♂
Race: Caucasian
Quote:
"What is this
I don't even..."

M/O: Often acts out to get attention, but recently has changed that. Has been studying up on hacking information and hopes to participate in more advanced hacking discussion.
╠══End of File══╣
Awaiting user input...

>
  #21    
Old September 11th, 2009, 09:18 PM
sky_queen3's Avatar
sky_queen3
Minusle Fangirl. ;)
 
Join Date: Feb 2009
Location: Australia
Age: 24
Gender: Female
Nature: Naive
o.O What kind of bugs aew we talking about?
  #22    
Old September 11th, 2009, 09:21 PM
0m3GA ARS3NAL's Avatar
0m3GA ARS3NAL
Im comin' home...
Community Supporter Tier 1
 
Join Date: Jan 2008
Location: Superjail Penitentiary
Age: 22
Gender: Male
Nature: Gentle
Quote:
Originally Posted by sky_queen3 View Post
o.O What kind of bugs aew we talking about?
If you use scripts found in those areas, they will be deleted, ASM scripts you insert may not work at all, lots of things, you HAVE to use it, or you WILL get messed up.
(It will clean out everything, clearing the original scripts put in by Nintendo.)
Seriously, there is a reason JPAN said it works with his cleaned patch, because he made this ASM with it, this is best used when starting a NEW hack.
>Boot Jailbot
>Pass *****
.
.
Jailbot OS Ver 1.1.2
Greetings Warden
of Superjail Penitentiary
Awaiting user input...

>Display User_Info
╠══User Info══╣
Username:
0m3GA ARS3NAL
Age: 18
Sex: Male ♂
Race: Caucasian
Quote:
"What is this
I don't even..."

M/O: Often acts out to get attention, but recently has changed that. Has been studying up on hacking information and hopes to participate in more advanced hacking discussion.
╠══End of File══╣
Awaiting user input...

>
  #23    
Old September 11th, 2009, 11:27 PM
Thrace's Avatar
Thrace
@tion
 
Join Date: Jun 2007
Age: 24
Gender: Male
This looks incredible. I don't have much to say that hasn't been said already. I'll be sure to use this for my hack.
  #24    
Old September 12th, 2009, 01:52 AM
The Riddler's Avatar
The Riddler
Life returns. Life prevails.
 
Join Date: Aug 2008
Location: Ptuj, Slovenia.
Gender: Male
Nature: Naughty
Wow! You really took your time doing this, and I love it. I think I'll use it
Thanks a lot. This will really help.
Pokémon Twisted Mind
  #25    
Old September 12th, 2009, 05:01 AM
sky_queen3's Avatar
sky_queen3
Minusle Fangirl. ;)
 
Join Date: Feb 2009
Location: Australia
Age: 24
Gender: Female
Nature: Naive
Quote:
Originally Posted by 0m3GA ARS3NAL View Post
If you use scripts found in those areas, they will be deleted, ASM scripts you insert may not work at all, lots of things, you HAVE to use it, or you WILL get messed up.
(It will clean out everything, clearing the original scripts put in by Nintendo.)
Seriously, there is a reason JPAN said it works with his cleaned patch, because he made this ASM with it, this is best used when starting a NEW hack.
Ok, so applying it to a pure, unhacked rom won't cause those bugs?
Post Reply
Quick Reply

Sponsored Links


Advertise here
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Minimum Characters Per Post: 25



All times are UTC -8. The time now is 01:40 AM.

About Us
© 2002 - 2014 The PokéCommunity™, pokecommunity.com. Pokémon characters and images belong to The Pokémon Company International and Nintendo. This website is in no way affiliated with or endorsed by Nintendo, Creatures, GAMEFREAK, The Pokémon Company or The Pokémon Company International. We just love Pokémon.

Copyright
All forum styles, their images (unless noted otherwise) and site designs are © 2002 - 2014 The PokéCommunity / PokéCommunity.com. PokéCommunity™ is a trademark of The PokéCommunity. All rights reserved. Sponsor advertisements do not imply our endorsement of that product or service. User generated content remains the property of its creator. Header artwork by Jordanice of deviantART.

Social Media
If you would like to stay up-to-date with us on the go, when we're down, or other such things, follow us on social media sites--most notibly Twitter, Facebook, and Google Plus--by clicking on the links provided.

Design presented by Peitharchia. Special thanks to Hiroshi Sotomura and Ausaudriel.